AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetRelationalDatabaseName(const Aws::String& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = value; }
49 inline void SetRelationalDatabaseName(Aws::String&& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = std::move(value); }
50 inline void SetRelationalDatabaseName(const char* value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName.assign(value); }
55
57
90 inline const RelationalDatabaseMetricName& GetMetricName() const{ return m_metricName; }
91 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
92 inline void SetMetricName(const RelationalDatabaseMetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
93 inline void SetMetricName(RelationalDatabaseMetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
97
99
104 inline int GetPeriod() const{ return m_period; }
105 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
106 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
107 inline GetRelationalDatabaseMetricDataRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
109
111
118 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
119 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
120 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
121 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
125
127
134 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
135 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
136 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
137 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
139 inline GetRelationalDatabaseMetricDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
141
143
148 inline const MetricUnit& GetUnit() const{ return m_unit; }
149 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
150 inline void SetUnit(const MetricUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
151 inline void SetUnit(MetricUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
152 inline GetRelationalDatabaseMetricDataRequest& WithUnit(const MetricUnit& value) { SetUnit(value); return *this;}
153 inline GetRelationalDatabaseMetricDataRequest& WithUnit(MetricUnit&& value) { SetUnit(std::move(value)); return *this;}
155
157
174 inline const Aws::Vector<MetricStatistic>& GetStatistics() const{ return m_statistics; }
175 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
176 inline void SetStatistics(const Aws::Vector<MetricStatistic>& value) { m_statisticsHasBeenSet = true; m_statistics = value; }
177 inline void SetStatistics(Aws::Vector<MetricStatistic>&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); }
180 inline GetRelationalDatabaseMetricDataRequest& AddStatistics(const MetricStatistic& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(value); return *this; }
181 inline GetRelationalDatabaseMetricDataRequest& AddStatistics(MetricStatistic&& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(std::move(value)); return *this; }
183 private:
184
185 Aws::String m_relationalDatabaseName;
186 bool m_relationalDatabaseNameHasBeenSet = false;
187
188 RelationalDatabaseMetricName m_metricName;
189 bool m_metricNameHasBeenSet = false;
190
191 int m_period;
192 bool m_periodHasBeenSet = false;
193
194 Aws::Utils::DateTime m_startTime;
195 bool m_startTimeHasBeenSet = false;
196
197 Aws::Utils::DateTime m_endTime;
198 bool m_endTimeHasBeenSet = false;
199
200 MetricUnit m_unit;
201 bool m_unitHasBeenSet = false;
202
203 Aws::Vector<MetricStatistic> m_statistics;
204 bool m_statisticsHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace Lightsail
209} // namespace Aws
GetRelationalDatabaseMetricDataRequest & AddStatistics(MetricStatistic &&value)
GetRelationalDatabaseMetricDataRequest & WithStatistics(Aws::Vector< MetricStatistic > &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
GetRelationalDatabaseMetricDataRequest & AddStatistics(const MetricStatistic &value)
GetRelationalDatabaseMetricDataRequest & WithRelationalDatabaseName(Aws::String &&value)
GetRelationalDatabaseMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
GetRelationalDatabaseMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
GetRelationalDatabaseMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
GetRelationalDatabaseMetricDataRequest & WithRelationalDatabaseName(const Aws::String &value)
GetRelationalDatabaseMetricDataRequest & WithStatistics(const Aws::Vector< MetricStatistic > &value)
GetRelationalDatabaseMetricDataRequest & WithRelationalDatabaseName(const char *value)
GetRelationalDatabaseMetricDataRequest & WithUnit(MetricUnit &&value)
GetRelationalDatabaseMetricDataRequest & WithMetricName(RelationalDatabaseMetricName &&value)
GetRelationalDatabaseMetricDataRequest & WithMetricName(const RelationalDatabaseMetricName &value)
GetRelationalDatabaseMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
GetRelationalDatabaseMetricDataRequest & WithUnit(const MetricUnit &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