7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lightsail/LightsailRequest.h>
11#include <aws/lightsail/Lightsail_EXPORTS.h>
12#include <aws/lightsail/model/InstanceMetricName.h>
13#include <aws/lightsail/model/MetricStatistic.h>
14#include <aws/lightsail/model/MetricUnit.h>
44 template <
typename InstanceNameT = Aws::String>
46 m_instanceNameHasBeenSet =
true;
47 m_instanceName = std::forward<InstanceNameT>(value);
49 template <
typename InstanceNameT = Aws::String>
136 m_metricNameHasBeenSet =
true;
137 m_metricName = value;
156 m_periodHasBeenSet =
true;
171 template <
typename StartTimeT = Aws::Utils::DateTime>
173 m_startTimeHasBeenSet =
true;
174 m_startTime = std::forward<StartTimeT>(value);
176 template <
typename StartTimeT = Aws::Utils::DateTime>
189 template <
typename EndTimeT = Aws::Utils::DateTime>
191 m_endTimeHasBeenSet =
true;
192 m_endTime = std::forward<EndTimeT>(value);
194 template <
typename EndTimeT = Aws::Utils::DateTime>
210 m_unitHasBeenSet =
true;
239 template <
typename StatisticsT = Aws::Vector<MetricStatistic>>
241 m_statisticsHasBeenSet =
true;
242 m_statistics = std::forward<StatisticsT>(value);
244 template <
typename StatisticsT = Aws::Vector<MetricStatistic>>
250 m_statisticsHasBeenSet =
true;
251 m_statistics.push_back(value);
257 bool m_instanceNameHasBeenSet =
false;
260 bool m_metricNameHasBeenSet =
false;
263 bool m_periodHasBeenSet =
false;
266 bool m_startTimeHasBeenSet =
false;
269 bool m_endTimeHasBeenSet =
false;
272 bool m_unitHasBeenSet =
false;
275 bool m_statisticsHasBeenSet =
false;
bool PeriodHasBeenSet() const
GetInstanceMetricDataRequest & WithUnit(MetricUnit value)
GetInstanceMetricDataRequest & WithStartTime(StartTimeT &&value)
bool MetricNameHasBeenSet() const
const Aws::Vector< MetricStatistic > & GetStatistics() const
void SetEndTime(EndTimeT &&value)
bool StatisticsHasBeenSet() const
GetInstanceMetricDataRequest & WithEndTime(EndTimeT &&value)
AWS_LIGHTSAIL_API GetInstanceMetricDataRequest()=default
GetInstanceMetricDataRequest & WithMetricName(InstanceMetricName value)
bool InstanceNameHasBeenSet() const
void SetStatistics(StatisticsT &&value)
void SetMetricName(InstanceMetricName value)
bool EndTimeHasBeenSet() const
const Aws::String & GetInstanceName() const
MetricUnit GetUnit() const
void SetInstanceName(InstanceNameT &&value)
InstanceMetricName GetMetricName() const
GetInstanceMetricDataRequest & WithPeriod(int value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Utils::DateTime & GetStartTime() const
void SetUnit(MetricUnit value)
bool StartTimeHasBeenSet() const
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetInstanceMetricDataRequest & WithInstanceName(InstanceNameT &&value)
void SetStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
GetInstanceMetricDataRequest & AddStatistics(MetricStatistic value)
bool UnitHasBeenSet() const
GetInstanceMetricDataRequest & WithStatistics(StatisticsT &&value)
void SetPeriod(int 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