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/DistributionMetricName.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>
52 inline void SetDistributionName(
const char* value) { m_distributionNameHasBeenSet =
true; m_distributionName.assign(value); }
145 inline void SetPeriod(
int value) { m_periodHasBeenSet =
true; m_period = value; }
193 bool m_distributionNameHasBeenSet =
false;
196 bool m_metricNameHasBeenSet =
false;
199 bool m_startTimeHasBeenSet =
false;
202 bool m_endTimeHasBeenSet =
false;
205 bool m_periodHasBeenSet =
false;
208 bool m_unitHasBeenSet =
false;
211 bool m_statisticsHasBeenSet =
false;
GetDistributionMetricDataRequest & WithPeriod(int value)
GetDistributionMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
void SetMetricName(const DistributionMetricName &value)
AWS_LIGHTSAIL_API GetDistributionMetricDataRequest()
void SetDistributionName(const Aws::String &value)
void SetStartTime(Aws::Utils::DateTime &&value)
GetDistributionMetricDataRequest & WithUnit(const MetricUnit &value)
bool PeriodHasBeenSet() const
const MetricUnit & GetUnit() const
GetDistributionMetricDataRequest & WithStatistics(const Aws::Vector< MetricStatistic > &value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::Vector< MetricStatistic > & GetStatistics() const
const Aws::String & GetDistributionName() const
void SetUnit(const MetricUnit &value)
GetDistributionMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
bool DistributionNameHasBeenSet() const
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
void SetPeriod(int value)
void SetStatistics(Aws::Vector< MetricStatistic > &&value)
GetDistributionMetricDataRequest & WithDistributionName(const char *value)
GetDistributionMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
GetDistributionMetricDataRequest & AddStatistics(const MetricStatistic &value)
bool StartTimeHasBeenSet() const
GetDistributionMetricDataRequest & AddStatistics(MetricStatistic &&value)
GetDistributionMetricDataRequest & WithDistributionName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetMetricName(DistributionMetricName &&value)
bool UnitHasBeenSet() const
void SetStartTime(const Aws::Utils::DateTime &value)
bool MetricNameHasBeenSet() const
bool EndTimeHasBeenSet() const
void SetDistributionName(const char *value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEndTime(Aws::Utils::DateTime &&value)
GetDistributionMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
void SetDistributionName(Aws::String &&value)
GetDistributionMetricDataRequest & WithUnit(MetricUnit &&value)
GetDistributionMetricDataRequest & WithStatistics(Aws::Vector< MetricStatistic > &&value)
GetDistributionMetricDataRequest & WithDistributionName(const Aws::String &value)
void SetUnit(MetricUnit &&value)
void SetStatistics(const Aws::Vector< MetricStatistic > &value)
GetDistributionMetricDataRequest & WithMetricName(const DistributionMetricName &value)
GetDistributionMetricDataRequest & WithMetricName(DistributionMetricName &&value)
const Aws::Utils::DateTime & GetEndTime() const
bool StatisticsHasBeenSet() const
const DistributionMetricName & GetMetricName() const
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