AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Subscription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/MetricType.h>
11#include <aws/ec2/model/PeriodType.h>
12#include <aws/ec2/model/StatisticType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
32 public:
33 AWS_EC2_API Subscription() = default;
34 AWS_EC2_API Subscription(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_EC2_API Subscription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
45 inline const Aws::String& GetSource() const { return m_source; }
46 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
47 template <typename SourceT = Aws::String>
48 void SetSource(SourceT&& value) {
49 m_sourceHasBeenSet = true;
50 m_source = std::forward<SourceT>(value);
51 }
52 template <typename SourceT = Aws::String>
53 Subscription& WithSource(SourceT&& value) {
54 SetSource(std::forward<SourceT>(value));
55 return *this;
56 }
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) {
68 m_destinationHasBeenSet = true;
69 m_destination = std::forward<DestinationT>(value);
70 }
71 template <typename DestinationT = Aws::String>
72 Subscription& WithDestination(DestinationT&& value) {
73 SetDestination(std::forward<DestinationT>(value));
74 return *this;
75 }
77
79
82 inline MetricType GetMetric() const { return m_metric; }
83 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
84 inline void SetMetric(MetricType value) {
85 m_metricHasBeenSet = true;
86 m_metric = value;
87 }
89 SetMetric(value);
90 return *this;
91 }
93
95
98 inline StatisticType GetStatistic() const { return m_statistic; }
99 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
100 inline void SetStatistic(StatisticType value) {
101 m_statisticHasBeenSet = true;
102 m_statistic = value;
103 }
105 SetStatistic(value);
106 return *this;
107 }
109
111
114 inline PeriodType GetPeriod() const { return m_period; }
115 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
116 inline void SetPeriod(PeriodType value) {
117 m_periodHasBeenSet = true;
118 m_period = value;
119 }
121 SetPeriod(value);
122 return *this;
123 }
125 private:
126 Aws::String m_source;
127
128 Aws::String m_destination;
129
131
133
135 bool m_sourceHasBeenSet = false;
136 bool m_destinationHasBeenSet = false;
137 bool m_metricHasBeenSet = false;
138 bool m_statisticHasBeenSet = false;
139 bool m_periodHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace EC2
144} // 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