AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetLoadBalancerMetricDataRequest.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/LoadBalancerMetricName.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/lightsail/model/MetricUnit.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/lightsail/model/MetricStatistic.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Lightsail
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 "GetLoadBalancerMetricData"; }
36
37 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
47 inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
48 inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
49 inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
50 inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
52 inline GetLoadBalancerMetricDataRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
53 inline GetLoadBalancerMetricDataRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
55
57
133 inline const LoadBalancerMetricName& GetMetricName() const{ return m_metricName; }
134 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
135 inline void SetMetricName(const LoadBalancerMetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
136 inline void SetMetricName(LoadBalancerMetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
138 inline GetLoadBalancerMetricDataRequest& WithMetricName(LoadBalancerMetricName&& value) { SetMetricName(std::move(value)); return *this;}
140
142
145 inline int GetPeriod() const{ return m_period; }
146 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
147 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
148 inline GetLoadBalancerMetricDataRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
150
152
155 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
156 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
157 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
158 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
160 inline GetLoadBalancerMetricDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
162
164
167 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
168 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
169 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
170 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
172 inline GetLoadBalancerMetricDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
174
176
181 inline const MetricUnit& GetUnit() const{ return m_unit; }
182 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
183 inline void SetUnit(const MetricUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
184 inline void SetUnit(MetricUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
185 inline GetLoadBalancerMetricDataRequest& WithUnit(const MetricUnit& value) { SetUnit(value); return *this;}
186 inline GetLoadBalancerMetricDataRequest& WithUnit(MetricUnit&& value) { SetUnit(std::move(value)); return *this;}
188
190
207 inline const Aws::Vector<MetricStatistic>& GetStatistics() const{ return m_statistics; }
208 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
209 inline void SetStatistics(const Aws::Vector<MetricStatistic>& value) { m_statisticsHasBeenSet = true; m_statistics = value; }
210 inline void SetStatistics(Aws::Vector<MetricStatistic>&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); }
213 inline GetLoadBalancerMetricDataRequest& AddStatistics(const MetricStatistic& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(value); return *this; }
214 inline GetLoadBalancerMetricDataRequest& AddStatistics(MetricStatistic&& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(std::move(value)); return *this; }
216 private:
217
218 Aws::String m_loadBalancerName;
219 bool m_loadBalancerNameHasBeenSet = false;
220
221 LoadBalancerMetricName m_metricName;
222 bool m_metricNameHasBeenSet = false;
223
224 int m_period;
225 bool m_periodHasBeenSet = false;
226
227 Aws::Utils::DateTime m_startTime;
228 bool m_startTimeHasBeenSet = false;
229
230 Aws::Utils::DateTime m_endTime;
231 bool m_endTimeHasBeenSet = false;
232
233 MetricUnit m_unit;
234 bool m_unitHasBeenSet = false;
235
236 Aws::Vector<MetricStatistic> m_statistics;
237 bool m_statisticsHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace Lightsail
242} // namespace Aws
GetLoadBalancerMetricDataRequest & WithMetricName(LoadBalancerMetricName &&value)
GetLoadBalancerMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
GetLoadBalancerMetricDataRequest & WithMetricName(const LoadBalancerMetricName &value)
GetLoadBalancerMetricDataRequest & WithLoadBalancerName(Aws::String &&value)
GetLoadBalancerMetricDataRequest & WithStatistics(const Aws::Vector< MetricStatistic > &value)
GetLoadBalancerMetricDataRequest & WithUnit(MetricUnit &&value)
GetLoadBalancerMetricDataRequest & WithStatistics(Aws::Vector< MetricStatistic > &&value)
GetLoadBalancerMetricDataRequest & AddStatistics(const MetricStatistic &value)
GetLoadBalancerMetricDataRequest & WithLoadBalancerName(const Aws::String &value)
GetLoadBalancerMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
GetLoadBalancerMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetLoadBalancerMetricDataRequest & WithLoadBalancerName(const char *value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
GetLoadBalancerMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
void SetStatistics(const Aws::Vector< MetricStatistic > &value)
GetLoadBalancerMetricDataRequest & AddStatistics(MetricStatistic &&value)
GetLoadBalancerMetricDataRequest & WithUnit(const MetricUnit &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