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/BucketMetricName.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lightsail/model/MetricUnit.h>
14#include <aws/lightsail/model/MetricStatistic.h>
48 template<
typename BucketNameT = Aws::String>
49 void SetBucketName(BucketNameT&& value) { m_bucketNameHasBeenSet =
true; m_bucketName = std::forward<BucketNameT>(value); }
50 template<
typename BucketNameT = Aws::String>
84 template<
typename StartTimeT = Aws::Utils::DateTime>
85 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet =
true; m_startTime = std::forward<StartTimeT>(value); }
86 template<
typename StartTimeT = Aws::Utils::DateTime>
96 template<
typename EndTimeT = Aws::Utils::DateTime>
97 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet =
true; m_endTime = std::forward<EndTimeT>(value); }
98 template<
typename EndTimeT = Aws::Utils::DateTime>
111 inline void SetPeriod(
int value) { m_periodHasBeenSet =
true; m_period = value; }
136 template<
typename StatisticsT = Aws::Vector<MetricStatistic>>
137 void SetStatistics(StatisticsT&& value) { m_statisticsHasBeenSet =
true; m_statistics = std::forward<StatisticsT>(value); }
138 template<
typename StatisticsT = Aws::Vector<MetricStatistic>>
157 bool m_bucketNameHasBeenSet =
false;
160 bool m_metricNameHasBeenSet =
false;
163 bool m_startTimeHasBeenSet =
false;
166 bool m_endTimeHasBeenSet =
false;
169 bool m_periodHasBeenSet =
false;
172 bool m_statisticsHasBeenSet =
false;
175 bool m_unitHasBeenSet =
false;
GetBucketMetricDataRequest & WithUnit(MetricUnit value)
void SetBucketName(BucketNameT &&value)
bool PeriodHasBeenSet() const
GetBucketMetricDataRequest & WithEndTime(EndTimeT &&value)
void SetMetricName(BucketMetricName value)
void SetUnit(MetricUnit value)
void SetStartTime(StartTimeT &&value)
GetBucketMetricDataRequest & WithMetricName(BucketMetricName value)
void SetStatistics(StatisticsT &&value)
const Aws::String & GetBucketName() const
GetBucketMetricDataRequest & AddStatistics(MetricStatistic value)
bool StartTimeHasBeenSet() const
void SetPeriod(int value)
bool UnitHasBeenSet() const
bool MetricNameHasBeenSet() const
bool StatisticsHasBeenSet() const
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
void SetEndTime(EndTimeT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LIGHTSAIL_API GetBucketMetricDataRequest()=default
bool EndTimeHasBeenSet() const
GetBucketMetricDataRequest & WithBucketName(BucketNameT &&value)
const Aws::Utils::DateTime & GetEndTime() const
const Aws::Utils::DateTime & GetStartTime() const
MetricUnit GetUnit() const
GetBucketMetricDataRequest & WithStartTime(StartTimeT &&value)
GetBucketMetricDataRequest & WithPeriod(int value)
virtual const char * GetServiceRequestName() const override
BucketMetricName GetMetricName() const
bool BucketNameHasBeenSet() const
GetBucketMetricDataRequest & WithStatistics(StatisticsT &&value)
const Aws::Vector< MetricStatistic > & GetStatistics() 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