7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/MetricType.h>
11#include <aws/ec2/model/StatisticType.h>
12#include <aws/ec2/model/PeriodType.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ec2/model/MetricPoint.h>
53 template<
typename IdT = Aws::String>
54 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
55 template<
typename IdT = Aws::String>
66 template<
typename SourceT = Aws::String>
67 void SetSource(SourceT&& value) { m_sourceHasBeenSet =
true; m_source = std::forward<SourceT>(value); }
68 template<
typename SourceT = Aws::String>
79 template<
typename DestinationT = Aws::String>
80 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet =
true; m_destination = std::forward<DestinationT>(value); }
81 template<
typename DestinationT = Aws::String>
121 template<
typename MetricPo
intsT = Aws::Vector<MetricPo
int>>
122 void SetMetricPoints(MetricPointsT&& value) { m_metricPointsHasBeenSet =
true; m_metricPoints = std::forward<MetricPointsT>(value); }
123 template<
typename MetricPo
intsT = Aws::Vector<MetricPo
int>>
125 template<
typename MetricPo
intsT = MetricPo
int>
126 DataResponse&
AddMetricPoints(MetricPointsT&& value) { m_metricPointsHasBeenSet =
true; m_metricPoints.emplace_back(std::forward<MetricPointsT>(value));
return *
this; }
131 bool m_idHasBeenSet =
false;
134 bool m_sourceHasBeenSet =
false;
137 bool m_destinationHasBeenSet =
false;
140 bool m_metricHasBeenSet =
false;
143 bool m_statisticHasBeenSet =
false;
146 bool m_periodHasBeenSet =
false;
149 bool m_metricPointsHasBeenSet =
false;
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DataResponse & WithDestination(DestinationT &&value)
void SetMetricPoints(MetricPointsT &&value)
const Aws::Vector< MetricPoint > & GetMetricPoints() const
DataResponse & WithSource(SourceT &&value)
bool SourceHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool PeriodHasBeenSet() const
AWS_EC2_API DataResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DataResponse & WithMetricPoints(MetricPointsT &&value)
void SetPeriod(PeriodType value)
DataResponse & WithMetric(MetricType value)
StatisticType GetStatistic() const
bool DestinationHasBeenSet() const
DataResponse & WithPeriod(PeriodType value)
AWS_EC2_API DataResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
DataResponse & WithId(IdT &&value)
bool MetricPointsHasBeenSet() const
bool IdHasBeenSet() const
const Aws::String & GetSource() const
void SetMetric(MetricType value)
PeriodType GetPeriod() const
const Aws::String & GetDestination() const
const Aws::String & GetId() const
bool StatisticHasBeenSet() const
void SetDestination(DestinationT &&value)
DataResponse & WithStatistic(StatisticType value)
DataResponse & AddMetricPoints(MetricPointsT &&value)
void SetSource(SourceT &&value)
AWS_EC2_API DataResponse()=default
bool MetricHasBeenSet() const
MetricType GetMetric() const
void SetStatistic(StatisticType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream