AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Subscription.h
1
6#pragma once
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 <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_EC2_API Subscription() = default;
39 AWS_EC2_API Subscription(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_EC2_API Subscription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
51 inline const Aws::String& GetSource() const { return m_source; }
52 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
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>
56 Subscription& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
58
60
64 inline const Aws::String& GetDestination() const { return m_destination; }
65 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
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>
69 Subscription& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
71
73
76 inline MetricType GetMetric() const { return m_metric; }
77 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
78 inline void SetMetric(MetricType value) { m_metricHasBeenSet = true; m_metric = value; }
79 inline Subscription& WithMetric(MetricType value) { SetMetric(value); return *this;}
81
83
86 inline StatisticType GetStatistic() const { return m_statistic; }
87 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
88 inline void SetStatistic(StatisticType value) { m_statisticHasBeenSet = true; m_statistic = value; }
89 inline Subscription& WithStatistic(StatisticType value) { SetStatistic(value); return *this;}
91
93
96 inline PeriodType GetPeriod() const { return m_period; }
97 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
98 inline void SetPeriod(PeriodType value) { m_periodHasBeenSet = true; m_period = value; }
99 inline Subscription& WithPeriod(PeriodType value) { SetPeriod(value); return *this;}
101 private:
102
103 Aws::String m_source;
104 bool m_sourceHasBeenSet = false;
105
106 Aws::String m_destination;
107 bool m_destinationHasBeenSet = false;
108
110 bool m_metricHasBeenSet = false;
111
113 bool m_statisticHasBeenSet = false;
114
116 bool m_periodHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace EC2
121} // namespace Aws
Subscription & WithDestination(DestinationT &&value)
PeriodType GetPeriod() const
const Aws::String & GetSource() 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)
Subscription & WithPeriod(PeriodType value)
void SetSource(SourceT &&value)
Subscription & WithStatistic(StatisticType value)
MetricType GetMetric() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) 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