AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
48 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
49 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
51 inline GetContainerServiceMetricDataRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
52 inline GetContainerServiceMetricDataRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
54
56
72 inline const ContainerServiceMetricName& GetMetricName() const{ return m_metricName; }
73 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
74 inline void SetMetricName(const ContainerServiceMetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
75 inline void SetMetricName(ContainerServiceMetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
79
81
84 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
85 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
86 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
87 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
89 inline GetContainerServiceMetricDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
97 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
98 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
99 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
101 inline GetContainerServiceMetricDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
103
105
110 inline int GetPeriod() const{ return m_period; }
111 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
112 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
113 inline GetContainerServiceMetricDataRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
115
117
135 inline const Aws::Vector<MetricStatistic>& GetStatistics() const{ return m_statistics; }
136 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
137 inline void SetStatistics(const Aws::Vector<MetricStatistic>& value) { m_statisticsHasBeenSet = true; m_statistics = value; }
138 inline void SetStatistics(Aws::Vector<MetricStatistic>&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); }
141 inline GetContainerServiceMetricDataRequest& AddStatistics(const MetricStatistic& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(value); return *this; }
142 inline GetContainerServiceMetricDataRequest& AddStatistics(MetricStatistic&& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(std::move(value)); return *this; }
144 private:
145
146 Aws::String m_serviceName;
147 bool m_serviceNameHasBeenSet = false;
148
149 ContainerServiceMetricName m_metricName;
150 bool m_metricNameHasBeenSet = false;
151
152 Aws::Utils::DateTime m_startTime;
153 bool m_startTimeHasBeenSet = false;
154
155 Aws::Utils::DateTime m_endTime;
156 bool m_endTimeHasBeenSet = false;
157
158 int m_period;
159 bool m_periodHasBeenSet = false;
160
161 Aws::Vector<MetricStatistic> m_statistics;
162 bool m_statisticsHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace Lightsail
167} // namespace Aws
GetContainerServiceMetricDataRequest & WithMetricName(ContainerServiceMetricName &&value)
GetContainerServiceMetricDataRequest & WithServiceName(const Aws::String &value)
GetContainerServiceMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
GetContainerServiceMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
GetContainerServiceMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
GetContainerServiceMetricDataRequest & WithServiceName(const char *value)
GetContainerServiceMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
GetContainerServiceMetricDataRequest & AddStatistics(MetricStatistic &&value)
GetContainerServiceMetricDataRequest & AddStatistics(const MetricStatistic &value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetContainerServiceMetricDataRequest & WithStatistics(Aws::Vector< MetricStatistic > &&value)
GetContainerServiceMetricDataRequest & WithMetricName(const ContainerServiceMetricName &value)
GetContainerServiceMetricDataRequest & WithServiceName(Aws::String &&value)
GetContainerServiceMetricDataRequest & WithStatistics(const Aws::Vector< MetricStatistic > &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