AWS SDK for C++  1.9.104
AWS SDK for C++
GetBucketMetricDataRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Lightsail
20 {
21 namespace 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 "GetBucketMetricData"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::String& GetBucketName() const{ return m_bucketName; }
46 
50  inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
51 
55  inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
56 
60  inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
61 
65  inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
66 
70  inline GetBucketMetricDataRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
71 
75  inline GetBucketMetricDataRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
76 
80  inline GetBucketMetricDataRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
81 
82 
100  inline const BucketMetricName& GetMetricName() const{ return m_metricName; }
101 
119  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
120 
138  inline void SetMetricName(const BucketMetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
139 
157  inline void SetMetricName(BucketMetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
158 
176  inline GetBucketMetricDataRequest& WithMetricName(const BucketMetricName& value) { SetMetricName(value); return *this;}
177 
195  inline GetBucketMetricDataRequest& WithMetricName(BucketMetricName&& value) { SetMetricName(std::move(value)); return *this;}
196 
197 
201  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
202 
206  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
207 
211  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
212 
216  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
217 
221  inline GetBucketMetricDataRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
222 
226  inline GetBucketMetricDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
227 
228 
232  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
233 
237  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
238 
242  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
243 
247  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
248 
252  inline GetBucketMetricDataRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
253 
257  inline GetBucketMetricDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
258 
259 
266  inline int GetPeriod() const{ return m_period; }
267 
274  inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
275 
282  inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
283 
290  inline GetBucketMetricDataRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
291 
292 
311  inline const Aws::Vector<MetricStatistic>& GetStatistics() const{ return m_statistics; }
312 
331  inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
332 
351  inline void SetStatistics(const Aws::Vector<MetricStatistic>& value) { m_statisticsHasBeenSet = true; m_statistics = value; }
352 
371  inline void SetStatistics(Aws::Vector<MetricStatistic>&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); }
372 
391  inline GetBucketMetricDataRequest& WithStatistics(const Aws::Vector<MetricStatistic>& value) { SetStatistics(value); return *this;}
392 
411  inline GetBucketMetricDataRequest& WithStatistics(Aws::Vector<MetricStatistic>&& value) { SetStatistics(std::move(value)); return *this;}
412 
431  inline GetBucketMetricDataRequest& AddStatistics(const MetricStatistic& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(value); return *this; }
432 
451  inline GetBucketMetricDataRequest& AddStatistics(MetricStatistic&& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(std::move(value)); return *this; }
452 
453 
459  inline const MetricUnit& GetUnit() const{ return m_unit; }
460 
466  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
467 
473  inline void SetUnit(const MetricUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
474 
480  inline void SetUnit(MetricUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
481 
487  inline GetBucketMetricDataRequest& WithUnit(const MetricUnit& value) { SetUnit(value); return *this;}
488 
494  inline GetBucketMetricDataRequest& WithUnit(MetricUnit&& value) { SetUnit(std::move(value)); return *this;}
495 
496  private:
497 
498  Aws::String m_bucketName;
499  bool m_bucketNameHasBeenSet;
500 
501  BucketMetricName m_metricName;
502  bool m_metricNameHasBeenSet;
503 
504  Aws::Utils::DateTime m_startTime;
505  bool m_startTimeHasBeenSet;
506 
507  Aws::Utils::DateTime m_endTime;
508  bool m_endTimeHasBeenSet;
509 
510  int m_period;
511  bool m_periodHasBeenSet;
512 
513  Aws::Vector<MetricStatistic> m_statistics;
514  bool m_statisticsHasBeenSet;
515 
516  MetricUnit m_unit;
517  bool m_unitHasBeenSet;
518  };
519 
520 } // namespace Model
521 } // namespace Lightsail
522 } // namespace Aws
Aws::Lightsail::Model::GetBucketMetricDataRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: GetBucketMetricDataRequest.h:211
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::GetBucketMetricDataRequest
Definition: GetBucketMetricDataRequest.h:27
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::GetBucketMetricDataRequest::SetStatistics
void SetStatistics(Aws::Vector< MetricStatistic > &&value)
Definition: GetBucketMetricDataRequest.h:371
Aws::Lightsail::Model::GetBucketMetricDataRequest::BucketNameHasBeenSet
bool BucketNameHasBeenSet() const
Definition: GetBucketMetricDataRequest.h:50
Aws::Lightsail::Model::GetBucketMetricDataRequest::PeriodHasBeenSet
bool PeriodHasBeenSet() const
Definition: GetBucketMetricDataRequest.h:274
Aws::Lightsail::Model::GetBucketMetricDataRequest::WithMetricName
GetBucketMetricDataRequest & WithMetricName(const BucketMetricName &value)
Definition: GetBucketMetricDataRequest.h:176
Aws::Lightsail::Model::GetBucketMetricDataRequest::SetUnit
void SetUnit(MetricUnit &&value)
Definition: GetBucketMetricDataRequest.h:480
Aws::Lightsail::Model::GetBucketMetricDataRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: GetBucketMetricDataRequest.h:237
DateTime.h
Aws::Lightsail::Model::GetBucketMetricDataRequest::SetPeriod
void SetPeriod(int value)
Definition: GetBucketMetricDataRequest.h:282
Aws::Lightsail::Model::GetBucketMetricDataRequest::GetBucketMetricDataRequest
GetBucketMetricDataRequest()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::GetBucketMetricDataRequest::GetMetricName
const BucketMetricName & GetMetricName() const
Definition: GetBucketMetricDataRequest.h:100
Aws::Lightsail::Model::GetBucketMetricDataRequest::WithEndTime
GetBucketMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: GetBucketMetricDataRequest.h:257
Aws::Lightsail::Model::GetBucketMetricDataRequest::AddStatistics
GetBucketMetricDataRequest & AddStatistics(MetricStatistic &&value)
Definition: GetBucketMetricDataRequest.h:451
Aws::Lightsail::Model::GetBucketMetricDataRequest::WithPeriod
GetBucketMetricDataRequest & WithPeriod(int value)
Definition: GetBucketMetricDataRequest.h:290
AWSVector.h
Aws::Lightsail::Model::GetBucketMetricDataRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: GetBucketMetricDataRequest.h:242
LightsailRequest.h
MetricUnit.h
Aws::Lightsail::Model::GetBucketMetricDataRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: GetBucketMetricDataRequest.h:206
Aws::Lightsail::Model::GetBucketMetricDataRequest::WithMetricName
GetBucketMetricDataRequest & WithMetricName(BucketMetricName &&value)
Definition: GetBucketMetricDataRequest.h:195
Aws::Lightsail::Model::GetBucketMetricDataRequest::AddStatistics
GetBucketMetricDataRequest & AddStatistics(const MetricStatistic &value)
Definition: GetBucketMetricDataRequest.h:431
Aws::Lightsail::Model::GetBucketMetricDataRequest::SetBucketName
void SetBucketName(Aws::String &&value)
Definition: GetBucketMetricDataRequest.h:60
Aws::Lightsail::Model::GetBucketMetricDataRequest::SetBucketName
void SetBucketName(const char *value)
Definition: GetBucketMetricDataRequest.h:65
Aws::Lightsail::Model::GetBucketMetricDataRequest::SetUnit
void SetUnit(const MetricUnit &value)
Definition: GetBucketMetricDataRequest.h:473
Aws::Lightsail::Model::GetBucketMetricDataRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: GetBucketMetricDataRequest.h:216
Aws::Lightsail::Model::GetBucketMetricDataRequest::SetStatistics
void SetStatistics(const Aws::Vector< MetricStatistic > &value)
Definition: GetBucketMetricDataRequest.h:351
Aws::Lightsail::Model::GetBucketMetricDataRequest::WithStatistics
GetBucketMetricDataRequest & WithStatistics(Aws::Vector< MetricStatistic > &&value)
Definition: GetBucketMetricDataRequest.h:411
Aws::Lightsail::Model::GetBucketMetricDataRequest::WithBucketName
GetBucketMetricDataRequest & WithBucketName(const Aws::String &value)
Definition: GetBucketMetricDataRequest.h:70
Aws::Lightsail::Model::GetBucketMetricDataRequest::WithUnit
GetBucketMetricDataRequest & WithUnit(const MetricUnit &value)
Definition: GetBucketMetricDataRequest.h:487
Aws::Lightsail::Model::GetBucketMetricDataRequest::SetMetricName
void SetMetricName(const BucketMetricName &value)
Definition: GetBucketMetricDataRequest.h:138
Aws::Lightsail::Model::MetricUnit
MetricUnit
Definition: MetricUnit.h:17
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::GetBucketMetricDataRequest::SetBucketName
void SetBucketName(const Aws::String &value)
Definition: GetBucketMetricDataRequest.h:55
Aws::Lightsail::Model::BucketMetricName
BucketMetricName
Definition: BucketMetricName.h:17
AWSString.h
Aws::Lightsail::Model::GetBucketMetricDataRequest::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: GetBucketMetricDataRequest.h:466
Aws::Lightsail::Model::GetBucketMetricDataRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::GetBucketMetricDataRequest::SetMetricName
void SetMetricName(BucketMetricName &&value)
Definition: GetBucketMetricDataRequest.h:157
Aws::Lightsail::Model::GetBucketMetricDataRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: GetBucketMetricDataRequest.h:247
Aws::Lightsail::Model::GetBucketMetricDataRequest::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: GetBucketMetricDataRequest.h:119
Aws::Lightsail::Model::GetBucketMetricDataRequest::GetPeriod
int GetPeriod() const
Definition: GetBucketMetricDataRequest.h:266
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetBucketMetricDataRequest::GetBucketName
const Aws::String & GetBucketName() const
Definition: GetBucketMetricDataRequest.h:45
Aws::Lightsail::Model::GetBucketMetricDataRequest::WithEndTime
GetBucketMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: GetBucketMetricDataRequest.h:252
Aws::Lightsail::Model::GetBucketMetricDataRequest::GetStatistics
const Aws::Vector< MetricStatistic > & GetStatistics() const
Definition: GetBucketMetricDataRequest.h:311
Aws::Lightsail::Model::GetBucketMetricDataRequest::WithStatistics
GetBucketMetricDataRequest & WithStatistics(const Aws::Vector< MetricStatistic > &value)
Definition: GetBucketMetricDataRequest.h:391
BucketMetricName.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetBucketMetricDataRequest::WithStartTime
GetBucketMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: GetBucketMetricDataRequest.h:226
MetricStatistic.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetBucketMetricDataRequest::WithUnit
GetBucketMetricDataRequest & WithUnit(MetricUnit &&value)
Definition: GetBucketMetricDataRequest.h:494
Aws::Lightsail::Model::GetBucketMetricDataRequest::WithBucketName
GetBucketMetricDataRequest & WithBucketName(Aws::String &&value)
Definition: GetBucketMetricDataRequest.h:75
Aws::Lightsail::Model::GetBucketMetricDataRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: GetBucketMetricDataRequest.h:232
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetBucketMetricDataRequest::GetUnit
const MetricUnit & GetUnit() const
Definition: GetBucketMetricDataRequest.h:459
Aws::Lightsail::Model::MetricStatistic
MetricStatistic
Definition: MetricStatistic.h:17
Aws::Lightsail::Model::GetBucketMetricDataRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetBucketMetricDataRequest.h:35
Aws::Lightsail::Model::GetBucketMetricDataRequest::StatisticsHasBeenSet
bool StatisticsHasBeenSet() const
Definition: GetBucketMetricDataRequest.h:331
Aws::Lightsail::Model::GetBucketMetricDataRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: GetBucketMetricDataRequest.h:201
Aws::Lightsail::Model::GetBucketMetricDataRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::GetBucketMetricDataRequest::WithStartTime
GetBucketMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: GetBucketMetricDataRequest.h:221
Aws::Lightsail::Model::GetBucketMetricDataRequest::WithBucketName
GetBucketMetricDataRequest & WithBucketName(const char *value)
Definition: GetBucketMetricDataRequest.h:80