AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DataResponse.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/MetricPoint.h>
12#include <aws/ec2/model/MetricType.h>
13#include <aws/ec2/model/PeriodType.h>
14#include <aws/ec2/model/StatisticType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
26
33 public:
34 AWS_EC2_API DataResponse() = default;
35 AWS_EC2_API DataResponse(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_EC2_API DataResponse& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template <typename IdT = Aws::String>
48 void SetId(IdT&& value) {
49 m_idHasBeenSet = true;
50 m_id = std::forward<IdT>(value);
51 }
52 template <typename IdT = Aws::String>
53 DataResponse& WithId(IdT&& value) {
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetSource() const { return m_source; }
65 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
66 template <typename SourceT = Aws::String>
67 void SetSource(SourceT&& value) {
68 m_sourceHasBeenSet = true;
69 m_source = std::forward<SourceT>(value);
70 }
71 template <typename SourceT = Aws::String>
72 DataResponse& WithSource(SourceT&& value) {
73 SetSource(std::forward<SourceT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetDestination() const { return m_destination; }
84 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
85 template <typename DestinationT = Aws::String>
86 void SetDestination(DestinationT&& value) {
87 m_destinationHasBeenSet = true;
88 m_destination = std::forward<DestinationT>(value);
89 }
90 template <typename DestinationT = Aws::String>
91 DataResponse& WithDestination(DestinationT&& value) {
92 SetDestination(std::forward<DestinationT>(value));
93 return *this;
94 }
96
98
101 inline MetricType GetMetric() const { return m_metric; }
102 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
103 inline void SetMetric(MetricType value) {
104 m_metricHasBeenSet = true;
105 m_metric = value;
106 }
108 SetMetric(value);
109 return *this;
110 }
112
114
117 inline StatisticType GetStatistic() const { return m_statistic; }
118 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
119 inline void SetStatistic(StatisticType value) {
120 m_statisticHasBeenSet = true;
121 m_statistic = value;
122 }
124 SetStatistic(value);
125 return *this;
126 }
128
130
133 inline PeriodType GetPeriod() const { return m_period; }
134 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
135 inline void SetPeriod(PeriodType value) {
136 m_periodHasBeenSet = true;
137 m_period = value;
138 }
140 SetPeriod(value);
141 return *this;
142 }
144
146
149 inline const Aws::Vector<MetricPoint>& GetMetricPoints() const { return m_metricPoints; }
150 inline bool MetricPointsHasBeenSet() const { return m_metricPointsHasBeenSet; }
151 template <typename MetricPointsT = Aws::Vector<MetricPoint>>
152 void SetMetricPoints(MetricPointsT&& value) {
153 m_metricPointsHasBeenSet = true;
154 m_metricPoints = std::forward<MetricPointsT>(value);
155 }
156 template <typename MetricPointsT = Aws::Vector<MetricPoint>>
157 DataResponse& WithMetricPoints(MetricPointsT&& value) {
158 SetMetricPoints(std::forward<MetricPointsT>(value));
159 return *this;
160 }
161 template <typename MetricPointsT = MetricPoint>
162 DataResponse& AddMetricPoints(MetricPointsT&& value) {
163 m_metricPointsHasBeenSet = true;
164 m_metricPoints.emplace_back(std::forward<MetricPointsT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_id;
170
171 Aws::String m_source;
172
173 Aws::String m_destination;
174
176
178
180
181 Aws::Vector<MetricPoint> m_metricPoints;
182 bool m_idHasBeenSet = false;
183 bool m_sourceHasBeenSet = false;
184 bool m_destinationHasBeenSet = false;
185 bool m_metricHasBeenSet = false;
186 bool m_statisticHasBeenSet = false;
187 bool m_periodHasBeenSet = false;
188 bool m_metricPointsHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace EC2
193} // namespace Aws
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)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) 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
DataResponse & WithPeriod(PeriodType value)
AWS_EC2_API DataResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
DataResponse & WithId(IdT &&value)
const Aws::String & GetSource() const
void SetMetric(MetricType value)
PeriodType GetPeriod() const
const Aws::String & GetDestination() const
const Aws::String & GetId() const
void SetDestination(DestinationT &&value)
DataResponse & WithStatistic(StatisticType value)
DataResponse & AddMetricPoints(MetricPointsT &&value)
void SetSource(SourceT &&value)
AWS_EC2_API DataResponse()=default
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