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>
53 template<
typename SourceT = Aws::String>
54 void SetSource(SourceT&& value) { m_sourceHasBeenSet =
true; m_source = std::forward<SourceT>(value); }
55 template<
typename SourceT = Aws::String>
66 template<
typename DestinationT = Aws::String>
67 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet =
true; m_destination = std::forward<DestinationT>(value); }
68 template<
typename DestinationT = Aws::String>
104 bool m_sourceHasBeenSet =
false;
107 bool m_destinationHasBeenSet =
false;
110 bool m_metricHasBeenSet =
false;
113 bool m_statisticHasBeenSet =
false;
116 bool m_periodHasBeenSet =
false;
Subscription & WithDestination(DestinationT &&value)
PeriodType GetPeriod() const
bool DestinationHasBeenSet() const
const Aws::String & GetSource() const
bool SourceHasBeenSet() const
AWS_EC2_API Subscription()=default
AWS_EC2_API Subscription(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetStatistic(StatisticType value)
bool StatisticHasBeenSet() const
Subscription & WithPeriod(PeriodType value)
void SetSource(SourceT &&value)
Subscription & WithStatistic(StatisticType value)
bool PeriodHasBeenSet() const
MetricType GetMetric() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool MetricHasBeenSet() const
const Aws::String & GetDestination() const
Subscription & WithMetric(MetricType value)
void SetPeriod(PeriodType value)
void SetMetric(MetricType value)
void SetDestination(DestinationT &&value)
Subscription & WithSource(SourceT &&value)
StatisticType GetStatistic() const
AWS_EC2_API Subscription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream