AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ConfigurationAggregator.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/AccountAggregationSource.h>
9#include <aws/config/model/AggregatorFilters.h>
10#include <aws/config/model/OrganizationAggregationSource.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConfigService {
25namespace Model {
26
35 public:
36 AWS_CONFIGSERVICE_API ConfigurationAggregator() = default;
37 AWS_CONFIGSERVICE_API ConfigurationAggregator(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetConfigurationAggregatorName() const { return m_configurationAggregatorName; }
46 inline bool ConfigurationAggregatorNameHasBeenSet() const { return m_configurationAggregatorNameHasBeenSet; }
47 template <typename ConfigurationAggregatorNameT = Aws::String>
48 void SetConfigurationAggregatorName(ConfigurationAggregatorNameT&& value) {
49 m_configurationAggregatorNameHasBeenSet = true;
50 m_configurationAggregatorName = std::forward<ConfigurationAggregatorNameT>(value);
51 }
52 template <typename ConfigurationAggregatorNameT = Aws::String>
53 ConfigurationAggregator& WithConfigurationAggregatorName(ConfigurationAggregatorNameT&& value) {
54 SetConfigurationAggregatorName(std::forward<ConfigurationAggregatorNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetConfigurationAggregatorArn() const { return m_configurationAggregatorArn; }
64 inline bool ConfigurationAggregatorArnHasBeenSet() const { return m_configurationAggregatorArnHasBeenSet; }
65 template <typename ConfigurationAggregatorArnT = Aws::String>
66 void SetConfigurationAggregatorArn(ConfigurationAggregatorArnT&& value) {
67 m_configurationAggregatorArnHasBeenSet = true;
68 m_configurationAggregatorArn = std::forward<ConfigurationAggregatorArnT>(value);
69 }
70 template <typename ConfigurationAggregatorArnT = Aws::String>
71 ConfigurationAggregator& WithConfigurationAggregatorArn(ConfigurationAggregatorArnT&& value) {
72 SetConfigurationAggregatorArn(std::forward<ConfigurationAggregatorArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Vector<AccountAggregationSource>& GetAccountAggregationSources() const { return m_accountAggregationSources; }
82 inline bool AccountAggregationSourcesHasBeenSet() const { return m_accountAggregationSourcesHasBeenSet; }
83 template <typename AccountAggregationSourcesT = Aws::Vector<AccountAggregationSource>>
84 void SetAccountAggregationSources(AccountAggregationSourcesT&& value) {
85 m_accountAggregationSourcesHasBeenSet = true;
86 m_accountAggregationSources = std::forward<AccountAggregationSourcesT>(value);
87 }
88 template <typename AccountAggregationSourcesT = Aws::Vector<AccountAggregationSource>>
89 ConfigurationAggregator& WithAccountAggregationSources(AccountAggregationSourcesT&& value) {
90 SetAccountAggregationSources(std::forward<AccountAggregationSourcesT>(value));
91 return *this;
92 }
93 template <typename AccountAggregationSourcesT = AccountAggregationSource>
94 ConfigurationAggregator& AddAccountAggregationSources(AccountAggregationSourcesT&& value) {
95 m_accountAggregationSourcesHasBeenSet = true;
96 m_accountAggregationSources.emplace_back(std::forward<AccountAggregationSourcesT>(value));
97 return *this;
98 }
100
102
105 inline const OrganizationAggregationSource& GetOrganizationAggregationSource() const { return m_organizationAggregationSource; }
106 inline bool OrganizationAggregationSourceHasBeenSet() const { return m_organizationAggregationSourceHasBeenSet; }
107 template <typename OrganizationAggregationSourceT = OrganizationAggregationSource>
108 void SetOrganizationAggregationSource(OrganizationAggregationSourceT&& value) {
109 m_organizationAggregationSourceHasBeenSet = true;
110 m_organizationAggregationSource = std::forward<OrganizationAggregationSourceT>(value);
111 }
112 template <typename OrganizationAggregationSourceT = OrganizationAggregationSource>
113 ConfigurationAggregator& WithOrganizationAggregationSource(OrganizationAggregationSourceT&& value) {
114 SetOrganizationAggregationSource(std::forward<OrganizationAggregationSourceT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
124 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
125 template <typename CreationTimeT = Aws::Utils::DateTime>
126 void SetCreationTime(CreationTimeT&& value) {
127 m_creationTimeHasBeenSet = true;
128 m_creationTime = std::forward<CreationTimeT>(value);
129 }
130 template <typename CreationTimeT = Aws::Utils::DateTime>
132 SetCreationTime(std::forward<CreationTimeT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
142 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
143 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
144 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
145 m_lastUpdatedTimeHasBeenSet = true;
146 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
147 }
148 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
149 ConfigurationAggregator& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
150 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
160 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
161 template <typename CreatedByT = Aws::String>
162 void SetCreatedBy(CreatedByT&& value) {
163 m_createdByHasBeenSet = true;
164 m_createdBy = std::forward<CreatedByT>(value);
165 }
166 template <typename CreatedByT = Aws::String>
168 SetCreatedBy(std::forward<CreatedByT>(value));
169 return *this;
170 }
172
174
177 inline const AggregatorFilters& GetAggregatorFilters() const { return m_aggregatorFilters; }
178 inline bool AggregatorFiltersHasBeenSet() const { return m_aggregatorFiltersHasBeenSet; }
179 template <typename AggregatorFiltersT = AggregatorFilters>
180 void SetAggregatorFilters(AggregatorFiltersT&& value) {
181 m_aggregatorFiltersHasBeenSet = true;
182 m_aggregatorFilters = std::forward<AggregatorFiltersT>(value);
183 }
184 template <typename AggregatorFiltersT = AggregatorFilters>
185 ConfigurationAggregator& WithAggregatorFilters(AggregatorFiltersT&& value) {
186 SetAggregatorFilters(std::forward<AggregatorFiltersT>(value));
187 return *this;
188 }
190 private:
191 Aws::String m_configurationAggregatorName;
192
193 Aws::String m_configurationAggregatorArn;
194
195 Aws::Vector<AccountAggregationSource> m_accountAggregationSources;
196
197 OrganizationAggregationSource m_organizationAggregationSource;
198
199 Aws::Utils::DateTime m_creationTime{};
200
201 Aws::Utils::DateTime m_lastUpdatedTime{};
202
203 Aws::String m_createdBy;
204
205 AggregatorFilters m_aggregatorFilters;
206 bool m_configurationAggregatorNameHasBeenSet = false;
207 bool m_configurationAggregatorArnHasBeenSet = false;
208 bool m_accountAggregationSourcesHasBeenSet = false;
209 bool m_organizationAggregationSourceHasBeenSet = false;
210 bool m_creationTimeHasBeenSet = false;
211 bool m_lastUpdatedTimeHasBeenSet = false;
212 bool m_createdByHasBeenSet = false;
213 bool m_aggregatorFiltersHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace ConfigService
218} // namespace Aws
ConfigurationAggregator & WithCreatedBy(CreatedByT &&value)
const Aws::Vector< AccountAggregationSource > & GetAccountAggregationSources() const
AWS_CONFIGSERVICE_API ConfigurationAggregator(Aws::Utils::Json::JsonView jsonValue)
ConfigurationAggregator & WithAccountAggregationSources(AccountAggregationSourcesT &&value)
ConfigurationAggregator & WithConfigurationAggregatorName(ConfigurationAggregatorNameT &&value)
AWS_CONFIGSERVICE_API ConfigurationAggregator & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOrganizationAggregationSource(OrganizationAggregationSourceT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
ConfigurationAggregator & WithConfigurationAggregatorArn(ConfigurationAggregatorArnT &&value)
void SetConfigurationAggregatorName(ConfigurationAggregatorNameT &&value)
ConfigurationAggregator & WithCreationTime(CreationTimeT &&value)
ConfigurationAggregator & AddAccountAggregationSources(AccountAggregationSourcesT &&value)
const OrganizationAggregationSource & GetOrganizationAggregationSource() const
ConfigurationAggregator & WithOrganizationAggregationSource(OrganizationAggregationSourceT &&value)
ConfigurationAggregator & WithAggregatorFilters(AggregatorFiltersT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccountAggregationSources(AccountAggregationSourcesT &&value)
ConfigurationAggregator & WithLastUpdatedTime(LastUpdatedTimeT &&value)
void SetConfigurationAggregatorArn(ConfigurationAggregatorArnT &&value)
AWS_CONFIGSERVICE_API ConfigurationAggregator()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue