AWS SDK for C++  1.9.109
AWS SDK for C++
GetLoadBalancerMetricDataRequest.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 "GetLoadBalancerMetricData"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
46 
50  inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
51 
55  inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
56 
60  inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
61 
65  inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
66 
70  inline GetLoadBalancerMetricDataRequest& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;}
71 
75  inline GetLoadBalancerMetricDataRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
76 
80  inline GetLoadBalancerMetricDataRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
81 
82 
159  inline const LoadBalancerMetricName& GetMetricName() const{ return m_metricName; }
160 
237  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
238 
315  inline void SetMetricName(const LoadBalancerMetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
316 
393  inline void SetMetricName(LoadBalancerMetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
394 
471  inline GetLoadBalancerMetricDataRequest& WithMetricName(const LoadBalancerMetricName& value) { SetMetricName(value); return *this;}
472 
549  inline GetLoadBalancerMetricDataRequest& WithMetricName(LoadBalancerMetricName&& value) { SetMetricName(std::move(value)); return *this;}
550 
551 
555  inline int GetPeriod() const{ return m_period; }
556 
560  inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
561 
565  inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
566 
570  inline GetLoadBalancerMetricDataRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
571 
572 
576  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
577 
581  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
582 
586  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
587 
591  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
592 
596  inline GetLoadBalancerMetricDataRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
597 
601  inline GetLoadBalancerMetricDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
602 
603 
607  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
608 
612  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
613 
617  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
618 
622  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
623 
627  inline GetLoadBalancerMetricDataRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
628 
632  inline GetLoadBalancerMetricDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
633 
634 
640  inline const MetricUnit& GetUnit() const{ return m_unit; }
641 
647  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
648 
654  inline void SetUnit(const MetricUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
655 
661  inline void SetUnit(MetricUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
662 
668  inline GetLoadBalancerMetricDataRequest& WithUnit(const MetricUnit& value) { SetUnit(value); return *this;}
669 
675  inline GetLoadBalancerMetricDataRequest& WithUnit(MetricUnit&& value) { SetUnit(std::move(value)); return *this;}
676 
677 
695  inline const Aws::Vector<MetricStatistic>& GetStatistics() const{ return m_statistics; }
696 
714  inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
715 
733  inline void SetStatistics(const Aws::Vector<MetricStatistic>& value) { m_statisticsHasBeenSet = true; m_statistics = value; }
734 
752  inline void SetStatistics(Aws::Vector<MetricStatistic>&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); }
753 
771  inline GetLoadBalancerMetricDataRequest& WithStatistics(const Aws::Vector<MetricStatistic>& value) { SetStatistics(value); return *this;}
772 
790  inline GetLoadBalancerMetricDataRequest& WithStatistics(Aws::Vector<MetricStatistic>&& value) { SetStatistics(std::move(value)); return *this;}
791 
809  inline GetLoadBalancerMetricDataRequest& AddStatistics(const MetricStatistic& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(value); return *this; }
810 
828  inline GetLoadBalancerMetricDataRequest& AddStatistics(MetricStatistic&& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(std::move(value)); return *this; }
829 
830  private:
831 
832  Aws::String m_loadBalancerName;
833  bool m_loadBalancerNameHasBeenSet;
834 
835  LoadBalancerMetricName m_metricName;
836  bool m_metricNameHasBeenSet;
837 
838  int m_period;
839  bool m_periodHasBeenSet;
840 
841  Aws::Utils::DateTime m_startTime;
842  bool m_startTimeHasBeenSet;
843 
844  Aws::Utils::DateTime m_endTime;
845  bool m_endTimeHasBeenSet;
846 
847  MetricUnit m_unit;
848  bool m_unitHasBeenSet;
849 
850  Aws::Vector<MetricStatistic> m_statistics;
851  bool m_statisticsHasBeenSet;
852  };
853 
854 } // namespace Model
855 } // namespace Lightsail
856 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::WithEndTime
GetLoadBalancerMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: GetLoadBalancerMetricDataRequest.h:632
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::SetLoadBalancerName
void SetLoadBalancerName(const Aws::String &value)
Definition: GetLoadBalancerMetricDataRequest.h:55
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::AddStatistics
GetLoadBalancerMetricDataRequest & AddStatistics(const MetricStatistic &value)
Definition: GetLoadBalancerMetricDataRequest.h:809
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::WithStartTime
GetLoadBalancerMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: GetLoadBalancerMetricDataRequest.h:601
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::LoadBalancerNameHasBeenSet
bool LoadBalancerNameHasBeenSet() const
Definition: GetLoadBalancerMetricDataRequest.h:50
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: GetLoadBalancerMetricDataRequest.h:607
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::WithPeriod
GetLoadBalancerMetricDataRequest & WithPeriod(int value)
Definition: GetLoadBalancerMetricDataRequest.h:570
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::GetStatistics
const Aws::Vector< MetricStatistic > & GetStatistics() const
Definition: GetLoadBalancerMetricDataRequest.h:695
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::SetUnit
void SetUnit(MetricUnit &&value)
Definition: GetLoadBalancerMetricDataRequest.h:661
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetLoadBalancerMetricDataRequest.h:35
DateTime.h
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::PeriodHasBeenSet
bool PeriodHasBeenSet() const
Definition: GetLoadBalancerMetricDataRequest.h:560
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::WithMetricName
GetLoadBalancerMetricDataRequest & WithMetricName(LoadBalancerMetricName &&value)
Definition: GetLoadBalancerMetricDataRequest.h:549
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::WithLoadBalancerName
GetLoadBalancerMetricDataRequest & WithLoadBalancerName(const Aws::String &value)
Definition: GetLoadBalancerMetricDataRequest.h:70
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::WithUnit
GetLoadBalancerMetricDataRequest & WithUnit(MetricUnit &&value)
Definition: GetLoadBalancerMetricDataRequest.h:675
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: GetLoadBalancerMetricDataRequest.h:576
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: GetLoadBalancerMetricDataRequest.h:237
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::SetMetricName
void SetMetricName(const LoadBalancerMetricName &value)
Definition: GetLoadBalancerMetricDataRequest.h:315
AWSVector.h
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::GetUnit
const MetricUnit & GetUnit() const
Definition: GetLoadBalancerMetricDataRequest.h:640
LightsailRequest.h
MetricUnit.h
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::GetLoadBalancerMetricDataRequest
GetLoadBalancerMetricDataRequest()
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::WithEndTime
GetLoadBalancerMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: GetLoadBalancerMetricDataRequest.h:627
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::GetMetricName
const LoadBalancerMetricName & GetMetricName() const
Definition: GetLoadBalancerMetricDataRequest.h:159
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::GetLoadBalancerName
const Aws::String & GetLoadBalancerName() const
Definition: GetLoadBalancerMetricDataRequest.h:45
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::SetMetricName
void SetMetricName(LoadBalancerMetricName &&value)
Definition: GetLoadBalancerMetricDataRequest.h:393
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::StatisticsHasBeenSet
bool StatisticsHasBeenSet() const
Definition: GetLoadBalancerMetricDataRequest.h:714
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::WithUnit
GetLoadBalancerMetricDataRequest & WithUnit(const MetricUnit &value)
Definition: GetLoadBalancerMetricDataRequest.h:668
LoadBalancerMetricName.h
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::SetLoadBalancerName
void SetLoadBalancerName(const char *value)
Definition: GetLoadBalancerMetricDataRequest.h:65
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::SetStatistics
void SetStatistics(const Aws::Vector< MetricStatistic > &value)
Definition: GetLoadBalancerMetricDataRequest.h:733
Aws::Lightsail::Model::MetricUnit
MetricUnit
Definition: MetricUnit.h:17
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
AWSString.h
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::WithStatistics
GetLoadBalancerMetricDataRequest & WithStatistics(Aws::Vector< MetricStatistic > &&value)
Definition: GetLoadBalancerMetricDataRequest.h:790
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::SetLoadBalancerName
void SetLoadBalancerName(Aws::String &&value)
Definition: GetLoadBalancerMetricDataRequest.h:60
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: GetLoadBalancerMetricDataRequest.h:622
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::AddStatistics
GetLoadBalancerMetricDataRequest & AddStatistics(MetricStatistic &&value)
Definition: GetLoadBalancerMetricDataRequest.h:828
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest
Definition: GetLoadBalancerMetricDataRequest.h:27
Aws::Lightsail::Model::LoadBalancerMetricName
LoadBalancerMetricName
Definition: LoadBalancerMetricName.h:17
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: GetLoadBalancerMetricDataRequest.h:591
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::WithStartTime
GetLoadBalancerMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: GetLoadBalancerMetricDataRequest.h:596
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::WithLoadBalancerName
GetLoadBalancerMetricDataRequest & WithLoadBalancerName(const char *value)
Definition: GetLoadBalancerMetricDataRequest.h:80
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: GetLoadBalancerMetricDataRequest.h:647
MetricStatistic.h
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::SetPeriod
void SetPeriod(int value)
Definition: GetLoadBalancerMetricDataRequest.h:565
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::GetPeriod
int GetPeriod() const
Definition: GetLoadBalancerMetricDataRequest.h:555
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: GetLoadBalancerMetricDataRequest.h:581
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: GetLoadBalancerMetricDataRequest.h:586
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::SetUnit
void SetUnit(const MetricUnit &value)
Definition: GetLoadBalancerMetricDataRequest.h:654
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::WithLoadBalancerName
GetLoadBalancerMetricDataRequest & WithLoadBalancerName(Aws::String &&value)
Definition: GetLoadBalancerMetricDataRequest.h:75
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: GetLoadBalancerMetricDataRequest.h:612
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::WithMetricName
GetLoadBalancerMetricDataRequest & WithMetricName(const LoadBalancerMetricName &value)
Definition: GetLoadBalancerMetricDataRequest.h:471
Aws::Lightsail::Model::MetricStatistic
MetricStatistic
Definition: MetricStatistic.h:17
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: GetLoadBalancerMetricDataRequest.h:617
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::WithStatistics
GetLoadBalancerMetricDataRequest & WithStatistics(const Aws::Vector< MetricStatistic > &value)
Definition: GetLoadBalancerMetricDataRequest.h:771
Aws::Lightsail::Model::GetLoadBalancerMetricDataRequest::SetStatistics
void SetStatistics(Aws::Vector< MetricStatistic > &&value)
Definition: GetLoadBalancerMetricDataRequest.h:752