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>
50 inline void SetInstanceName(
const char* value) { m_instanceNameHasBeenSet =
true; m_instanceName.assign(value); }
151 inline void SetPeriod(
int value) { m_periodHasBeenSet =
true; m_period = value; }
223 bool m_instanceNameHasBeenSet =
false;
226 bool m_metricNameHasBeenSet =
false;
229 bool m_periodHasBeenSet =
false;
232 bool m_startTimeHasBeenSet =
false;
235 bool m_endTimeHasBeenSet =
false;
238 bool m_unitHasBeenSet =
false;
241 bool m_statisticsHasBeenSet =
false;
bool PeriodHasBeenSet() const
void SetUnit(MetricUnit &&value)
GetInstanceMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
bool MetricNameHasBeenSet() const
GetInstanceMetricDataRequest & WithStatistics(Aws::Vector< MetricStatistic > &&value)
GetInstanceMetricDataRequest & WithInstanceName(const char *value)
const Aws::Vector< MetricStatistic > & GetStatistics() const
void SetStatistics(Aws::Vector< MetricStatistic > &&value)
GetInstanceMetricDataRequest & WithInstanceName(const Aws::String &value)
GetInstanceMetricDataRequest & WithMetricName(const InstanceMetricName &value)
bool StatisticsHasBeenSet() const
AWS_LIGHTSAIL_API GetInstanceMetricDataRequest()
void SetInstanceName(Aws::String &&value)
GetInstanceMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
bool InstanceNameHasBeenSet() const
GetInstanceMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
GetInstanceMetricDataRequest & WithInstanceName(Aws::String &&value)
bool EndTimeHasBeenSet() const
void SetStatistics(const Aws::Vector< MetricStatistic > &value)
GetInstanceMetricDataRequest & AddStatistics(const MetricStatistic &value)
void SetInstanceName(const char *value)
const Aws::String & GetInstanceName() const
void SetUnit(const MetricUnit &value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
GetInstanceMetricDataRequest & WithStatistics(const Aws::Vector< MetricStatistic > &value)
void SetMetricName(const InstanceMetricName &value)
GetInstanceMetricDataRequest & WithUnit(MetricUnit &&value)
GetInstanceMetricDataRequest & WithPeriod(int value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Utils::DateTime & GetStartTime() const
GetInstanceMetricDataRequest & WithUnit(const MetricUnit &value)
bool StartTimeHasBeenSet() const
GetInstanceMetricDataRequest & WithMetricName(InstanceMetricName &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const InstanceMetricName & GetMetricName() const
GetInstanceMetricDataRequest & AddStatistics(MetricStatistic &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndTime() const
void SetEndTime(Aws::Utils::DateTime &&value)
void SetMetricName(InstanceMetricName &&value)
void SetInstanceName(const Aws::String &value)
bool UnitHasBeenSet() const
const MetricUnit & GetUnit() const
void SetPeriod(int value)
GetInstanceMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&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