AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PutGroupConfigurationRequest.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/resource-groups/ResourceGroupsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resource-groups/model/GroupConfigurationItem.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ResourceGroups
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_RESOURCEGROUPS_API PutGroupConfigurationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutGroupConfiguration"; }
33
34 AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetGroup() const { return m_group; }
43 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
44 template<typename GroupT = Aws::String>
45 void SetGroup(GroupT&& value) { m_groupHasBeenSet = true; m_group = std::forward<GroupT>(value); }
46 template<typename GroupT = Aws::String>
47 PutGroupConfigurationRequest& WithGroup(GroupT&& value) { SetGroup(std::forward<GroupT>(value)); return *this;}
49
51
62 inline const Aws::Vector<GroupConfigurationItem>& GetConfiguration() const { return m_configuration; }
63 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
64 template<typename ConfigurationT = Aws::Vector<GroupConfigurationItem>>
65 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
66 template<typename ConfigurationT = Aws::Vector<GroupConfigurationItem>>
67 PutGroupConfigurationRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
68 template<typename ConfigurationT = GroupConfigurationItem>
69 PutGroupConfigurationRequest& AddConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration.emplace_back(std::forward<ConfigurationT>(value)); return *this; }
71 private:
72
73 Aws::String m_group;
74 bool m_groupHasBeenSet = false;
75
77 bool m_configurationHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace ResourceGroups
82} // namespace Aws
PutGroupConfigurationRequest & AddConfiguration(ConfigurationT &&value)
PutGroupConfigurationRequest & WithConfiguration(ConfigurationT &&value)
PutGroupConfigurationRequest & WithGroup(GroupT &&value)
AWS_RESOURCEGROUPS_API PutGroupConfigurationRequest()=default
const Aws::Vector< GroupConfigurationItem > & GetConfiguration() const
AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector