AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetBucketMetricDataRequest.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/BucketMetricName.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lightsail/model/MetricUnit.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:
29 AWS_LIGHTSAIL_API GetBucketMetricDataRequest();
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 "GetBucketMetricData"; }
36
37 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetBucketName() const{ return m_bucketName; }
47 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
48 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
49 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
50 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
51 inline GetBucketMetricDataRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
52 inline GetBucketMetricDataRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
53 inline GetBucketMetricDataRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
55
57
74 inline const BucketMetricName& GetMetricName() const{ return m_metricName; }
75 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
76 inline void SetMetricName(const BucketMetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
77 inline void SetMetricName(BucketMetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
78 inline GetBucketMetricDataRequest& WithMetricName(const BucketMetricName& value) { SetMetricName(value); return *this;}
79 inline GetBucketMetricDataRequest& WithMetricName(BucketMetricName&& value) { SetMetricName(std::move(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
87 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
88 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
89 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
90 inline GetBucketMetricDataRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
91 inline GetBucketMetricDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
99 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
100 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
101 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
102 inline GetBucketMetricDataRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
103 inline GetBucketMetricDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
105
107
113 inline int GetPeriod() const{ return m_period; }
114 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
115 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
116 inline GetBucketMetricDataRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
118
120
138 inline const Aws::Vector<MetricStatistic>& GetStatistics() const{ return m_statistics; }
139 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
140 inline void SetStatistics(const Aws::Vector<MetricStatistic>& value) { m_statisticsHasBeenSet = true; m_statistics = value; }
141 inline void SetStatistics(Aws::Vector<MetricStatistic>&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); }
143 inline GetBucketMetricDataRequest& WithStatistics(Aws::Vector<MetricStatistic>&& value) { SetStatistics(std::move(value)); return *this;}
144 inline GetBucketMetricDataRequest& AddStatistics(const MetricStatistic& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(value); return *this; }
145 inline GetBucketMetricDataRequest& AddStatistics(MetricStatistic&& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(std::move(value)); return *this; }
147
149
154 inline const MetricUnit& GetUnit() const{ return m_unit; }
155 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
156 inline void SetUnit(const MetricUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
157 inline void SetUnit(MetricUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
158 inline GetBucketMetricDataRequest& WithUnit(const MetricUnit& value) { SetUnit(value); return *this;}
159 inline GetBucketMetricDataRequest& WithUnit(MetricUnit&& value) { SetUnit(std::move(value)); return *this;}
161 private:
162
163 Aws::String m_bucketName;
164 bool m_bucketNameHasBeenSet = false;
165
166 BucketMetricName m_metricName;
167 bool m_metricNameHasBeenSet = false;
168
169 Aws::Utils::DateTime m_startTime;
170 bool m_startTimeHasBeenSet = false;
171
172 Aws::Utils::DateTime m_endTime;
173 bool m_endTimeHasBeenSet = false;
174
175 int m_period;
176 bool m_periodHasBeenSet = false;
177
178 Aws::Vector<MetricStatistic> m_statistics;
179 bool m_statisticsHasBeenSet = false;
180
181 MetricUnit m_unit;
182 bool m_unitHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace Lightsail
187} // namespace Aws
GetBucketMetricDataRequest & AddStatistics(MetricStatistic &&value)
GetBucketMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
GetBucketMetricDataRequest & WithBucketName(const char *value)
GetBucketMetricDataRequest & WithBucketName(const Aws::String &value)
GetBucketMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
GetBucketMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
GetBucketMetricDataRequest & WithStatistics(Aws::Vector< MetricStatistic > &&value)
GetBucketMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
GetBucketMetricDataRequest & WithUnit(MetricUnit &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetStartTime(const Aws::Utils::DateTime &value)
void SetStatistics(Aws::Vector< MetricStatistic > &&value)
GetBucketMetricDataRequest & WithMetricName(BucketMetricName &&value)
void SetStatistics(const Aws::Vector< MetricStatistic > &value)
GetBucketMetricDataRequest & WithMetricName(const BucketMetricName &value)
GetBucketMetricDataRequest & WithStatistics(const Aws::Vector< MetricStatistic > &value)
GetBucketMetricDataRequest & AddStatistics(const MetricStatistic &value)
virtual const char * GetServiceRequestName() const override
GetBucketMetricDataRequest & WithBucketName(Aws::String &&value)
GetBucketMetricDataRequest & WithUnit(const MetricUnit &value)
const Aws::Vector< MetricStatistic > & GetStatistics() const
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