AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetContainerServiceMetricDataRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lightsail/model/ContainerServiceMetricName.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lightsail/model/MetricStatistic.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Lightsail
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LIGHTSAIL_API GetContainerServiceMetricDataRequest() = default;
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_LIGHTSAIL_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetServiceName() const { return m_serviceName; }
46 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
47 template<typename ServiceNameT = Aws::String>
48 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
49 template<typename ServiceNameT = Aws::String>
50 GetContainerServiceMetricDataRequest& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
52
54
70 inline ContainerServiceMetricName GetMetricName() const { return m_metricName; }
71 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
72 inline void SetMetricName(ContainerServiceMetricName value) { m_metricNameHasBeenSet = true; m_metricName = value; }
75
77
80 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
81 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
82 template<typename StartTimeT = Aws::Utils::DateTime>
83 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
84 template<typename StartTimeT = Aws::Utils::DateTime>
85 GetContainerServiceMetricDataRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
87
89
92 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
93 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
94 template<typename EndTimeT = Aws::Utils::DateTime>
95 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
96 template<typename EndTimeT = Aws::Utils::DateTime>
97 GetContainerServiceMetricDataRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
99
101
106 inline int GetPeriod() const { return m_period; }
107 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
108 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
109 inline GetContainerServiceMetricDataRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
111
113
131 inline const Aws::Vector<MetricStatistic>& GetStatistics() const { return m_statistics; }
132 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
133 template<typename StatisticsT = Aws::Vector<MetricStatistic>>
134 void SetStatistics(StatisticsT&& value) { m_statisticsHasBeenSet = true; m_statistics = std::forward<StatisticsT>(value); }
135 template<typename StatisticsT = Aws::Vector<MetricStatistic>>
136 GetContainerServiceMetricDataRequest& WithStatistics(StatisticsT&& value) { SetStatistics(std::forward<StatisticsT>(value)); return *this;}
137 inline GetContainerServiceMetricDataRequest& AddStatistics(MetricStatistic value) { m_statisticsHasBeenSet = true; m_statistics.push_back(value); return *this; }
139 private:
140
141 Aws::String m_serviceName;
142 bool m_serviceNameHasBeenSet = false;
143
145 bool m_metricNameHasBeenSet = false;
146
147 Aws::Utils::DateTime m_startTime{};
148 bool m_startTimeHasBeenSet = false;
149
150 Aws::Utils::DateTime m_endTime{};
151 bool m_endTimeHasBeenSet = false;
152
153 int m_period{0};
154 bool m_periodHasBeenSet = false;
155
156 Aws::Vector<MetricStatistic> m_statistics;
157 bool m_statisticsHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace Lightsail
162} // namespace Aws
GetContainerServiceMetricDataRequest & WithEndTime(EndTimeT &&value)
GetContainerServiceMetricDataRequest & AddStatistics(MetricStatistic value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
GetContainerServiceMetricDataRequest & WithStatistics(StatisticsT &&value)
GetContainerServiceMetricDataRequest & WithMetricName(ContainerServiceMetricName value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetContainerServiceMetricDataRequest & WithStartTime(StartTimeT &&value)
GetContainerServiceMetricDataRequest & WithServiceName(ServiceNameT &&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