AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename IdT = Aws::String>
54 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
55 template<typename IdT = Aws::String>
56 DataResponse& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
68 template<typename SourceT = Aws::String>
69 DataResponse& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
71
73
77 inline const Aws::String& GetDestination() const { return m_destination; }
78 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
79 template<typename DestinationT = Aws::String>
80 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
81 template<typename DestinationT = Aws::String>
82 DataResponse& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
84
86
89 inline MetricType GetMetric() const { return m_metric; }
90 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
91 inline void SetMetric(MetricType value) { m_metricHasBeenSet = true; m_metric = value; }
92 inline DataResponse& WithMetric(MetricType value) { SetMetric(value); return *this;}
94
96
99 inline StatisticType GetStatistic() const { return m_statistic; }
100 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
101 inline void SetStatistic(StatisticType value) { m_statisticHasBeenSet = true; m_statistic = value; }
102 inline DataResponse& WithStatistic(StatisticType value) { SetStatistic(value); return *this;}
104
106
109 inline PeriodType GetPeriod() const { return m_period; }
110 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
111 inline void SetPeriod(PeriodType value) { m_periodHasBeenSet = true; m_period = value; }
112 inline DataResponse& WithPeriod(PeriodType value) { SetPeriod(value); return *this;}
114
116
119 inline const Aws::Vector<MetricPoint>& GetMetricPoints() const { return m_metricPoints; }
120 inline bool MetricPointsHasBeenSet() const { return m_metricPointsHasBeenSet; }
121 template<typename MetricPointsT = Aws::Vector<MetricPoint>>
122 void SetMetricPoints(MetricPointsT&& value) { m_metricPointsHasBeenSet = true; m_metricPoints = std::forward<MetricPointsT>(value); }
123 template<typename MetricPointsT = Aws::Vector<MetricPoint>>
124 DataResponse& WithMetricPoints(MetricPointsT&& value) { SetMetricPoints(std::forward<MetricPointsT>(value)); return *this;}
125 template<typename MetricPointsT = MetricPoint>
126 DataResponse& AddMetricPoints(MetricPointsT&& value) { m_metricPointsHasBeenSet = true; m_metricPoints.emplace_back(std::forward<MetricPointsT>(value)); return *this; }
128 private:
129
130 Aws::String m_id;
131 bool m_idHasBeenSet = false;
132
133 Aws::String m_source;
134 bool m_sourceHasBeenSet = false;
135
136 Aws::String m_destination;
137 bool m_destinationHasBeenSet = false;
138
140 bool m_metricHasBeenSet = false;
141
143 bool m_statisticHasBeenSet = false;
144
146 bool m_periodHasBeenSet = false;
147
148 Aws::Vector<MetricPoint> m_metricPoints;
149 bool m_metricPointsHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace EC2
154} // 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