AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
54 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
55 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
56 inline Subscription& WithSource(const Aws::String& value) { SetSource(value); return *this;}
57 inline Subscription& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
58 inline Subscription& WithSource(const char* value) { SetSource(value); return *this;}
60
62
66 inline const Aws::String& GetDestination() const{ return m_destination; }
67 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
68 inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
69 inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
70 inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
71 inline Subscription& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
72 inline Subscription& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
73 inline Subscription& WithDestination(const char* value) { SetDestination(value); return *this;}
75
77
80 inline const MetricType& GetMetric() const{ return m_metric; }
81 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
82 inline void SetMetric(const MetricType& value) { m_metricHasBeenSet = true; m_metric = value; }
83 inline void SetMetric(MetricType&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
84 inline Subscription& WithMetric(const MetricType& value) { SetMetric(value); return *this;}
85 inline Subscription& WithMetric(MetricType&& value) { SetMetric(std::move(value)); return *this;}
87
89
92 inline const StatisticType& GetStatistic() const{ return m_statistic; }
93 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
94 inline void SetStatistic(const StatisticType& value) { m_statisticHasBeenSet = true; m_statistic = value; }
95 inline void SetStatistic(StatisticType&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
96 inline Subscription& WithStatistic(const StatisticType& value) { SetStatistic(value); return *this;}
97 inline Subscription& WithStatistic(StatisticType&& value) { SetStatistic(std::move(value)); return *this;}
99
101
104 inline const PeriodType& GetPeriod() const{ return m_period; }
105 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
106 inline void SetPeriod(const PeriodType& value) { m_periodHasBeenSet = true; m_period = value; }
107 inline void SetPeriod(PeriodType&& value) { m_periodHasBeenSet = true; m_period = std::move(value); }
108 inline Subscription& WithPeriod(const PeriodType& value) { SetPeriod(value); return *this;}
109 inline Subscription& WithPeriod(PeriodType&& value) { SetPeriod(std::move(value)); return *this;}
111 private:
112
113 Aws::String m_source;
114 bool m_sourceHasBeenSet = false;
115
116 Aws::String m_destination;
117 bool m_destinationHasBeenSet = false;
118
119 MetricType m_metric;
120 bool m_metricHasBeenSet = false;
121
122 StatisticType m_statistic;
123 bool m_statisticHasBeenSet = false;
124
125 PeriodType m_period;
126 bool m_periodHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace EC2
131} // namespace Aws
Subscription & WithDestination(Aws::String &&value)
void SetDestination(Aws::String &&value)
const StatisticType & GetStatistic() const
void SetPeriod(PeriodType &&value)
void SetSource(const Aws::String &value)
void SetStatistic(const StatisticType &value)
void SetDestination(const Aws::String &value)
void SetMetric(const MetricType &value)
const Aws::String & GetSource() const
Subscription & WithStatistic(StatisticType &&value)
Subscription & WithSource(const Aws::String &value)
Subscription & WithSource(Aws::String &&value)
Subscription & WithDestination(const char *value)
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 SetPeriod(const PeriodType &value)
Subscription & WithPeriod(const PeriodType &value)
const PeriodType & GetPeriod() const
void SetSource(Aws::String &&value)
Subscription & WithSource(const char *value)
void SetSource(const char *value)
void SetStatistic(StatisticType &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetDestination() const
void SetDestination(const char *value)
void SetMetric(MetricType &&value)
Subscription & WithDestination(const Aws::String &value)
const MetricType & GetMetric() const
Subscription & WithMetric(MetricType &&value)
Subscription & WithStatistic(const StatisticType &value)
Subscription & WithPeriod(PeriodType &&value)
Subscription & WithMetric(const MetricType &value)
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