AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetMetricStreamResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/monitoring/CloudWatch_EXPORTS.h>
12#include <aws/monitoring/model/MetricStreamFilter.h>
13#include <aws/monitoring/model/MetricStreamOutputFormat.h>
14#include <aws/monitoring/model/MetricStreamStatisticsConfiguration.h>
15#include <aws/monitoring/model/ResponseMetadata.h>
16
17#include <utility>
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Cbor {
24class CborValue;
25} // namespace Cbor
26} // namespace Utils
27namespace CloudWatch {
28namespace Model {
30 public:
31 AWS_CLOUDWATCH_API GetMetricStreamResult() = default;
34
36
39 inline const Aws::String& GetArn() const { return m_arn; }
40 template <typename ArnT = Aws::String>
41 void SetArn(ArnT&& value) {
42 m_arnHasBeenSet = true;
43 m_arn = std::forward<ArnT>(value);
44 }
45 template <typename ArnT = Aws::String>
47 SetArn(std::forward<ArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::Vector<MetricStreamFilter>& GetIncludeFilters() const { return m_includeFilters; }
75 template <typename IncludeFiltersT = Aws::Vector<MetricStreamFilter>>
76 void SetIncludeFilters(IncludeFiltersT&& value) {
77 m_includeFiltersHasBeenSet = true;
78 m_includeFilters = std::forward<IncludeFiltersT>(value);
79 }
80 template <typename IncludeFiltersT = Aws::Vector<MetricStreamFilter>>
81 GetMetricStreamResult& WithIncludeFilters(IncludeFiltersT&& value) {
82 SetIncludeFilters(std::forward<IncludeFiltersT>(value));
83 return *this;
84 }
85 template <typename IncludeFiltersT = MetricStreamFilter>
86 GetMetricStreamResult& AddIncludeFilters(IncludeFiltersT&& value) {
87 m_includeFiltersHasBeenSet = true;
88 m_includeFilters.emplace_back(std::forward<IncludeFiltersT>(value));
89 return *this;
90 }
92
94
100 inline const Aws::Vector<MetricStreamFilter>& GetExcludeFilters() const { return m_excludeFilters; }
101 template <typename ExcludeFiltersT = Aws::Vector<MetricStreamFilter>>
102 void SetExcludeFilters(ExcludeFiltersT&& value) {
103 m_excludeFiltersHasBeenSet = true;
104 m_excludeFilters = std::forward<ExcludeFiltersT>(value);
105 }
106 template <typename ExcludeFiltersT = Aws::Vector<MetricStreamFilter>>
107 GetMetricStreamResult& WithExcludeFilters(ExcludeFiltersT&& value) {
108 SetExcludeFilters(std::forward<ExcludeFiltersT>(value));
109 return *this;
110 }
111 template <typename ExcludeFiltersT = MetricStreamFilter>
112 GetMetricStreamResult& AddExcludeFilters(ExcludeFiltersT&& value) {
113 m_excludeFiltersHasBeenSet = true;
114 m_excludeFilters.emplace_back(std::forward<ExcludeFiltersT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::String& GetFirehoseArn() const { return m_firehoseArn; }
125 template <typename FirehoseArnT = Aws::String>
126 void SetFirehoseArn(FirehoseArnT&& value) {
127 m_firehoseArnHasBeenSet = true;
128 m_firehoseArn = std::forward<FirehoseArnT>(value);
129 }
130 template <typename FirehoseArnT = Aws::String>
131 GetMetricStreamResult& WithFirehoseArn(FirehoseArnT&& value) {
132 SetFirehoseArn(std::forward<FirehoseArnT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
142 template <typename RoleArnT = Aws::String>
143 void SetRoleArn(RoleArnT&& value) {
144 m_roleArnHasBeenSet = true;
145 m_roleArn = std::forward<RoleArnT>(value);
146 }
147 template <typename RoleArnT = Aws::String>
149 SetRoleArn(std::forward<RoleArnT>(value));
150 return *this;
151 }
153
155
159 inline const Aws::String& GetState() const { return m_state; }
160 template <typename StateT = Aws::String>
161 void SetState(StateT&& value) {
162 m_stateHasBeenSet = true;
163 m_state = std::forward<StateT>(value);
164 }
165 template <typename StateT = Aws::String>
167 SetState(std::forward<StateT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
177 template <typename CreationDateT = Aws::Utils::DateTime>
178 void SetCreationDate(CreationDateT&& value) {
179 m_creationDateHasBeenSet = true;
180 m_creationDate = std::forward<CreationDateT>(value);
181 }
182 template <typename CreationDateT = Aws::Utils::DateTime>
183 GetMetricStreamResult& WithCreationDate(CreationDateT&& value) {
184 SetCreationDate(std::forward<CreationDateT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::Utils::DateTime& GetLastUpdateDate() const { return m_lastUpdateDate; }
194 template <typename LastUpdateDateT = Aws::Utils::DateTime>
195 void SetLastUpdateDate(LastUpdateDateT&& value) {
196 m_lastUpdateDateHasBeenSet = true;
197 m_lastUpdateDate = std::forward<LastUpdateDateT>(value);
198 }
199 template <typename LastUpdateDateT = Aws::Utils::DateTime>
200 GetMetricStreamResult& WithLastUpdateDate(LastUpdateDateT&& value) {
201 SetLastUpdateDate(std::forward<LastUpdateDateT>(value));
202 return *this;
203 }
205
207
214 inline MetricStreamOutputFormat GetOutputFormat() const { return m_outputFormat; }
216 m_outputFormatHasBeenSet = true;
217 m_outputFormat = value;
218 }
220 SetOutputFormat(value);
221 return *this;
222 }
224
226
233 inline const Aws::Vector<MetricStreamStatisticsConfiguration>& GetStatisticsConfigurations() const { return m_statisticsConfigurations; }
234 template <typename StatisticsConfigurationsT = Aws::Vector<MetricStreamStatisticsConfiguration>>
235 void SetStatisticsConfigurations(StatisticsConfigurationsT&& value) {
236 m_statisticsConfigurationsHasBeenSet = true;
237 m_statisticsConfigurations = std::forward<StatisticsConfigurationsT>(value);
238 }
239 template <typename StatisticsConfigurationsT = Aws::Vector<MetricStreamStatisticsConfiguration>>
240 GetMetricStreamResult& WithStatisticsConfigurations(StatisticsConfigurationsT&& value) {
241 SetStatisticsConfigurations(std::forward<StatisticsConfigurationsT>(value));
242 return *this;
243 }
244 template <typename StatisticsConfigurationsT = MetricStreamStatisticsConfiguration>
245 GetMetricStreamResult& AddStatisticsConfigurations(StatisticsConfigurationsT&& value) {
246 m_statisticsConfigurationsHasBeenSet = true;
247 m_statisticsConfigurations.emplace_back(std::forward<StatisticsConfigurationsT>(value));
248 return *this;
249 }
251
253
258 inline bool GetIncludeLinkedAccountsMetrics() const { return m_includeLinkedAccountsMetrics; }
259 inline void SetIncludeLinkedAccountsMetrics(bool value) {
260 m_includeLinkedAccountsMetricsHasBeenSet = true;
261 m_includeLinkedAccountsMetrics = value;
262 }
265 return *this;
266 }
268
270
271 inline const Aws::String& GetRequestId() const { return m_requestId; }
272 template <typename RequestIdT = Aws::String>
273 void SetRequestId(RequestIdT&& value) {
274 m_requestIdHasBeenSet = true;
275 m_requestId = std::forward<RequestIdT>(value);
276 }
277 template <typename RequestIdT = Aws::String>
279 SetRequestId(std::forward<RequestIdT>(value));
280 return *this;
281 }
283
285
286 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
287 template <typename ResponseMetadataT = ResponseMetadata>
288 void SetResponseMetadata(ResponseMetadataT&& value) {
289 m_responseMetadataHasBeenSet = true;
290 m_responseMetadata = std::forward<ResponseMetadataT>(value);
291 }
292 template <typename ResponseMetadataT = ResponseMetadata>
293 GetMetricStreamResult& WithResponseMetadata(ResponseMetadataT&& value) {
294 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
295 return *this;
296 }
298 private:
299 Aws::String m_arn;
300
301 Aws::String m_name;
302
303 Aws::Vector<MetricStreamFilter> m_includeFilters;
304
305 Aws::Vector<MetricStreamFilter> m_excludeFilters;
306
307 Aws::String m_firehoseArn;
308
309 Aws::String m_roleArn;
310
311 Aws::String m_state;
312
313 Aws::Utils::DateTime m_creationDate{};
314
315 Aws::Utils::DateTime m_lastUpdateDate{};
316
318
319 Aws::Vector<MetricStreamStatisticsConfiguration> m_statisticsConfigurations;
320
321 bool m_includeLinkedAccountsMetrics{false};
322
323 Aws::String m_requestId;
324
325 ResponseMetadata m_responseMetadata;
326 bool m_arnHasBeenSet = false;
327 bool m_nameHasBeenSet = false;
328 bool m_includeFiltersHasBeenSet = false;
329 bool m_excludeFiltersHasBeenSet = false;
330 bool m_firehoseArnHasBeenSet = false;
331 bool m_roleArnHasBeenSet = false;
332 bool m_stateHasBeenSet = false;
333 bool m_creationDateHasBeenSet = false;
334 bool m_lastUpdateDateHasBeenSet = false;
335 bool m_outputFormatHasBeenSet = false;
336 bool m_statisticsConfigurationsHasBeenSet = false;
337 bool m_includeLinkedAccountsMetricsHasBeenSet = false;
338 bool m_requestIdHasBeenSet = false;
339 bool m_responseMetadataHasBeenSet = false;
340};
341
342} // namespace Model
343} // namespace CloudWatch
344} // namespace Aws
AWS_CLOUDWATCH_API GetMetricStreamResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
void SetResponseMetadata(ResponseMetadataT &&value)
GetMetricStreamResult & WithStatisticsConfigurations(StatisticsConfigurationsT &&value)
GetMetricStreamResult & AddStatisticsConfigurations(StatisticsConfigurationsT &&value)
GetMetricStreamResult & WithName(NameT &&value)
const ResponseMetadata & GetResponseMetadata() const
GetMetricStreamResult & WithOutputFormat(MetricStreamOutputFormat value)
GetMetricStreamResult & WithIncludeFilters(IncludeFiltersT &&value)
AWS_CLOUDWATCH_API GetMetricStreamResult()=default
void SetOutputFormat(MetricStreamOutputFormat value)
GetMetricStreamResult & WithFirehoseArn(FirehoseArnT &&value)
AWS_CLOUDWATCH_API GetMetricStreamResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
void SetStatisticsConfigurations(StatisticsConfigurationsT &&value)
const Aws::Vector< MetricStreamFilter > & GetIncludeFilters() const
GetMetricStreamResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetLastUpdateDate() const
const Aws::Vector< MetricStreamFilter > & GetExcludeFilters() const
const Aws::Vector< MetricStreamStatisticsConfiguration > & GetStatisticsConfigurations() const
GetMetricStreamResult & WithState(StateT &&value)
GetMetricStreamResult & WithRoleArn(RoleArnT &&value)
GetMetricStreamResult & WithLastUpdateDate(LastUpdateDateT &&value)
GetMetricStreamResult & WithIncludeLinkedAccountsMetrics(bool value)
GetMetricStreamResult & WithCreationDate(CreationDateT &&value)
GetMetricStreamResult & AddIncludeFilters(IncludeFiltersT &&value)
GetMetricStreamResult & WithExcludeFilters(ExcludeFiltersT &&value)
GetMetricStreamResult & WithResponseMetadata(ResponseMetadataT &&value)
GetMetricStreamResult & AddExcludeFilters(ExcludeFiltersT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
GetMetricStreamResult & WithArn(ArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector