AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PutConfigurationAggregatorRequest.h
1
6#pragma once
7#include <aws/config/ConfigServiceRequest.h>
8#include <aws/config/ConfigService_EXPORTS.h>
9#include <aws/config/model/AccountAggregationSource.h>
10#include <aws/config/model/AggregatorFilters.h>
11#include <aws/config/model/OrganizationAggregationSource.h>
12#include <aws/config/model/Tag.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace ConfigService {
20namespace Model {
21
25 public:
26 AWS_CONFIGSERVICE_API PutConfigurationAggregatorRequest() = 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 "PutConfigurationAggregator"; }
33
34 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
42 inline const Aws::String& GetConfigurationAggregatorName() const { return m_configurationAggregatorName; }
43 inline bool ConfigurationAggregatorNameHasBeenSet() const { return m_configurationAggregatorNameHasBeenSet; }
44 template <typename ConfigurationAggregatorNameT = Aws::String>
45 void SetConfigurationAggregatorName(ConfigurationAggregatorNameT&& value) {
46 m_configurationAggregatorNameHasBeenSet = true;
47 m_configurationAggregatorName = std::forward<ConfigurationAggregatorNameT>(value);
48 }
49 template <typename ConfigurationAggregatorNameT = Aws::String>
51 SetConfigurationAggregatorName(std::forward<ConfigurationAggregatorNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<AccountAggregationSource>& GetAccountAggregationSources() const { return m_accountAggregationSources; }
61 inline bool AccountAggregationSourcesHasBeenSet() const { return m_accountAggregationSourcesHasBeenSet; }
62 template <typename AccountAggregationSourcesT = Aws::Vector<AccountAggregationSource>>
63 void SetAccountAggregationSources(AccountAggregationSourcesT&& value) {
64 m_accountAggregationSourcesHasBeenSet = true;
65 m_accountAggregationSources = std::forward<AccountAggregationSourcesT>(value);
66 }
67 template <typename AccountAggregationSourcesT = Aws::Vector<AccountAggregationSource>>
69 SetAccountAggregationSources(std::forward<AccountAggregationSourcesT>(value));
70 return *this;
71 }
72 template <typename AccountAggregationSourcesT = AccountAggregationSource>
74 m_accountAggregationSourcesHasBeenSet = true;
75 m_accountAggregationSources.emplace_back(std::forward<AccountAggregationSourcesT>(value));
76 return *this;
77 }
79
81
84 inline const OrganizationAggregationSource& GetOrganizationAggregationSource() const { return m_organizationAggregationSource; }
85 inline bool OrganizationAggregationSourceHasBeenSet() const { return m_organizationAggregationSourceHasBeenSet; }
86 template <typename OrganizationAggregationSourceT = OrganizationAggregationSource>
87 void SetOrganizationAggregationSource(OrganizationAggregationSourceT&& value) {
88 m_organizationAggregationSourceHasBeenSet = true;
89 m_organizationAggregationSource = std::forward<OrganizationAggregationSourceT>(value);
90 }
91 template <typename OrganizationAggregationSourceT = OrganizationAggregationSource>
93 SetOrganizationAggregationSource(std::forward<OrganizationAggregationSourceT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 template <typename TagsT = Aws::Vector<Tag>>
105 void SetTags(TagsT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags = std::forward<TagsT>(value);
108 }
109 template <typename TagsT = Aws::Vector<Tag>>
111 SetTags(std::forward<TagsT>(value));
112 return *this;
113 }
114 template <typename TagsT = Tag>
116 m_tagsHasBeenSet = true;
117 m_tags.emplace_back(std::forward<TagsT>(value));
118 return *this;
119 }
121
123
127 inline const AggregatorFilters& GetAggregatorFilters() const { return m_aggregatorFilters; }
128 inline bool AggregatorFiltersHasBeenSet() const { return m_aggregatorFiltersHasBeenSet; }
129 template <typename AggregatorFiltersT = AggregatorFilters>
130 void SetAggregatorFilters(AggregatorFiltersT&& value) {
131 m_aggregatorFiltersHasBeenSet = true;
132 m_aggregatorFilters = std::forward<AggregatorFiltersT>(value);
133 }
134 template <typename AggregatorFiltersT = AggregatorFilters>
136 SetAggregatorFilters(std::forward<AggregatorFiltersT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_configurationAggregatorName;
142
143 Aws::Vector<AccountAggregationSource> m_accountAggregationSources;
144
145 OrganizationAggregationSource m_organizationAggregationSource;
146
147 Aws::Vector<Tag> m_tags;
148
149 AggregatorFilters m_aggregatorFilters;
150 bool m_configurationAggregatorNameHasBeenSet = false;
151 bool m_accountAggregationSourcesHasBeenSet = false;
152 bool m_organizationAggregationSourceHasBeenSet = false;
153 bool m_tagsHasBeenSet = false;
154 bool m_aggregatorFiltersHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace ConfigService
159} // namespace Aws
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
PutConfigurationAggregatorRequest & WithOrganizationAggregationSource(OrganizationAggregationSourceT &&value)
AWS_CONFIGSERVICE_API PutConfigurationAggregatorRequest()=default
const OrganizationAggregationSource & GetOrganizationAggregationSource() const
void SetOrganizationAggregationSource(OrganizationAggregationSourceT &&value)
PutConfigurationAggregatorRequest & AddAccountAggregationSources(AccountAggregationSourcesT &&value)
PutConfigurationAggregatorRequest & WithConfigurationAggregatorName(ConfigurationAggregatorNameT &&value)
PutConfigurationAggregatorRequest & WithAggregatorFilters(AggregatorFiltersT &&value)
PutConfigurationAggregatorRequest & WithAccountAggregationSources(AccountAggregationSourcesT &&value)
const Aws::Vector< AccountAggregationSource > & GetAccountAggregationSources() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector