AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataResponse.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 <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ec2/model/MetricPoint.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_EC2_API DataResponse();
40 AWS_EC2_API DataResponse(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_EC2_API DataResponse& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetId() const{ return m_id; }
52 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
55 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
56 inline DataResponse& WithId(const Aws::String& value) { SetId(value); return *this;}
57 inline DataResponse& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
58 inline DataResponse& WithId(const char* value) { SetId(value); return *this;}
60
62
66 inline const Aws::String& GetSource() const{ return m_source; }
67 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
68 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
69 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
70 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
71 inline DataResponse& WithSource(const Aws::String& value) { SetSource(value); return *this;}
72 inline DataResponse& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
73 inline DataResponse& WithSource(const char* value) { SetSource(value); return *this;}
75
77
81 inline const Aws::String& GetDestination() const{ return m_destination; }
82 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
83 inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
84 inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
85 inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
86 inline DataResponse& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
87 inline DataResponse& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
88 inline DataResponse& WithDestination(const char* value) { SetDestination(value); return *this;}
90
92
95 inline const MetricType& GetMetric() const{ return m_metric; }
96 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
97 inline void SetMetric(const MetricType& value) { m_metricHasBeenSet = true; m_metric = value; }
98 inline void SetMetric(MetricType&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
99 inline DataResponse& WithMetric(const MetricType& value) { SetMetric(value); return *this;}
100 inline DataResponse& WithMetric(MetricType&& value) { SetMetric(std::move(value)); return *this;}
102
104
107 inline const StatisticType& GetStatistic() const{ return m_statistic; }
108 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
109 inline void SetStatistic(const StatisticType& value) { m_statisticHasBeenSet = true; m_statistic = value; }
110 inline void SetStatistic(StatisticType&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
111 inline DataResponse& WithStatistic(const StatisticType& value) { SetStatistic(value); return *this;}
112 inline DataResponse& WithStatistic(StatisticType&& value) { SetStatistic(std::move(value)); return *this;}
114
116
119 inline const PeriodType& GetPeriod() const{ return m_period; }
120 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
121 inline void SetPeriod(const PeriodType& value) { m_periodHasBeenSet = true; m_period = value; }
122 inline void SetPeriod(PeriodType&& value) { m_periodHasBeenSet = true; m_period = std::move(value); }
123 inline DataResponse& WithPeriod(const PeriodType& value) { SetPeriod(value); return *this;}
124 inline DataResponse& WithPeriod(PeriodType&& value) { SetPeriod(std::move(value)); return *this;}
126
128
131 inline const Aws::Vector<MetricPoint>& GetMetricPoints() const{ return m_metricPoints; }
132 inline bool MetricPointsHasBeenSet() const { return m_metricPointsHasBeenSet; }
133 inline void SetMetricPoints(const Aws::Vector<MetricPoint>& value) { m_metricPointsHasBeenSet = true; m_metricPoints = value; }
134 inline void SetMetricPoints(Aws::Vector<MetricPoint>&& value) { m_metricPointsHasBeenSet = true; m_metricPoints = std::move(value); }
135 inline DataResponse& WithMetricPoints(const Aws::Vector<MetricPoint>& value) { SetMetricPoints(value); return *this;}
136 inline DataResponse& WithMetricPoints(Aws::Vector<MetricPoint>&& value) { SetMetricPoints(std::move(value)); return *this;}
137 inline DataResponse& AddMetricPoints(const MetricPoint& value) { m_metricPointsHasBeenSet = true; m_metricPoints.push_back(value); return *this; }
138 inline DataResponse& AddMetricPoints(MetricPoint&& value) { m_metricPointsHasBeenSet = true; m_metricPoints.push_back(std::move(value)); return *this; }
140 private:
141
142 Aws::String m_id;
143 bool m_idHasBeenSet = false;
144
145 Aws::String m_source;
146 bool m_sourceHasBeenSet = false;
147
148 Aws::String m_destination;
149 bool m_destinationHasBeenSet = false;
150
151 MetricType m_metric;
152 bool m_metricHasBeenSet = false;
153
154 StatisticType m_statistic;
155 bool m_statisticHasBeenSet = false;
156
157 PeriodType m_period;
158 bool m_periodHasBeenSet = false;
159
160 Aws::Vector<MetricPoint> m_metricPoints;
161 bool m_metricPointsHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace EC2
166} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DataResponse & WithMetric(const MetricType &value)
const Aws::Vector< MetricPoint > & GetMetricPoints() const
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)
const StatisticType & GetStatistic() const
void SetStatistic(StatisticType &&value)
const PeriodType & GetPeriod() const
DataResponse & WithPeriod(PeriodType &&value)
void SetId(const char *value)
DataResponse & WithMetric(MetricType &&value)
DataResponse & WithMetricPoints(Aws::Vector< MetricPoint > &&value)
DataResponse & AddMetricPoints(const MetricPoint &value)
AWS_EC2_API DataResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
DataResponse & WithSource(Aws::String &&value)
void SetMetricPoints(const Aws::Vector< MetricPoint > &value)
const Aws::String & GetSource() const
void SetMetricPoints(Aws::Vector< MetricPoint > &&value)
const MetricType & GetMetric() const
DataResponse & WithSource(const char *value)
DataResponse & WithId(const Aws::String &value)
DataResponse & WithId(Aws::String &&value)
void SetId(Aws::String &&value)
DataResponse & WithPeriod(const PeriodType &value)
const Aws::String & GetDestination() const
void SetPeriod(PeriodType &&value)
const Aws::String & GetId() const
DataResponse & WithDestination(const char *value)
DataResponse & WithStatistic(StatisticType &&value)
void SetSource(const char *value)
void SetDestination(const Aws::String &value)
void SetStatistic(const StatisticType &value)
void SetMetric(MetricType &&value)
void SetPeriod(const PeriodType &value)
DataResponse & WithDestination(Aws::String &&value)
DataResponse & WithDestination(const Aws::String &value)
DataResponse & WithSource(const Aws::String &value)
void SetSource(Aws::String &&value)
void SetDestination(Aws::String &&value)
DataResponse & WithId(const char *value)
DataResponse & AddMetricPoints(MetricPoint &&value)
DataResponse & WithMetricPoints(const Aws::Vector< MetricPoint > &value)
DataResponse & WithStatistic(const StatisticType &value)
void SetDestination(const char *value)
void SetMetric(const MetricType &value)
void SetId(const Aws::String &value)
void SetSource(const Aws::String &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