AWS SDK for C++  1.9.104
AWS SDK for C++
GetRelationalDatabaseMetricDataRequest.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 "GetRelationalDatabaseMetricData"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::String& GetRelationalDatabaseName() const{ return m_relationalDatabaseName; }
46 
50  inline bool RelationalDatabaseNameHasBeenSet() const { return m_relationalDatabaseNameHasBeenSet; }
51 
55  inline void SetRelationalDatabaseName(const Aws::String& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = value; }
56 
60  inline void SetRelationalDatabaseName(Aws::String&& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = std::move(value); }
61 
65  inline void SetRelationalDatabaseName(const char* value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName.assign(value); }
66 
70  inline GetRelationalDatabaseMetricDataRequest& WithRelationalDatabaseName(const Aws::String& value) { SetRelationalDatabaseName(value); return *this;}
71 
75  inline GetRelationalDatabaseMetricDataRequest& WithRelationalDatabaseName(Aws::String&& value) { SetRelationalDatabaseName(std::move(value)); return *this;}
76 
80  inline GetRelationalDatabaseMetricDataRequest& WithRelationalDatabaseName(const char* value) { SetRelationalDatabaseName(value); return *this;}
81 
82 
116  inline const RelationalDatabaseMetricName& GetMetricName() const{ return m_metricName; }
117 
151  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
152 
186  inline void SetMetricName(const RelationalDatabaseMetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
187 
221  inline void SetMetricName(RelationalDatabaseMetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
222 
256  inline GetRelationalDatabaseMetricDataRequest& WithMetricName(const RelationalDatabaseMetricName& value) { SetMetricName(value); return *this;}
257 
291  inline GetRelationalDatabaseMetricDataRequest& WithMetricName(RelationalDatabaseMetricName&& value) { SetMetricName(std::move(value)); return *this;}
292 
293 
299  inline int GetPeriod() const{ return m_period; }
300 
306  inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
307 
313  inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
314 
320  inline GetRelationalDatabaseMetricDataRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
321 
322 
330  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
331 
339  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
340 
348  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
349 
357  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
358 
366  inline GetRelationalDatabaseMetricDataRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
367 
375  inline GetRelationalDatabaseMetricDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
376 
377 
385  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
386 
394  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
395 
403  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
404 
412  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
413 
421  inline GetRelationalDatabaseMetricDataRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
422 
430  inline GetRelationalDatabaseMetricDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
431 
432 
438  inline const MetricUnit& GetUnit() const{ return m_unit; }
439 
445  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
446 
452  inline void SetUnit(const MetricUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
453 
459  inline void SetUnit(MetricUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
460 
466  inline GetRelationalDatabaseMetricDataRequest& WithUnit(const MetricUnit& value) { SetUnit(value); return *this;}
467 
473  inline GetRelationalDatabaseMetricDataRequest& WithUnit(MetricUnit&& value) { SetUnit(std::move(value)); return *this;}
474 
475 
493  inline const Aws::Vector<MetricStatistic>& GetStatistics() const{ return m_statistics; }
494 
512  inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
513 
531  inline void SetStatistics(const Aws::Vector<MetricStatistic>& value) { m_statisticsHasBeenSet = true; m_statistics = value; }
532 
550  inline void SetStatistics(Aws::Vector<MetricStatistic>&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); }
551 
569  inline GetRelationalDatabaseMetricDataRequest& WithStatistics(const Aws::Vector<MetricStatistic>& value) { SetStatistics(value); return *this;}
570 
588  inline GetRelationalDatabaseMetricDataRequest& WithStatistics(Aws::Vector<MetricStatistic>&& value) { SetStatistics(std::move(value)); return *this;}
589 
607  inline GetRelationalDatabaseMetricDataRequest& AddStatistics(const MetricStatistic& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(value); return *this; }
608 
626  inline GetRelationalDatabaseMetricDataRequest& AddStatistics(MetricStatistic&& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(std::move(value)); return *this; }
627 
628  private:
629 
630  Aws::String m_relationalDatabaseName;
631  bool m_relationalDatabaseNameHasBeenSet;
632 
633  RelationalDatabaseMetricName m_metricName;
634  bool m_metricNameHasBeenSet;
635 
636  int m_period;
637  bool m_periodHasBeenSet;
638 
639  Aws::Utils::DateTime m_startTime;
640  bool m_startTimeHasBeenSet;
641 
642  Aws::Utils::DateTime m_endTime;
643  bool m_endTimeHasBeenSet;
644 
645  MetricUnit m_unit;
646  bool m_unitHasBeenSet;
647 
648  Aws::Vector<MetricStatistic> m_statistics;
649  bool m_statisticsHasBeenSet;
650  };
651 
652 } // namespace Model
653 } // namespace Lightsail
654 } // namespace Aws
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::SetPeriod
void SetPeriod(int value)
Definition: GetRelationalDatabaseMetricDataRequest.h:313
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::WithEndTime
GetRelationalDatabaseMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: GetRelationalDatabaseMetricDataRequest.h:421
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::GetPeriod
int GetPeriod() const
Definition: GetRelationalDatabaseMetricDataRequest.h:299
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: GetRelationalDatabaseMetricDataRequest.h:445
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::RelationalDatabaseNameHasBeenSet
bool RelationalDatabaseNameHasBeenSet() const
Definition: GetRelationalDatabaseMetricDataRequest.h:50
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::GetUnit
const MetricUnit & GetUnit() const
Definition: GetRelationalDatabaseMetricDataRequest.h:438
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::GetMetricName
const RelationalDatabaseMetricName & GetMetricName() const
Definition: GetRelationalDatabaseMetricDataRequest.h:116
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: GetRelationalDatabaseMetricDataRequest.h:394
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: GetRelationalDatabaseMetricDataRequest.h:412
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::AddStatistics
GetRelationalDatabaseMetricDataRequest & AddStatistics(const MetricStatistic &value)
Definition: GetRelationalDatabaseMetricDataRequest.h:607
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::WithMetricName
GetRelationalDatabaseMetricDataRequest & WithMetricName(const RelationalDatabaseMetricName &value)
Definition: GetRelationalDatabaseMetricDataRequest.h:256
DateTime.h
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::WithRelationalDatabaseName
GetRelationalDatabaseMetricDataRequest & WithRelationalDatabaseName(const char *value)
Definition: GetRelationalDatabaseMetricDataRequest.h:80
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest
Definition: GetRelationalDatabaseMetricDataRequest.h:27
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::StatisticsHasBeenSet
bool StatisticsHasBeenSet() const
Definition: GetRelationalDatabaseMetricDataRequest.h:512
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::WithStatistics
GetRelationalDatabaseMetricDataRequest & WithStatistics(const Aws::Vector< MetricStatistic > &value)
Definition: GetRelationalDatabaseMetricDataRequest.h:569
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: GetRelationalDatabaseMetricDataRequest.h:403
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::SetUnit
void SetUnit(MetricUnit &&value)
Definition: GetRelationalDatabaseMetricDataRequest.h:459
AWSVector.h
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: GetRelationalDatabaseMetricDataRequest.h:357
LightsailRequest.h
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::WithStatistics
GetRelationalDatabaseMetricDataRequest & WithStatistics(Aws::Vector< MetricStatistic > &&value)
Definition: GetRelationalDatabaseMetricDataRequest.h:588
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::WithEndTime
GetRelationalDatabaseMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: GetRelationalDatabaseMetricDataRequest.h:430
MetricUnit.h
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::WithUnit
GetRelationalDatabaseMetricDataRequest & WithUnit(MetricUnit &&value)
Definition: GetRelationalDatabaseMetricDataRequest.h:473
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: GetRelationalDatabaseMetricDataRequest.h:339
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::SetRelationalDatabaseName
void SetRelationalDatabaseName(Aws::String &&value)
Definition: GetRelationalDatabaseMetricDataRequest.h:60
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::SetRelationalDatabaseName
void SetRelationalDatabaseName(const Aws::String &value)
Definition: GetRelationalDatabaseMetricDataRequest.h:55
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::SetUnit
void SetUnit(const MetricUnit &value)
Definition: GetRelationalDatabaseMetricDataRequest.h:452
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::SetMetricName
void SetMetricName(const RelationalDatabaseMetricName &value)
Definition: GetRelationalDatabaseMetricDataRequest.h:186
Aws::Lightsail::Model::MetricUnit
MetricUnit
Definition: MetricUnit.h:17
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::WithPeriod
GetRelationalDatabaseMetricDataRequest & WithPeriod(int value)
Definition: GetRelationalDatabaseMetricDataRequest.h:320
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::WithRelationalDatabaseName
GetRelationalDatabaseMetricDataRequest & WithRelationalDatabaseName(Aws::String &&value)
Definition: GetRelationalDatabaseMetricDataRequest.h:75
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::WithMetricName
GetRelationalDatabaseMetricDataRequest & WithMetricName(RelationalDatabaseMetricName &&value)
Definition: GetRelationalDatabaseMetricDataRequest.h:291
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetRelationalDatabaseMetricDataRequest.h:35
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::WithUnit
GetRelationalDatabaseMetricDataRequest & WithUnit(const MetricUnit &value)
Definition: GetRelationalDatabaseMetricDataRequest.h:466
AWSString.h
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: GetRelationalDatabaseMetricDataRequest.h:385
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::WithStartTime
GetRelationalDatabaseMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: GetRelationalDatabaseMetricDataRequest.h:366
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: GetRelationalDatabaseMetricDataRequest.h:151
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::SetStatistics
void SetStatistics(Aws::Vector< MetricStatistic > &&value)
Definition: GetRelationalDatabaseMetricDataRequest.h:550
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::GetStatistics
const Aws::Vector< MetricStatistic > & GetStatistics() const
Definition: GetRelationalDatabaseMetricDataRequest.h:493
RelationalDatabaseMetricName.h
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::SetMetricName
void SetMetricName(RelationalDatabaseMetricName &&value)
Definition: GetRelationalDatabaseMetricDataRequest.h:221
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::WithRelationalDatabaseName
GetRelationalDatabaseMetricDataRequest & WithRelationalDatabaseName(const Aws::String &value)
Definition: GetRelationalDatabaseMetricDataRequest.h:70
Aws
Definition: AccessManagementClient.h:15
MetricStatistic.h
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: GetRelationalDatabaseMetricDataRequest.h:330
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::PeriodHasBeenSet
bool PeriodHasBeenSet() const
Definition: GetRelationalDatabaseMetricDataRequest.h:306
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::SetRelationalDatabaseName
void SetRelationalDatabaseName(const char *value)
Definition: GetRelationalDatabaseMetricDataRequest.h:65
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::GetRelationalDatabaseMetricDataRequest
GetRelationalDatabaseMetricDataRequest()
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::GetRelationalDatabaseName
const Aws::String & GetRelationalDatabaseName() const
Definition: GetRelationalDatabaseMetricDataRequest.h:45
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: GetRelationalDatabaseMetricDataRequest.h:348
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::SetStatistics
void SetStatistics(const Aws::Vector< MetricStatistic > &value)
Definition: GetRelationalDatabaseMetricDataRequest.h:531
Aws::Lightsail::Model::MetricStatistic
MetricStatistic
Definition: MetricStatistic.h:17
Aws::Lightsail::Model::RelationalDatabaseMetricName
RelationalDatabaseMetricName
Definition: RelationalDatabaseMetricName.h:17
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::WithStartTime
GetRelationalDatabaseMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: GetRelationalDatabaseMetricDataRequest.h:375
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataRequest::AddStatistics
GetRelationalDatabaseMetricDataRequest & AddStatistics(MetricStatistic &&value)
Definition: GetRelationalDatabaseMetricDataRequest.h:626