AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
PutGroupConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/resource-groups/ResourceGroupsRequest.h>
10#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
11#include <aws/resource-groups/model/GroupConfigurationItem.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ResourceGroups {
17namespace Model {
18
22 public:
23 AWS_RESOURCEGROUPS_API PutGroupConfigurationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutGroupConfiguration"; }
30
31 AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetGroup() const { return m_group; }
39 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
40 template <typename GroupT = Aws::String>
41 void SetGroup(GroupT&& value) {
42 m_groupHasBeenSet = true;
43 m_group = std::forward<GroupT>(value);
44 }
45 template <typename GroupT = Aws::String>
47 SetGroup(std::forward<GroupT>(value));
48 return *this;
49 }
51
53
64 inline const Aws::Vector<GroupConfigurationItem>& GetConfiguration() const { return m_configuration; }
65 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
66 template <typename ConfigurationT = Aws::Vector<GroupConfigurationItem>>
67 void SetConfiguration(ConfigurationT&& value) {
68 m_configurationHasBeenSet = true;
69 m_configuration = std::forward<ConfigurationT>(value);
70 }
71 template <typename ConfigurationT = Aws::Vector<GroupConfigurationItem>>
73 SetConfiguration(std::forward<ConfigurationT>(value));
74 return *this;
75 }
76 template <typename ConfigurationT = GroupConfigurationItem>
78 m_configurationHasBeenSet = true;
79 m_configuration.emplace_back(std::forward<ConfigurationT>(value));
80 return *this;
81 }
83 private:
84 Aws::String m_group;
85
87 bool m_groupHasBeenSet = false;
88 bool m_configurationHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace ResourceGroups
93} // 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