AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
GetMetricStreamResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/crt/cbor/Cbor.h>
12#include <aws/monitoring/CloudWatch_EXPORTS.h>
13#include <aws/monitoring/model/MetricStreamFilter.h>
14#include <aws/monitoring/model/MetricStreamOutputFormat.h>
15#include <aws/monitoring/model/MetricStreamStatisticsConfiguration.h>
16#include <aws/monitoring/model/ResponseMetadata.h>
17
18#include <utility>
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Cbor {
25class CborValue;
26} // namespace Cbor
27} // namespace Utils
28namespace CloudWatch {
29namespace Model {
31 public:
32 AWS_CLOUDWATCH_API GetMetricStreamResult() = default;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 template <typename ArnT = Aws::String>
42 void SetArn(ArnT&& value) {
43 m_arnHasBeenSet = true;
44 m_arn = std::forward<ArnT>(value);
45 }
46 template <typename ArnT = Aws::String>
48 SetArn(std::forward<ArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::Vector<MetricStreamFilter>& GetIncludeFilters() const { return m_includeFilters; }
76 template <typename IncludeFiltersT = Aws::Vector<MetricStreamFilter>>
77 void SetIncludeFilters(IncludeFiltersT&& value) {
78 m_includeFiltersHasBeenSet = true;
79 m_includeFilters = std::forward<IncludeFiltersT>(value);
80 }
81 template <typename IncludeFiltersT = Aws::Vector<MetricStreamFilter>>
82 GetMetricStreamResult& WithIncludeFilters(IncludeFiltersT&& value) {
83 SetIncludeFilters(std::forward<IncludeFiltersT>(value));
84 return *this;
85 }
86 template <typename IncludeFiltersT = MetricStreamFilter>
87 GetMetricStreamResult& AddIncludeFilters(IncludeFiltersT&& value) {
88 m_includeFiltersHasBeenSet = true;
89 m_includeFilters.emplace_back(std::forward<IncludeFiltersT>(value));
90 return *this;
91 }
93
95
101 inline const Aws::Vector<MetricStreamFilter>& GetExcludeFilters() const { return m_excludeFilters; }
102 template <typename ExcludeFiltersT = Aws::Vector<MetricStreamFilter>>
103 void SetExcludeFilters(ExcludeFiltersT&& value) {
104 m_excludeFiltersHasBeenSet = true;
105 m_excludeFilters = std::forward<ExcludeFiltersT>(value);
106 }
107 template <typename ExcludeFiltersT = Aws::Vector<MetricStreamFilter>>
108 GetMetricStreamResult& WithExcludeFilters(ExcludeFiltersT&& value) {
109 SetExcludeFilters(std::forward<ExcludeFiltersT>(value));
110 return *this;
111 }
112 template <typename ExcludeFiltersT = MetricStreamFilter>
113 GetMetricStreamResult& AddExcludeFilters(ExcludeFiltersT&& value) {
114 m_excludeFiltersHasBeenSet = true;
115 m_excludeFilters.emplace_back(std::forward<ExcludeFiltersT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::String& GetFirehoseArn() const { return m_firehoseArn; }
126 template <typename FirehoseArnT = Aws::String>
127 void SetFirehoseArn(FirehoseArnT&& value) {
128 m_firehoseArnHasBeenSet = true;
129 m_firehoseArn = std::forward<FirehoseArnT>(value);
130 }
131 template <typename FirehoseArnT = Aws::String>
132 GetMetricStreamResult& WithFirehoseArn(FirehoseArnT&& value) {
133 SetFirehoseArn(std::forward<FirehoseArnT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
143 template <typename RoleArnT = Aws::String>
144 void SetRoleArn(RoleArnT&& value) {
145 m_roleArnHasBeenSet = true;
146 m_roleArn = std::forward<RoleArnT>(value);
147 }
148 template <typename RoleArnT = Aws::String>
150 SetRoleArn(std::forward<RoleArnT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::String& GetState() const { return m_state; }
161 template <typename StateT = Aws::String>
162 void SetState(StateT&& value) {
163 m_stateHasBeenSet = true;
164 m_state = std::forward<StateT>(value);
165 }
166 template <typename StateT = Aws::String>
168 SetState(std::forward<StateT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
178 template <typename CreationDateT = Aws::Utils::DateTime>
179 void SetCreationDate(CreationDateT&& value) {
180 m_creationDateHasBeenSet = true;
181 m_creationDate = std::forward<CreationDateT>(value);
182 }
183 template <typename CreationDateT = Aws::Utils::DateTime>
184 GetMetricStreamResult& WithCreationDate(CreationDateT&& value) {
185 SetCreationDate(std::forward<CreationDateT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::Utils::DateTime& GetLastUpdateDate() const { return m_lastUpdateDate; }
195 template <typename LastUpdateDateT = Aws::Utils::DateTime>
196 void SetLastUpdateDate(LastUpdateDateT&& value) {
197 m_lastUpdateDateHasBeenSet = true;
198 m_lastUpdateDate = std::forward<LastUpdateDateT>(value);
199 }
200 template <typename LastUpdateDateT = Aws::Utils::DateTime>
201 GetMetricStreamResult& WithLastUpdateDate(LastUpdateDateT&& value) {
202 SetLastUpdateDate(std::forward<LastUpdateDateT>(value));
203 return *this;
204 }
206
208
215 inline MetricStreamOutputFormat GetOutputFormat() const { return m_outputFormat; }
217 m_outputFormatHasBeenSet = true;
218 m_outputFormat = value;
219 }
221 SetOutputFormat(value);
222 return *this;
223 }
225
227
234 inline const Aws::Vector<MetricStreamStatisticsConfiguration>& GetStatisticsConfigurations() const { return m_statisticsConfigurations; }
235 template <typename StatisticsConfigurationsT = Aws::Vector<MetricStreamStatisticsConfiguration>>
236 void SetStatisticsConfigurations(StatisticsConfigurationsT&& value) {
237 m_statisticsConfigurationsHasBeenSet = true;
238 m_statisticsConfigurations = std::forward<StatisticsConfigurationsT>(value);
239 }
240 template <typename StatisticsConfigurationsT = Aws::Vector<MetricStreamStatisticsConfiguration>>
241 GetMetricStreamResult& WithStatisticsConfigurations(StatisticsConfigurationsT&& value) {
242 SetStatisticsConfigurations(std::forward<StatisticsConfigurationsT>(value));
243 return *this;
244 }
245 template <typename StatisticsConfigurationsT = MetricStreamStatisticsConfiguration>
246 GetMetricStreamResult& AddStatisticsConfigurations(StatisticsConfigurationsT&& value) {
247 m_statisticsConfigurationsHasBeenSet = true;
248 m_statisticsConfigurations.emplace_back(std::forward<StatisticsConfigurationsT>(value));
249 return *this;
250 }
252
254
259 inline bool GetIncludeLinkedAccountsMetrics() const { return m_includeLinkedAccountsMetrics; }
260 inline void SetIncludeLinkedAccountsMetrics(bool value) {
261 m_includeLinkedAccountsMetricsHasBeenSet = true;
262 m_includeLinkedAccountsMetrics = value;
263 }
266 return *this;
267 }
269
271
272 inline const Aws::String& GetRequestId() const { return m_requestId; }
273 template <typename RequestIdT = Aws::String>
274 void SetRequestId(RequestIdT&& value) {
275 m_requestIdHasBeenSet = true;
276 m_requestId = std::forward<RequestIdT>(value);
277 }
278 template <typename RequestIdT = Aws::String>
280 SetRequestId(std::forward<RequestIdT>(value));
281 return *this;
282 }
284
286
287 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
288 template <typename ResponseMetadataT = ResponseMetadata>
289 void SetResponseMetadata(ResponseMetadataT&& value) {
290 m_responseMetadataHasBeenSet = true;
291 m_responseMetadata = std::forward<ResponseMetadataT>(value);
292 }
293 template <typename ResponseMetadataT = ResponseMetadata>
294 GetMetricStreamResult& WithResponseMetadata(ResponseMetadataT&& value) {
295 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
296 return *this;
297 }
299 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
300
301 private:
302 Aws::String m_arn;
303
304 Aws::String m_name;
305
306 Aws::Vector<MetricStreamFilter> m_includeFilters;
307
308 Aws::Vector<MetricStreamFilter> m_excludeFilters;
309
310 Aws::String m_firehoseArn;
311
312 Aws::String m_roleArn;
313
314 Aws::String m_state;
315
316 Aws::Utils::DateTime m_creationDate{};
317
318 Aws::Utils::DateTime m_lastUpdateDate{};
319
321
322 Aws::Vector<MetricStreamStatisticsConfiguration> m_statisticsConfigurations;
323
324 bool m_includeLinkedAccountsMetrics{false};
325
326 Aws::String m_requestId;
327
328 ResponseMetadata m_responseMetadata;
329 Aws::Http::HttpResponseCode m_HttpResponseCode;
330 bool m_arnHasBeenSet = false;
331 bool m_nameHasBeenSet = false;
332 bool m_includeFiltersHasBeenSet = false;
333 bool m_excludeFiltersHasBeenSet = false;
334 bool m_firehoseArnHasBeenSet = false;
335 bool m_roleArnHasBeenSet = false;
336 bool m_stateHasBeenSet = false;
337 bool m_creationDateHasBeenSet = false;
338 bool m_lastUpdateDateHasBeenSet = false;
339 bool m_outputFormatHasBeenSet = false;
340 bool m_statisticsConfigurationsHasBeenSet = false;
341 bool m_includeLinkedAccountsMetricsHasBeenSet = false;
342 bool m_requestIdHasBeenSet = false;
343 bool m_responseMetadataHasBeenSet = false;
344};
345
346} // namespace Model
347} // namespace CloudWatch
348} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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