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/BucketMetricName.h>
13#include <aws/lightsail/model/MetricStatistic.h>
14#include <aws/lightsail/model/MetricUnit.h>
44 template <
typename BucketNameT = Aws::String>
46 m_bucketNameHasBeenSet =
true;
47 m_bucketName = std::forward<BucketNameT>(value);
49 template <
typename BucketNameT = Aws::String>
77 m_metricNameHasBeenSet =
true;
92 template <
typename StartTimeT = Aws::Utils::DateTime>
94 m_startTimeHasBeenSet =
true;
95 m_startTime = std::forward<StartTimeT>(value);
97 template <
typename StartTimeT = Aws::Utils::DateTime>
110 template <
typename EndTimeT = Aws::Utils::DateTime>
112 m_endTimeHasBeenSet =
true;
113 m_endTime = std::forward<EndTimeT>(value);
115 template <
typename EndTimeT = Aws::Utils::DateTime>
132 m_periodHasBeenSet =
true;
162 template <
typename StatisticsT = Aws::Vector<MetricStatistic>>
164 m_statisticsHasBeenSet =
true;
165 m_statistics = std::forward<StatisticsT>(value);
167 template <
typename StatisticsT = Aws::Vector<MetricStatistic>>
173 m_statisticsHasBeenSet =
true;
174 m_statistics.push_back(value);
188 m_unitHasBeenSet =
true;
198 bool m_bucketNameHasBeenSet =
false;
201 bool m_metricNameHasBeenSet =
false;
204 bool m_startTimeHasBeenSet =
false;
207 bool m_endTimeHasBeenSet =
false;
210 bool m_periodHasBeenSet =
false;
213 bool m_statisticsHasBeenSet =
false;
216 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