AWS SDK for C++  1.9.108
AWS SDK for C++
GetContainerServiceMetricDataRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Lightsail
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetContainerServiceMetricData"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetServiceName() const{ return m_serviceName; }
45 
49  inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
50 
54  inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
55 
59  inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
60 
64  inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
65 
69  inline GetContainerServiceMetricDataRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
70 
74  inline GetContainerServiceMetricDataRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
75 
79  inline GetContainerServiceMetricDataRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
80 
81 
98  inline const ContainerServiceMetricName& GetMetricName() const{ return m_metricName; }
99 
116  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
117 
134  inline void SetMetricName(const ContainerServiceMetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
135 
152  inline void SetMetricName(ContainerServiceMetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
153 
170  inline GetContainerServiceMetricDataRequest& WithMetricName(const ContainerServiceMetricName& value) { SetMetricName(value); return *this;}
171 
188  inline GetContainerServiceMetricDataRequest& WithMetricName(ContainerServiceMetricName&& value) { SetMetricName(std::move(value)); return *this;}
189 
190 
194  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
195 
199  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
200 
204  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
205 
209  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
210 
214  inline GetContainerServiceMetricDataRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
215 
219  inline GetContainerServiceMetricDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
220 
221 
225  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
226 
230  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
231 
235  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
236 
240  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
241 
245  inline GetContainerServiceMetricDataRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
246 
250  inline GetContainerServiceMetricDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
251 
252 
258  inline int GetPeriod() const{ return m_period; }
259 
265  inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
266 
272  inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
273 
279  inline GetContainerServiceMetricDataRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
280 
281 
300  inline const Aws::Vector<MetricStatistic>& GetStatistics() const{ return m_statistics; }
301 
320  inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
321 
340  inline void SetStatistics(const Aws::Vector<MetricStatistic>& value) { m_statisticsHasBeenSet = true; m_statistics = value; }
341 
360  inline void SetStatistics(Aws::Vector<MetricStatistic>&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); }
361 
380  inline GetContainerServiceMetricDataRequest& WithStatistics(const Aws::Vector<MetricStatistic>& value) { SetStatistics(value); return *this;}
381 
400  inline GetContainerServiceMetricDataRequest& WithStatistics(Aws::Vector<MetricStatistic>&& value) { SetStatistics(std::move(value)); return *this;}
401 
420  inline GetContainerServiceMetricDataRequest& AddStatistics(const MetricStatistic& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(value); return *this; }
421 
440  inline GetContainerServiceMetricDataRequest& AddStatistics(MetricStatistic&& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(std::move(value)); return *this; }
441 
442  private:
443 
444  Aws::String m_serviceName;
445  bool m_serviceNameHasBeenSet;
446 
447  ContainerServiceMetricName m_metricName;
448  bool m_metricNameHasBeenSet;
449 
450  Aws::Utils::DateTime m_startTime;
451  bool m_startTimeHasBeenSet;
452 
453  Aws::Utils::DateTime m_endTime;
454  bool m_endTimeHasBeenSet;
455 
456  int m_period;
457  bool m_periodHasBeenSet;
458 
459  Aws::Vector<MetricStatistic> m_statistics;
460  bool m_statisticsHasBeenSet;
461  };
462 
463 } // namespace Model
464 } // namespace Lightsail
465 } // namespace Aws
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::WithStatistics
GetContainerServiceMetricDataRequest & WithStatistics(Aws::Vector< MetricStatistic > &&value)
Definition: GetContainerServiceMetricDataRequest.h:400
Aws::Utils::DateTime
Definition: DateTime.h:55
ContainerServiceMetricName.h
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::WithServiceName
GetContainerServiceMetricDataRequest & WithServiceName(const Aws::String &value)
Definition: GetContainerServiceMetricDataRequest.h:69
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: GetContainerServiceMetricDataRequest.h:230
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::WithServiceName
GetContainerServiceMetricDataRequest & WithServiceName(Aws::String &&value)
Definition: GetContainerServiceMetricDataRequest.h:74
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::WithEndTime
GetContainerServiceMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: GetContainerServiceMetricDataRequest.h:245
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::SetMetricName
void SetMetricName(ContainerServiceMetricName &&value)
Definition: GetContainerServiceMetricDataRequest.h:152
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest
Definition: GetContainerServiceMetricDataRequest.h:26
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::StatisticsHasBeenSet
bool StatisticsHasBeenSet() const
Definition: GetContainerServiceMetricDataRequest.h:320
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::GetStatistics
const Aws::Vector< MetricStatistic > & GetStatistics() const
Definition: GetContainerServiceMetricDataRequest.h:300
DateTime.h
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::AddStatistics
GetContainerServiceMetricDataRequest & AddStatistics(const MetricStatistic &value)
Definition: GetContainerServiceMetricDataRequest.h:420
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::WithStartTime
GetContainerServiceMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: GetContainerServiceMetricDataRequest.h:214
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: GetContainerServiceMetricDataRequest.h:116
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::AddStatistics
GetContainerServiceMetricDataRequest & AddStatistics(MetricStatistic &&value)
Definition: GetContainerServiceMetricDataRequest.h:440
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::PeriodHasBeenSet
bool PeriodHasBeenSet() const
Definition: GetContainerServiceMetricDataRequest.h:265
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::ServiceNameHasBeenSet
bool ServiceNameHasBeenSet() const
Definition: GetContainerServiceMetricDataRequest.h:49
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: GetContainerServiceMetricDataRequest.h:204
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::SetServiceName
void SetServiceName(const Aws::String &value)
Definition: GetContainerServiceMetricDataRequest.h:54
AWSVector.h
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: GetContainerServiceMetricDataRequest.h:194
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::WithStatistics
GetContainerServiceMetricDataRequest & WithStatistics(const Aws::Vector< MetricStatistic > &value)
Definition: GetContainerServiceMetricDataRequest.h:380
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::SetServiceName
void SetServiceName(Aws::String &&value)
Definition: GetContainerServiceMetricDataRequest.h:59
LightsailRequest.h
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: GetContainerServiceMetricDataRequest.h:199
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::WithStartTime
GetContainerServiceMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: GetContainerServiceMetricDataRequest.h:219
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetContainerServiceMetricDataRequest.h:34
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::WithMetricName
GetContainerServiceMetricDataRequest & WithMetricName(const ContainerServiceMetricName &value)
Definition: GetContainerServiceMetricDataRequest.h:170
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::GetServiceName
const Aws::String & GetServiceName() const
Definition: GetContainerServiceMetricDataRequest.h:44
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: GetContainerServiceMetricDataRequest.h:225
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::SetMetricName
void SetMetricName(const ContainerServiceMetricName &value)
Definition: GetContainerServiceMetricDataRequest.h:134
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::SetStatistics
void SetStatistics(Aws::Vector< MetricStatistic > &&value)
Definition: GetContainerServiceMetricDataRequest.h:360
AWSString.h
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::WithServiceName
GetContainerServiceMetricDataRequest & WithServiceName(const char *value)
Definition: GetContainerServiceMetricDataRequest.h:79
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::GetPeriod
int GetPeriod() const
Definition: GetContainerServiceMetricDataRequest.h:258
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::SetStatistics
void SetStatistics(const Aws::Vector< MetricStatistic > &value)
Definition: GetContainerServiceMetricDataRequest.h:340
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::WithPeriod
GetContainerServiceMetricDataRequest & WithPeriod(int value)
Definition: GetContainerServiceMetricDataRequest.h:279
Aws
Definition: AccessManagementClient.h:15
MetricStatistic.h
Aws::Lightsail::Model::ContainerServiceMetricName
ContainerServiceMetricName
Definition: ContainerServiceMetricName.h:17
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: GetContainerServiceMetricDataRequest.h:235
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::SetServiceName
void SetServiceName(const char *value)
Definition: GetContainerServiceMetricDataRequest.h:64
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: GetContainerServiceMetricDataRequest.h:240
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::WithEndTime
GetContainerServiceMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: GetContainerServiceMetricDataRequest.h:250
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::GetContainerServiceMetricDataRequest
GetContainerServiceMetricDataRequest()
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: GetContainerServiceMetricDataRequest.h:209
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::WithMetricName
GetContainerServiceMetricDataRequest & WithMetricName(ContainerServiceMetricName &&value)
Definition: GetContainerServiceMetricDataRequest.h:188
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::SetPeriod
void SetPeriod(int value)
Definition: GetContainerServiceMetricDataRequest.h:272
Aws::Lightsail::Model::MetricStatistic
MetricStatistic
Definition: MetricStatistic.h:17
Aws::Lightsail::Model::GetContainerServiceMetricDataRequest::GetMetricName
const ContainerServiceMetricName & GetMetricName() const
Definition: GetContainerServiceMetricDataRequest.h:98