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/InstanceMetricName.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>
48 template<
typename InstanceNameT = Aws::String>
49 void SetInstanceName(InstanceNameT&& value) { m_instanceNameHasBeenSet =
true; m_instanceName = std::forward<InstanceNameT>(value); }
50 template<
typename InstanceNameT = Aws::String>
147 inline void SetPeriod(
int value) { m_periodHasBeenSet =
true; m_period = value; }
157 template<
typename StartTimeT = Aws::Utils::DateTime>
158 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet =
true; m_startTime = std::forward<StartTimeT>(value); }
159 template<
typename StartTimeT = Aws::Utils::DateTime>
169 template<
typename EndTimeT = Aws::Utils::DateTime>
170 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet =
true; m_endTime = std::forward<EndTimeT>(value); }
171 template<
typename EndTimeT = Aws::Utils::DateTime>
207 template<
typename StatisticsT = Aws::Vector<MetricStatistic>>
208 void SetStatistics(StatisticsT&& value) { m_statisticsHasBeenSet =
true; m_statistics = std::forward<StatisticsT>(value); }
209 template<
typename StatisticsT = Aws::Vector<MetricStatistic>>
216 bool m_instanceNameHasBeenSet =
false;
219 bool m_metricNameHasBeenSet =
false;
222 bool m_periodHasBeenSet =
false;
225 bool m_startTimeHasBeenSet =
false;
228 bool m_endTimeHasBeenSet =
false;
231 bool m_unitHasBeenSet =
false;
234 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