AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetResourceMetricsRequest.h
1
6#pragma once
7#include <aws/pi/PI_EXPORTS.h>
8#include <aws/pi/PIRequest.h>
9#include <aws/pi/model/ServiceType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/pi/model/PeriodAlignment.h>
14#include <aws/pi/model/MetricQuery.h>
15#include <utility>
16
17namespace Aws
18{
19namespace PI
20{
21namespace Model
22{
23
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetResourceMetrics"; }
36
37 AWS_PI_API Aws::String SerializePayload() const override;
38
40
41
43
48 inline const ServiceType& GetServiceType() const{ return m_serviceType; }
49 inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
50 inline void SetServiceType(const ServiceType& value) { m_serviceTypeHasBeenSet = true; m_serviceType = value; }
51 inline void SetServiceType(ServiceType&& value) { m_serviceTypeHasBeenSet = true; m_serviceType = std::move(value); }
52 inline GetResourceMetricsRequest& WithServiceType(const ServiceType& value) { SetServiceType(value); return *this;}
53 inline GetResourceMetricsRequest& WithServiceType(ServiceType&& value) { SetServiceType(std::move(value)); return *this;}
55
57
66 inline const Aws::String& GetIdentifier() const{ return m_identifier; }
67 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
68 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
69 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
70 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
71 inline GetResourceMetricsRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
72 inline GetResourceMetricsRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
73 inline GetResourceMetricsRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
75
77
86 inline const Aws::Vector<MetricQuery>& GetMetricQueries() const{ return m_metricQueries; }
87 inline bool MetricQueriesHasBeenSet() const { return m_metricQueriesHasBeenSet; }
88 inline void SetMetricQueries(const Aws::Vector<MetricQuery>& value) { m_metricQueriesHasBeenSet = true; m_metricQueries = value; }
89 inline void SetMetricQueries(Aws::Vector<MetricQuery>&& value) { m_metricQueriesHasBeenSet = true; m_metricQueries = std::move(value); }
91 inline GetResourceMetricsRequest& WithMetricQueries(Aws::Vector<MetricQuery>&& value) { SetMetricQueries(std::move(value)); return *this;}
92 inline GetResourceMetricsRequest& AddMetricQueries(const MetricQuery& value) { m_metricQueriesHasBeenSet = true; m_metricQueries.push_back(value); return *this; }
93 inline GetResourceMetricsRequest& AddMetricQueries(MetricQuery&& value) { m_metricQueriesHasBeenSet = true; m_metricQueries.push_back(std::move(value)); return *this; }
95
97
106 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
107 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
108 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
109 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
110 inline GetResourceMetricsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
111 inline GetResourceMetricsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
113
115
122 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
123 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
124 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
125 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
126 inline GetResourceMetricsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
127 inline GetResourceMetricsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
129
131
142 inline int GetPeriodInSeconds() const{ return m_periodInSeconds; }
143 inline bool PeriodInSecondsHasBeenSet() const { return m_periodInSecondsHasBeenSet; }
144 inline void SetPeriodInSeconds(int value) { m_periodInSecondsHasBeenSet = true; m_periodInSeconds = value; }
145 inline GetResourceMetricsRequest& WithPeriodInSeconds(int value) { SetPeriodInSeconds(value); return *this;}
147
149
154 inline int GetMaxResults() const{ return m_maxResults; }
155 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
156 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
157 inline GetResourceMetricsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
159
161
166 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
167 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
168 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
169 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
170 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
171 inline GetResourceMetricsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
172 inline GetResourceMetricsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
173 inline GetResourceMetricsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
175
177
181 inline const PeriodAlignment& GetPeriodAlignment() const{ return m_periodAlignment; }
182 inline bool PeriodAlignmentHasBeenSet() const { return m_periodAlignmentHasBeenSet; }
183 inline void SetPeriodAlignment(const PeriodAlignment& value) { m_periodAlignmentHasBeenSet = true; m_periodAlignment = value; }
184 inline void SetPeriodAlignment(PeriodAlignment&& value) { m_periodAlignmentHasBeenSet = true; m_periodAlignment = std::move(value); }
186 inline GetResourceMetricsRequest& WithPeriodAlignment(PeriodAlignment&& value) { SetPeriodAlignment(std::move(value)); return *this;}
188 private:
189
190 ServiceType m_serviceType;
191 bool m_serviceTypeHasBeenSet = false;
192
193 Aws::String m_identifier;
194 bool m_identifierHasBeenSet = false;
195
196 Aws::Vector<MetricQuery> m_metricQueries;
197 bool m_metricQueriesHasBeenSet = false;
198
199 Aws::Utils::DateTime m_startTime;
200 bool m_startTimeHasBeenSet = false;
201
202 Aws::Utils::DateTime m_endTime;
203 bool m_endTimeHasBeenSet = false;
204
205 int m_periodInSeconds;
206 bool m_periodInSecondsHasBeenSet = false;
207
208 int m_maxResults;
209 bool m_maxResultsHasBeenSet = false;
210
211 Aws::String m_nextToken;
212 bool m_nextTokenHasBeenSet = false;
213
214 PeriodAlignment m_periodAlignment;
215 bool m_periodAlignmentHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace PI
220} // namespace Aws
void SetEndTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndTime() const
void SetStartTime(const Aws::Utils::DateTime &value)
GetResourceMetricsRequest & AddMetricQueries(MetricQuery &&value)
GetResourceMetricsRequest & WithIdentifier(Aws::String &&value)
GetResourceMetricsRequest & WithPeriodAlignment(PeriodAlignment &&value)
AWS_PI_API Aws::String SerializePayload() const override
GetResourceMetricsRequest & WithEndTime(Aws::Utils::DateTime &&value)
GetResourceMetricsRequest & AddMetricQueries(const MetricQuery &value)
GetResourceMetricsRequest & WithNextToken(const char *value)
GetResourceMetricsRequest & WithServiceType(const ServiceType &value)
void SetEndTime(Aws::Utils::DateTime &&value)
GetResourceMetricsRequest & WithNextToken(const Aws::String &value)
GetResourceMetricsRequest & WithMetricQueries(Aws::Vector< MetricQuery > &&value)
void SetMetricQueries(const Aws::Vector< MetricQuery > &value)
GetResourceMetricsRequest & WithIdentifier(const Aws::String &value)
GetResourceMetricsRequest & WithIdentifier(const char *value)
AWS_PI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
GetResourceMetricsRequest & WithEndTime(const Aws::Utils::DateTime &value)
GetResourceMetricsRequest & WithStartTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStartTime() const
GetResourceMetricsRequest & WithStartTime(const Aws::Utils::DateTime &value)
GetResourceMetricsRequest & WithPeriodInSeconds(int value)
GetResourceMetricsRequest & WithPeriodAlignment(const PeriodAlignment &value)
const Aws::Vector< MetricQuery > & GetMetricQueries() const
GetResourceMetricsRequest & WithNextToken(Aws::String &&value)
void SetStartTime(Aws::Utils::DateTime &&value)
GetResourceMetricsRequest & WithMaxResults(int value)
void SetPeriodAlignment(const PeriodAlignment &value)
GetResourceMetricsRequest & WithServiceType(ServiceType &&value)
void SetMetricQueries(Aws::Vector< MetricQuery > &&value)
GetResourceMetricsRequest & WithMetricQueries(const Aws::Vector< MetricQuery > &value)
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