AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetMetricStatisticsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/monitoring/CloudWatch_EXPORTS.h>
11#include <aws/monitoring/model/Datapoint.h>
12#include <aws/monitoring/model/ResponseMetadata.h>
13
14#include <utility>
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace CloudWatch {
25namespace Model {
27 public:
28 AWS_CLOUDWATCH_API GetMetricStatisticsResult() = default;
31
33
36 inline const Aws::String& GetLabel() const { return m_label; }
37 template <typename LabelT = Aws::String>
38 void SetLabel(LabelT&& value) {
39 m_labelHasBeenSet = true;
40 m_label = std::forward<LabelT>(value);
41 }
42 template <typename LabelT = Aws::String>
44 SetLabel(std::forward<LabelT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::Vector<Datapoint>& GetDatapoints() const { return m_datapoints; }
54 template <typename DatapointsT = Aws::Vector<Datapoint>>
55 void SetDatapoints(DatapointsT&& value) {
56 m_datapointsHasBeenSet = true;
57 m_datapoints = std::forward<DatapointsT>(value);
58 }
59 template <typename DatapointsT = Aws::Vector<Datapoint>>
61 SetDatapoints(std::forward<DatapointsT>(value));
62 return *this;
63 }
64 template <typename DatapointsT = Datapoint>
66 m_datapointsHasBeenSet = true;
67 m_datapoints.emplace_back(std::forward<DatapointsT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template <typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) {
77 m_requestIdHasBeenSet = true;
78 m_requestId = std::forward<RequestIdT>(value);
79 }
80 template <typename RequestIdT = Aws::String>
82 SetRequestId(std::forward<RequestIdT>(value));
83 return *this;
84 }
86
88
89 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
90 template <typename ResponseMetadataT = ResponseMetadata>
91 void SetResponseMetadata(ResponseMetadataT&& value) {
92 m_responseMetadataHasBeenSet = true;
93 m_responseMetadata = std::forward<ResponseMetadataT>(value);
94 }
95 template <typename ResponseMetadataT = ResponseMetadata>
96 GetMetricStatisticsResult& WithResponseMetadata(ResponseMetadataT&& value) {
97 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_label;
103
104 Aws::Vector<Datapoint> m_datapoints;
105
106 Aws::String m_requestId;
107
108 ResponseMetadata m_responseMetadata;
109 bool m_labelHasBeenSet = false;
110 bool m_datapointsHasBeenSet = false;
111 bool m_requestIdHasBeenSet = false;
112 bool m_responseMetadataHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace CloudWatch
117} // 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