AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetResourceMetricsResult.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/pi/PI_EXPORTS.h>
12#include <aws/pi/model/MetricKeyDataPoints.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace PI {
26namespace Model {
28 public:
29 AWS_PI_API GetResourceMetricsResult() = default;
32
34
40 inline const Aws::Utils::DateTime& GetAlignedStartTime() const { return m_alignedStartTime; }
41 template <typename AlignedStartTimeT = Aws::Utils::DateTime>
42 void SetAlignedStartTime(AlignedStartTimeT&& value) {
43 m_alignedStartTimeHasBeenSet = true;
44 m_alignedStartTime = std::forward<AlignedStartTimeT>(value);
45 }
46 template <typename AlignedStartTimeT = Aws::Utils::DateTime>
47 GetResourceMetricsResult& WithAlignedStartTime(AlignedStartTimeT&& value) {
48 SetAlignedStartTime(std::forward<AlignedStartTimeT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::Utils::DateTime& GetAlignedEndTime() const { return m_alignedEndTime; }
61 template <typename AlignedEndTimeT = Aws::Utils::DateTime>
62 void SetAlignedEndTime(AlignedEndTimeT&& value) {
63 m_alignedEndTimeHasBeenSet = true;
64 m_alignedEndTime = std::forward<AlignedEndTimeT>(value);
65 }
66 template <typename AlignedEndTimeT = Aws::Utils::DateTime>
67 GetResourceMetricsResult& WithAlignedEndTime(AlignedEndTimeT&& value) {
68 SetAlignedEndTime(std::forward<AlignedEndTimeT>(value));
69 return *this;
70 }
72
74
81 inline const Aws::String& GetIdentifier() const { return m_identifier; }
82 template <typename IdentifierT = Aws::String>
83 void SetIdentifier(IdentifierT&& value) {
84 m_identifierHasBeenSet = true;
85 m_identifier = std::forward<IdentifierT>(value);
86 }
87 template <typename IdentifierT = Aws::String>
89 SetIdentifier(std::forward<IdentifierT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Vector<MetricKeyDataPoints>& GetMetricList() const { return m_metricList; }
100 template <typename MetricListT = Aws::Vector<MetricKeyDataPoints>>
101 void SetMetricList(MetricListT&& value) {
102 m_metricListHasBeenSet = true;
103 m_metricList = std::forward<MetricListT>(value);
104 }
105 template <typename MetricListT = Aws::Vector<MetricKeyDataPoints>>
107 SetMetricList(std::forward<MetricListT>(value));
108 return *this;
109 }
110 template <typename MetricListT = MetricKeyDataPoints>
112 m_metricListHasBeenSet = true;
113 m_metricList.emplace_back(std::forward<MetricListT>(value));
114 return *this;
115 }
117
119
124 inline const Aws::String& GetNextToken() const { return m_nextToken; }
125 template <typename NextTokenT = Aws::String>
126 void SetNextToken(NextTokenT&& value) {
127 m_nextTokenHasBeenSet = true;
128 m_nextToken = std::forward<NextTokenT>(value);
129 }
130 template <typename NextTokenT = Aws::String>
132 SetNextToken(std::forward<NextTokenT>(value));
133 return *this;
134 }
136
138
139 inline const Aws::String& GetRequestId() const { return m_requestId; }
140 template <typename RequestIdT = Aws::String>
141 void SetRequestId(RequestIdT&& value) {
142 m_requestIdHasBeenSet = true;
143 m_requestId = std::forward<RequestIdT>(value);
144 }
145 template <typename RequestIdT = Aws::String>
147 SetRequestId(std::forward<RequestIdT>(value));
148 return *this;
149 }
151 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
152
153 private:
154 Aws::Utils::DateTime m_alignedStartTime{};
155
156 Aws::Utils::DateTime m_alignedEndTime{};
157
158 Aws::String m_identifier;
159
161
162 Aws::String m_nextToken;
163
164 Aws::String m_requestId;
165 Aws::Http::HttpResponseCode m_HttpResponseCode;
166 bool m_alignedStartTimeHasBeenSet = false;
167 bool m_alignedEndTimeHasBeenSet = false;
168 bool m_identifierHasBeenSet = false;
169 bool m_metricListHasBeenSet = false;
170 bool m_nextTokenHasBeenSet = false;
171 bool m_requestIdHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace PI
176} // namespace Aws
GetResourceMetricsResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetAlignedStartTime() const
AWS_PI_API GetResourceMetricsResult()=default
const Aws::Vector< MetricKeyDataPoints > & GetMetricList() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetAlignedStartTime(AlignedStartTimeT &&value)
AWS_PI_API GetResourceMetricsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceMetricsResult & WithAlignedEndTime(AlignedEndTimeT &&value)
GetResourceMetricsResult & WithAlignedStartTime(AlignedStartTimeT &&value)
const Aws::Utils::DateTime & GetAlignedEndTime() const
GetResourceMetricsResult & WithNextToken(NextTokenT &&value)
AWS_PI_API GetResourceMetricsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceMetricsResult & AddMetricList(MetricListT &&value)
GetResourceMetricsResult & WithIdentifier(IdentifierT &&value)
GetResourceMetricsResult & WithMetricList(MetricListT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue