AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetDistributionMetricDataRequest.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/DistributionMetricName.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 "GetDistributionMetricData"; }
36
37 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
38
40
41
43
48 inline const Aws::String& GetDistributionName() const{ return m_distributionName; }
49 inline bool DistributionNameHasBeenSet() const { return m_distributionNameHasBeenSet; }
50 inline void SetDistributionName(const Aws::String& value) { m_distributionNameHasBeenSet = true; m_distributionName = value; }
51 inline void SetDistributionName(Aws::String&& value) { m_distributionNameHasBeenSet = true; m_distributionName = std::move(value); }
52 inline void SetDistributionName(const char* value) { m_distributionNameHasBeenSet = true; m_distributionName.assign(value); }
54 inline GetDistributionMetricDataRequest& WithDistributionName(Aws::String&& value) { SetDistributionName(std::move(value)); return *this;}
55 inline GetDistributionMetricDataRequest& WithDistributionName(const char* value) { SetDistributionName(value); return *this;}
57
59
94 inline const DistributionMetricName& GetMetricName() const{ return m_metricName; }
95 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
96 inline void SetMetricName(const DistributionMetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
97 inline void SetMetricName(DistributionMetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
99 inline GetDistributionMetricDataRequest& WithMetricName(DistributionMetricName&& value) { SetMetricName(std::move(value)); return *this;}
101
103
112 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
113 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
114 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
115 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
117 inline GetDistributionMetricDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
119
121
130 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
131 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
132 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
133 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
135 inline GetDistributionMetricDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
137
139
143 inline int GetPeriod() const{ return m_period; }
144 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
145 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
146 inline GetDistributionMetricDataRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
148
150
155 inline const MetricUnit& GetUnit() const{ return m_unit; }
156 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
157 inline void SetUnit(const MetricUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
158 inline void SetUnit(MetricUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
159 inline GetDistributionMetricDataRequest& WithUnit(const MetricUnit& value) { SetUnit(value); return *this;}
160 inline GetDistributionMetricDataRequest& WithUnit(MetricUnit&& value) { SetUnit(std::move(value)); return *this;}
162
164
181 inline const Aws::Vector<MetricStatistic>& GetStatistics() const{ return m_statistics; }
182 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
183 inline void SetStatistics(const Aws::Vector<MetricStatistic>& value) { m_statisticsHasBeenSet = true; m_statistics = value; }
184 inline void SetStatistics(Aws::Vector<MetricStatistic>&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); }
187 inline GetDistributionMetricDataRequest& AddStatistics(const MetricStatistic& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(value); return *this; }
188 inline GetDistributionMetricDataRequest& AddStatistics(MetricStatistic&& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(std::move(value)); return *this; }
190 private:
191
192 Aws::String m_distributionName;
193 bool m_distributionNameHasBeenSet = false;
194
195 DistributionMetricName m_metricName;
196 bool m_metricNameHasBeenSet = false;
197
198 Aws::Utils::DateTime m_startTime;
199 bool m_startTimeHasBeenSet = false;
200
201 Aws::Utils::DateTime m_endTime;
202 bool m_endTimeHasBeenSet = false;
203
204 int m_period;
205 bool m_periodHasBeenSet = false;
206
207 MetricUnit m_unit;
208 bool m_unitHasBeenSet = false;
209
210 Aws::Vector<MetricStatistic> m_statistics;
211 bool m_statisticsHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace Lightsail
216} // namespace Aws
GetDistributionMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
GetDistributionMetricDataRequest & WithUnit(const MetricUnit &value)
GetDistributionMetricDataRequest & WithStatistics(const Aws::Vector< MetricStatistic > &value)
GetDistributionMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
GetDistributionMetricDataRequest & WithDistributionName(const char *value)
GetDistributionMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
GetDistributionMetricDataRequest & AddStatistics(const MetricStatistic &value)
GetDistributionMetricDataRequest & AddStatistics(MetricStatistic &&value)
GetDistributionMetricDataRequest & WithDistributionName(Aws::String &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetDistributionMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
GetDistributionMetricDataRequest & WithUnit(MetricUnit &&value)
GetDistributionMetricDataRequest & WithStatistics(Aws::Vector< MetricStatistic > &&value)
GetDistributionMetricDataRequest & WithDistributionName(const Aws::String &value)
void SetStatistics(const Aws::Vector< MetricStatistic > &value)
GetDistributionMetricDataRequest & WithMetricName(const DistributionMetricName &value)
GetDistributionMetricDataRequest & WithMetricName(DistributionMetricName &&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