AWS SDK for C++

AWS SDK for C++ Version 1.11.790

Loading...
Searching...
No Matches
GetMetricStatisticsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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/Datapoint.h>
13#include <aws/monitoring/model/ResponseMetadata.h>
14
15#include <utility>
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace CloudWatch {
26namespace Model {
28 public:
29 AWS_CLOUDWATCH_API GetMetricStatisticsResult() = default;
32
34
37 inline const Aws::String& GetLabel() const { return m_label; }
38 template <typename LabelT = Aws::String>
39 void SetLabel(LabelT&& value) {
40 m_labelHasBeenSet = true;
41 m_label = std::forward<LabelT>(value);
42 }
43 template <typename LabelT = Aws::String>
45 SetLabel(std::forward<LabelT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::Vector<Datapoint>& GetDatapoints() const { return m_datapoints; }
55 template <typename DatapointsT = Aws::Vector<Datapoint>>
56 void SetDatapoints(DatapointsT&& value) {
57 m_datapointsHasBeenSet = true;
58 m_datapoints = std::forward<DatapointsT>(value);
59 }
60 template <typename DatapointsT = Aws::Vector<Datapoint>>
62 SetDatapoints(std::forward<DatapointsT>(value));
63 return *this;
64 }
65 template <typename DatapointsT = Datapoint>
67 m_datapointsHasBeenSet = true;
68 m_datapoints.emplace_back(std::forward<DatapointsT>(value));
69 return *this;
70 }
72
74
75 inline const Aws::String& GetRequestId() const { return m_requestId; }
76 template <typename RequestIdT = Aws::String>
77 void SetRequestId(RequestIdT&& value) {
78 m_requestIdHasBeenSet = true;
79 m_requestId = std::forward<RequestIdT>(value);
80 }
81 template <typename RequestIdT = Aws::String>
83 SetRequestId(std::forward<RequestIdT>(value));
84 return *this;
85 }
87
89
90 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
91 template <typename ResponseMetadataT = ResponseMetadata>
92 void SetResponseMetadata(ResponseMetadataT&& value) {
93 m_responseMetadataHasBeenSet = true;
94 m_responseMetadata = std::forward<ResponseMetadataT>(value);
95 }
96 template <typename ResponseMetadataT = ResponseMetadata>
97 GetMetricStatisticsResult& WithResponseMetadata(ResponseMetadataT&& value) {
98 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
99 return *this;
100 }
102 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
103
104 private:
105 Aws::String m_label;
106
107 Aws::Vector<Datapoint> m_datapoints;
108
109 Aws::String m_requestId;
110
111 ResponseMetadata m_responseMetadata;
112 Aws::Http::HttpResponseCode m_HttpResponseCode;
113 bool m_labelHasBeenSet = false;
114 bool m_datapointsHasBeenSet = false;
115 bool m_requestIdHasBeenSet = false;
116 bool m_responseMetadataHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace CloudWatch
121} // namespace Aws
AWS_CLOUDWATCH_API GetMetricStatisticsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
GetMetricStatisticsResult & AddDatapoints(DatapointsT &&value)
AWS_CLOUDWATCH_API GetMetricStatisticsResult()=default
AWS_CLOUDWATCH_API GetMetricStatisticsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
const Aws::Vector< Datapoint > & GetDatapoints() const
GetMetricStatisticsResult & WithDatapoints(DatapointsT &&value)
GetMetricStatisticsResult & WithLabel(LabelT &&value)
GetMetricStatisticsResult & WithResponseMetadata(ResponseMetadataT &&value)
GetMetricStatisticsResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector