AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetResourceMetricsRequest.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/pi/PIRequest.h>
11#include <aws/pi/PI_EXPORTS.h>
12#include <aws/pi/model/MetricQuery.h>
13#include <aws/pi/model/PeriodAlignment.h>
14#include <aws/pi/model/ServiceType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace PI {
20namespace Model {
21
25 public:
26 AWS_PI_API GetResourceMetricsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetResourceMetrics"; }
33
34 AWS_PI_API Aws::String SerializePayload() const override;
35
37
39
44 inline ServiceType GetServiceType() const { return m_serviceType; }
45 inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
46 inline void SetServiceType(ServiceType value) {
47 m_serviceTypeHasBeenSet = true;
48 m_serviceType = value;
49 }
51 SetServiceType(value);
52 return *this;
53 }
55
57
66 inline const Aws::String& GetIdentifier() const { return m_identifier; }
67 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
68 template <typename IdentifierT = Aws::String>
69 void SetIdentifier(IdentifierT&& value) {
70 m_identifierHasBeenSet = true;
71 m_identifier = std::forward<IdentifierT>(value);
72 }
73 template <typename IdentifierT = Aws::String>
75 SetIdentifier(std::forward<IdentifierT>(value));
76 return *this;
77 }
79
81
90 inline const Aws::Vector<MetricQuery>& GetMetricQueries() const { return m_metricQueries; }
91 inline bool MetricQueriesHasBeenSet() const { return m_metricQueriesHasBeenSet; }
92 template <typename MetricQueriesT = Aws::Vector<MetricQuery>>
93 void SetMetricQueries(MetricQueriesT&& value) {
94 m_metricQueriesHasBeenSet = true;
95 m_metricQueries = std::forward<MetricQueriesT>(value);
96 }
97 template <typename MetricQueriesT = Aws::Vector<MetricQuery>>
99 SetMetricQueries(std::forward<MetricQueriesT>(value));
100 return *this;
101 }
102 template <typename MetricQueriesT = MetricQuery>
104 m_metricQueriesHasBeenSet = true;
105 m_metricQueries.emplace_back(std::forward<MetricQueriesT>(value));
106 return *this;
107 }
109
111
120 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
121 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
122 template <typename StartTimeT = Aws::Utils::DateTime>
123 void SetStartTime(StartTimeT&& value) {
124 m_startTimeHasBeenSet = true;
125 m_startTime = std::forward<StartTimeT>(value);
126 }
127 template <typename StartTimeT = Aws::Utils::DateTime>
129 SetStartTime(std::forward<StartTimeT>(value));
130 return *this;
131 }
133
135
142 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
143 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
144 template <typename EndTimeT = Aws::Utils::DateTime>
145 void SetEndTime(EndTimeT&& value) {
146 m_endTimeHasBeenSet = true;
147 m_endTime = std::forward<EndTimeT>(value);
148 }
149 template <typename EndTimeT = Aws::Utils::DateTime>
151 SetEndTime(std::forward<EndTimeT>(value));
152 return *this;
153 }
155
157
168 inline int GetPeriodInSeconds() const { return m_periodInSeconds; }
169 inline bool PeriodInSecondsHasBeenSet() const { return m_periodInSecondsHasBeenSet; }
170 inline void SetPeriodInSeconds(int value) {
171 m_periodInSecondsHasBeenSet = true;
172 m_periodInSeconds = value;
173 }
175 SetPeriodInSeconds(value);
176 return *this;
177 }
179
181
184 inline int GetMaxResults() const { return m_maxResults; }
185 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
186 inline void SetMaxResults(int value) {
187 m_maxResultsHasBeenSet = true;
188 m_maxResults = value;
189 }
191 SetMaxResults(value);
192 return *this;
193 }
195
197
202 inline const Aws::String& GetNextToken() const { return m_nextToken; }
203 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
204 template <typename NextTokenT = Aws::String>
205 void SetNextToken(NextTokenT&& value) {
206 m_nextTokenHasBeenSet = true;
207 m_nextToken = std::forward<NextTokenT>(value);
208 }
209 template <typename NextTokenT = Aws::String>
211 SetNextToken(std::forward<NextTokenT>(value));
212 return *this;
213 }
215
217
221 inline PeriodAlignment GetPeriodAlignment() const { return m_periodAlignment; }
222 inline bool PeriodAlignmentHasBeenSet() const { return m_periodAlignmentHasBeenSet; }
224 m_periodAlignmentHasBeenSet = true;
225 m_periodAlignment = value;
226 }
228 SetPeriodAlignment(value);
229 return *this;
230 }
232 private:
233 ServiceType m_serviceType{ServiceType::NOT_SET};
234
235 Aws::String m_identifier;
236
237 Aws::Vector<MetricQuery> m_metricQueries;
238
239 Aws::Utils::DateTime m_startTime{};
240
241 Aws::Utils::DateTime m_endTime{};
242
243 int m_periodInSeconds{0};
244
245 int m_maxResults{0};
246
247 Aws::String m_nextToken;
248
249 PeriodAlignment m_periodAlignment{PeriodAlignment::NOT_SET};
250 bool m_serviceTypeHasBeenSet = false;
251 bool m_identifierHasBeenSet = false;
252 bool m_metricQueriesHasBeenSet = false;
253 bool m_startTimeHasBeenSet = false;
254 bool m_endTimeHasBeenSet = false;
255 bool m_periodInSecondsHasBeenSet = false;
256 bool m_maxResultsHasBeenSet = false;
257 bool m_nextTokenHasBeenSet = false;
258 bool m_periodAlignmentHasBeenSet = false;
259};
260
261} // namespace Model
262} // namespace PI
263} // namespace Aws
GetResourceMetricsRequest & AddMetricQueries(MetricQueriesT &&value)
const Aws::Utils::DateTime & GetEndTime() const
GetResourceMetricsRequest & WithIdentifier(IdentifierT &&value)
AWS_PI_API Aws::String SerializePayload() const override
GetResourceMetricsRequest & WithEndTime(EndTimeT &&value)
GetResourceMetricsRequest & WithStartTime(StartTimeT &&value)
GetResourceMetricsRequest & WithServiceType(ServiceType value)
AWS_PI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetResourceMetricsRequest & WithMetricQueries(MetricQueriesT &&value)
virtual const char * GetServiceRequestName() const override
GetResourceMetricsRequest & WithNextToken(NextTokenT &&value)
GetResourceMetricsRequest & WithPeriodAlignment(PeriodAlignment value)
const Aws::Utils::DateTime & GetStartTime() const
GetResourceMetricsRequest & WithPeriodInSeconds(int value)
const Aws::Vector< MetricQuery > & GetMetricQueries() const
GetResourceMetricsRequest & WithMaxResults(int value)
AWS_PI_API GetResourceMetricsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector