AWS SDK for C++  1.9.15
AWS SDK for C++
GetDistributionMetricDataRequest.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 "GetDistributionMetricData"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
47  inline const Aws::String& GetDistributionName() const{ return m_distributionName; }
48 
54  inline bool DistributionNameHasBeenSet() const { return m_distributionNameHasBeenSet; }
55 
61  inline void SetDistributionName(const Aws::String& value) { m_distributionNameHasBeenSet = true; m_distributionName = value; }
62 
68  inline void SetDistributionName(Aws::String&& value) { m_distributionNameHasBeenSet = true; m_distributionName = std::move(value); }
69 
75  inline void SetDistributionName(const char* value) { m_distributionNameHasBeenSet = true; m_distributionName.assign(value); }
76 
82  inline GetDistributionMetricDataRequest& WithDistributionName(const Aws::String& value) { SetDistributionName(value); return *this;}
83 
89  inline GetDistributionMetricDataRequest& WithDistributionName(Aws::String&& value) { SetDistributionName(std::move(value)); return *this;}
90 
96  inline GetDistributionMetricDataRequest& WithDistributionName(const char* value) { SetDistributionName(value); return *this;}
97 
98 
134  inline const DistributionMetricName& GetMetricName() const{ return m_metricName; }
135 
171  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
172 
208  inline void SetMetricName(const DistributionMetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
209 
245  inline void SetMetricName(DistributionMetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
246 
282  inline GetDistributionMetricDataRequest& WithMetricName(const DistributionMetricName& value) { SetMetricName(value); return *this;}
283 
319  inline GetDistributionMetricDataRequest& WithMetricName(DistributionMetricName&& value) { SetMetricName(std::move(value)); return *this;}
320 
321 
331  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
332 
342  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
343 
353  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
354 
364  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
365 
375  inline GetDistributionMetricDataRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
376 
386  inline GetDistributionMetricDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
387 
388 
398  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
399 
409  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
410 
420  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
421 
431  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
432 
442  inline GetDistributionMetricDataRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
443 
453  inline GetDistributionMetricDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
454 
455 
460  inline int GetPeriod() const{ return m_period; }
461 
466  inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
467 
472  inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
473 
478  inline GetDistributionMetricDataRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
479 
480 
486  inline const MetricUnit& GetUnit() const{ return m_unit; }
487 
493  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
494 
500  inline void SetUnit(const MetricUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
501 
507  inline void SetUnit(MetricUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
508 
514  inline GetDistributionMetricDataRequest& WithUnit(const MetricUnit& value) { SetUnit(value); return *this;}
515 
521  inline GetDistributionMetricDataRequest& WithUnit(MetricUnit&& value) { SetUnit(std::move(value)); return *this;}
522 
523 
541  inline const Aws::Vector<MetricStatistic>& GetStatistics() const{ return m_statistics; }
542 
560  inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
561 
579  inline void SetStatistics(const Aws::Vector<MetricStatistic>& value) { m_statisticsHasBeenSet = true; m_statistics = value; }
580 
598  inline void SetStatistics(Aws::Vector<MetricStatistic>&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); }
599 
617  inline GetDistributionMetricDataRequest& WithStatistics(const Aws::Vector<MetricStatistic>& value) { SetStatistics(value); return *this;}
618 
636  inline GetDistributionMetricDataRequest& WithStatistics(Aws::Vector<MetricStatistic>&& value) { SetStatistics(std::move(value)); return *this;}
637 
655  inline GetDistributionMetricDataRequest& AddStatistics(const MetricStatistic& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(value); return *this; }
656 
674  inline GetDistributionMetricDataRequest& AddStatistics(MetricStatistic&& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(std::move(value)); return *this; }
675 
676  private:
677 
678  Aws::String m_distributionName;
679  bool m_distributionNameHasBeenSet;
680 
681  DistributionMetricName m_metricName;
682  bool m_metricNameHasBeenSet;
683 
684  Aws::Utils::DateTime m_startTime;
685  bool m_startTimeHasBeenSet;
686 
687  Aws::Utils::DateTime m_endTime;
688  bool m_endTimeHasBeenSet;
689 
690  int m_period;
691  bool m_periodHasBeenSet;
692 
693  MetricUnit m_unit;
694  bool m_unitHasBeenSet;
695 
696  Aws::Vector<MetricStatistic> m_statistics;
697  bool m_statisticsHasBeenSet;
698  };
699 
700 } // namespace Model
701 } // namespace Lightsail
702 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::GetDistributionMetricDataRequest::SetUnit
void SetUnit(MetricUnit &&value)
Definition: GetDistributionMetricDataRequest.h:507
Aws::Lightsail::Model::GetDistributionMetricDataRequest::WithEndTime
GetDistributionMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: GetDistributionMetricDataRequest.h:442
Aws::Lightsail::Model::GetDistributionMetricDataRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: GetDistributionMetricDataRequest.h:409
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::GetDistributionMetricDataRequest::SetDistributionName
void SetDistributionName(const char *value)
Definition: GetDistributionMetricDataRequest.h:75
Aws::Lightsail::Model::GetDistributionMetricDataRequest::WithMetricName
GetDistributionMetricDataRequest & WithMetricName(const DistributionMetricName &value)
Definition: GetDistributionMetricDataRequest.h:282
Aws::Lightsail::Model::GetDistributionMetricDataRequest::WithDistributionName
GetDistributionMetricDataRequest & WithDistributionName(const Aws::String &value)
Definition: GetDistributionMetricDataRequest.h:82
Aws::Lightsail::Model::GetDistributionMetricDataRequest::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: GetDistributionMetricDataRequest.h:171
DateTime.h
Aws::Lightsail::Model::GetDistributionMetricDataRequest
Definition: GetDistributionMetricDataRequest.h:27
Aws::Lightsail::Model::GetDistributionMetricDataRequest::WithUnit
GetDistributionMetricDataRequest & WithUnit(const MetricUnit &value)
Definition: GetDistributionMetricDataRequest.h:514
Aws::Lightsail::Model::GetDistributionMetricDataRequest::WithMetricName
GetDistributionMetricDataRequest & WithMetricName(DistributionMetricName &&value)
Definition: GetDistributionMetricDataRequest.h:319
Aws::Lightsail::Model::GetDistributionMetricDataRequest::WithStatistics
GetDistributionMetricDataRequest & WithStatistics(Aws::Vector< MetricStatistic > &&value)
Definition: GetDistributionMetricDataRequest.h:636
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::GetDistributionMetricDataRequest::SetStatistics
void SetStatistics(Aws::Vector< MetricStatistic > &&value)
Definition: GetDistributionMetricDataRequest.h:598
Aws::Lightsail::Model::GetDistributionMetricDataRequest::SetUnit
void SetUnit(const MetricUnit &value)
Definition: GetDistributionMetricDataRequest.h:500
Aws::Lightsail::Model::GetDistributionMetricDataRequest::StatisticsHasBeenSet
bool StatisticsHasBeenSet() const
Definition: GetDistributionMetricDataRequest.h:560
AWSVector.h
Aws::Lightsail::Model::GetDistributionMetricDataRequest::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: GetDistributionMetricDataRequest.h:493
LightsailRequest.h
Aws::Lightsail::Model::GetDistributionMetricDataRequest::WithPeriod
GetDistributionMetricDataRequest & WithPeriod(int value)
Definition: GetDistributionMetricDataRequest.h:478
Aws::Lightsail::Model::DistributionMetricName
DistributionMetricName
Definition: DistributionMetricName.h:17
MetricUnit.h
Aws::Lightsail::Model::GetDistributionMetricDataRequest::GetDistributionName
const Aws::String & GetDistributionName() const
Definition: GetDistributionMetricDataRequest.h:47
Aws::Lightsail::Model::GetDistributionMetricDataRequest::WithStartTime
GetDistributionMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: GetDistributionMetricDataRequest.h:386
Aws::Lightsail::Model::GetDistributionMetricDataRequest::WithStatistics
GetDistributionMetricDataRequest & WithStatistics(const Aws::Vector< MetricStatistic > &value)
Definition: GetDistributionMetricDataRequest.h:617
Aws::Lightsail::Model::GetDistributionMetricDataRequest::WithDistributionName
GetDistributionMetricDataRequest & WithDistributionName(Aws::String &&value)
Definition: GetDistributionMetricDataRequest.h:89
Aws::Lightsail::Model::GetDistributionMetricDataRequest::WithDistributionName
GetDistributionMetricDataRequest & WithDistributionName(const char *value)
Definition: GetDistributionMetricDataRequest.h:96
DistributionMetricName.h
Aws::Lightsail::Model::GetDistributionMetricDataRequest::SetStatistics
void SetStatistics(const Aws::Vector< MetricStatistic > &value)
Definition: GetDistributionMetricDataRequest.h:579
Aws::Lightsail::Model::GetDistributionMetricDataRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: GetDistributionMetricDataRequest.h:342
Aws::Lightsail::Model::GetDistributionMetricDataRequest::SetPeriod
void SetPeriod(int value)
Definition: GetDistributionMetricDataRequest.h:472
Aws::Lightsail::Model::GetDistributionMetricDataRequest::SetMetricName
void SetMetricName(const DistributionMetricName &value)
Definition: GetDistributionMetricDataRequest.h:208
Aws::Lightsail::Model::MetricUnit
MetricUnit
Definition: MetricUnit.h:17
Aws::Lightsail::Model::GetDistributionMetricDataRequest::GetStatistics
const Aws::Vector< MetricStatistic > & GetStatistics() const
Definition: GetDistributionMetricDataRequest.h:541
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::GetDistributionMetricDataRequest::SetMetricName
void SetMetricName(DistributionMetricName &&value)
Definition: GetDistributionMetricDataRequest.h:245
Aws::Lightsail::Model::GetDistributionMetricDataRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: GetDistributionMetricDataRequest.h:331
AWSString.h
Aws::Lightsail::Model::GetDistributionMetricDataRequest::GetMetricName
const DistributionMetricName & GetMetricName() const
Definition: GetDistributionMetricDataRequest.h:134
Aws::Lightsail::Model::GetDistributionMetricDataRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::GetDistributionMetricDataRequest::SetDistributionName
void SetDistributionName(Aws::String &&value)
Definition: GetDistributionMetricDataRequest.h:68
Aws::Lightsail::Model::GetDistributionMetricDataRequest::WithEndTime
GetDistributionMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: GetDistributionMetricDataRequest.h:453
Aws::Lightsail::Model::GetDistributionMetricDataRequest::WithStartTime
GetDistributionMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: GetDistributionMetricDataRequest.h:375
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetDistributionMetricDataRequest::AddStatistics
GetDistributionMetricDataRequest & AddStatistics(MetricStatistic &&value)
Definition: GetDistributionMetricDataRequest.h:674
Aws::Lightsail::Model::GetDistributionMetricDataRequest::GetPeriod
int GetPeriod() const
Definition: GetDistributionMetricDataRequest.h:460
Aws::Lightsail::Model::GetDistributionMetricDataRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: GetDistributionMetricDataRequest.h:420
Aws::Lightsail::Model::GetDistributionMetricDataRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: GetDistributionMetricDataRequest.h:431
Aws::Lightsail::Model::GetDistributionMetricDataRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: GetDistributionMetricDataRequest.h:398
Aws::Lightsail::Model::GetDistributionMetricDataRequest::GetUnit
const MetricUnit & GetUnit() const
Definition: GetDistributionMetricDataRequest.h:486
Aws
Definition: AccessManagementClient.h:15
MetricStatistic.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetDistributionMetricDataRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetDistributionMetricDataRequest.h:35
Aws::Lightsail::Model::GetDistributionMetricDataRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetDistributionMetricDataRequest::PeriodHasBeenSet
bool PeriodHasBeenSet() const
Definition: GetDistributionMetricDataRequest.h:466
Aws::Lightsail::Model::GetDistributionMetricDataRequest::WithUnit
GetDistributionMetricDataRequest & WithUnit(MetricUnit &&value)
Definition: GetDistributionMetricDataRequest.h:521
Aws::Lightsail::Model::MetricStatistic
MetricStatistic
Definition: MetricStatistic.h:17
Aws::Lightsail::Model::GetDistributionMetricDataRequest::DistributionNameHasBeenSet
bool DistributionNameHasBeenSet() const
Definition: GetDistributionMetricDataRequest.h:54
Aws::Lightsail::Model::GetDistributionMetricDataRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: GetDistributionMetricDataRequest.h:364
Aws::Lightsail::Model::GetDistributionMetricDataRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: GetDistributionMetricDataRequest.h:353
Aws::Lightsail::Model::GetDistributionMetricDataRequest::SetDistributionName
void SetDistributionName(const Aws::String &value)
Definition: GetDistributionMetricDataRequest.h:61
Aws::Lightsail::Model::GetDistributionMetricDataRequest::AddStatistics
GetDistributionMetricDataRequest & AddStatistics(const MetricStatistic &value)
Definition: GetDistributionMetricDataRequest.h:655
Aws::Lightsail::Model::GetDistributionMetricDataRequest::GetDistributionMetricDataRequest
GetDistributionMetricDataRequest()