AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetRelationalDatabaseMetricDataRequest.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/RelationalDatabaseMetricName.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/lightsail/model/MetricUnit.h>
13#include <aws/core/utils/memory/stl/AWSVector.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 GetRelationalDatabaseMetricDataRequest() = default;
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_LIGHTSAIL_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetRelationalDatabaseName() const { return m_relationalDatabaseName; }
47 inline bool RelationalDatabaseNameHasBeenSet() const { return m_relationalDatabaseNameHasBeenSet; }
48 template<typename RelationalDatabaseNameT = Aws::String>
49 void SetRelationalDatabaseName(RelationalDatabaseNameT&& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = std::forward<RelationalDatabaseNameT>(value); }
50 template<typename RelationalDatabaseNameT = Aws::String>
51 GetRelationalDatabaseMetricDataRequest& WithRelationalDatabaseName(RelationalDatabaseNameT&& value) { SetRelationalDatabaseName(std::forward<RelationalDatabaseNameT>(value)); return *this;}
53
55
88 inline RelationalDatabaseMetricName GetMetricName() const { return m_metricName; }
89 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
90 inline void SetMetricName(RelationalDatabaseMetricName value) { m_metricNameHasBeenSet = true; m_metricName = value; }
93
95
100 inline int GetPeriod() const { return m_period; }
101 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
102 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
103 inline GetRelationalDatabaseMetricDataRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
105
107
114 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
115 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
116 template<typename StartTimeT = Aws::Utils::DateTime>
117 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
118 template<typename StartTimeT = Aws::Utils::DateTime>
119 GetRelationalDatabaseMetricDataRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
121
123
130 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
131 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
132 template<typename EndTimeT = Aws::Utils::DateTime>
133 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
134 template<typename EndTimeT = Aws::Utils::DateTime>
135 GetRelationalDatabaseMetricDataRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
137
139
144 inline MetricUnit GetUnit() const { return m_unit; }
145 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
146 inline void SetUnit(MetricUnit value) { m_unitHasBeenSet = true; m_unit = value; }
149
151
168 inline const Aws::Vector<MetricStatistic>& GetStatistics() const { return m_statistics; }
169 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
170 template<typename StatisticsT = Aws::Vector<MetricStatistic>>
171 void SetStatistics(StatisticsT&& value) { m_statisticsHasBeenSet = true; m_statistics = std::forward<StatisticsT>(value); }
172 template<typename StatisticsT = Aws::Vector<MetricStatistic>>
173 GetRelationalDatabaseMetricDataRequest& WithStatistics(StatisticsT&& value) { SetStatistics(std::forward<StatisticsT>(value)); return *this;}
174 inline GetRelationalDatabaseMetricDataRequest& AddStatistics(MetricStatistic value) { m_statisticsHasBeenSet = true; m_statistics.push_back(value); return *this; }
176 private:
177
178 Aws::String m_relationalDatabaseName;
179 bool m_relationalDatabaseNameHasBeenSet = false;
180
182 bool m_metricNameHasBeenSet = false;
183
184 int m_period{0};
185 bool m_periodHasBeenSet = false;
186
187 Aws::Utils::DateTime m_startTime{};
188 bool m_startTimeHasBeenSet = false;
189
190 Aws::Utils::DateTime m_endTime{};
191 bool m_endTimeHasBeenSet = false;
192
194 bool m_unitHasBeenSet = false;
195
196 Aws::Vector<MetricStatistic> m_statistics;
197 bool m_statisticsHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace Lightsail
202} // namespace Aws
GetRelationalDatabaseMetricDataRequest & WithStartTime(StartTimeT &&value)
GetRelationalDatabaseMetricDataRequest & WithEndTime(EndTimeT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
GetRelationalDatabaseMetricDataRequest & AddStatistics(MetricStatistic value)
GetRelationalDatabaseMetricDataRequest & WithUnit(MetricUnit value)
GetRelationalDatabaseMetricDataRequest & WithStatistics(StatisticsT &&value)
GetRelationalDatabaseMetricDataRequest & WithRelationalDatabaseName(RelationalDatabaseNameT &&value)
GetRelationalDatabaseMetricDataRequest & WithMetricName(RelationalDatabaseMetricName value)
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