AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DataQuery.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
30class DataQuery {
31 public:
32 AWS_EC2_API DataQuery() = default;
33 AWS_EC2_API DataQuery(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_EC2_API DataQuery& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template <typename IdT = Aws::String>
49 void SetId(IdT&& value) {
50 m_idHasBeenSet = true;
51 m_id = std::forward<IdT>(value);
52 }
53 template <typename IdT = Aws::String>
54 DataQuery& WithId(IdT&& value) {
55 SetId(std::forward<IdT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetSource() const { return m_source; }
66 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
67 template <typename SourceT = Aws::String>
68 void SetSource(SourceT&& value) {
69 m_sourceHasBeenSet = true;
70 m_source = std::forward<SourceT>(value);
71 }
72 template <typename SourceT = Aws::String>
73 DataQuery& WithSource(SourceT&& value) {
74 SetSource(std::forward<SourceT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetDestination() const { return m_destination; }
85 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
86 template <typename DestinationT = Aws::String>
87 void SetDestination(DestinationT&& value) {
88 m_destinationHasBeenSet = true;
89 m_destination = std::forward<DestinationT>(value);
90 }
91 template <typename DestinationT = Aws::String>
92 DataQuery& WithDestination(DestinationT&& value) {
93 SetDestination(std::forward<DestinationT>(value));
94 return *this;
95 }
97
99
102 inline MetricType GetMetric() const { return m_metric; }
103 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
104 inline void SetMetric(MetricType value) {
105 m_metricHasBeenSet = true;
106 m_metric = value;
107 }
109 SetMetric(value);
110 return *this;
111 }
113
115
121 inline StatisticType GetStatistic() const { return m_statistic; }
122 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
123 inline void SetStatistic(StatisticType value) {
124 m_statisticHasBeenSet = true;
125 m_statistic = value;
126 }
128 SetStatistic(value);
129 return *this;
130 }
132
134
137 inline PeriodType GetPeriod() const { return m_period; }
138 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
139 inline void SetPeriod(PeriodType value) {
140 m_periodHasBeenSet = true;
141 m_period = value;
142 }
144 SetPeriod(value);
145 return *this;
146 }
148 private:
149 Aws::String m_id;
150
151 Aws::String m_source;
152
153 Aws::String m_destination;
154
156
158
160 bool m_idHasBeenSet = false;
161 bool m_sourceHasBeenSet = false;
162 bool m_destinationHasBeenSet = false;
163 bool m_metricHasBeenSet = false;
164 bool m_statisticHasBeenSet = false;
165 bool m_periodHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace EC2
170} // namespace Aws
DataQuery & WithMetric(MetricType value)
Definition DataQuery.h:108
StatisticType GetStatistic() const
Definition DataQuery.h:121
AWS_EC2_API DataQuery & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DataQuery & WithStatistic(StatisticType value)
Definition DataQuery.h:127
bool IdHasBeenSet() const
Definition DataQuery.h:47
DataQuery & WithDestination(DestinationT &&value)
Definition DataQuery.h:92
bool SourceHasBeenSet() const
Definition DataQuery.h:66
PeriodType GetPeriod() const
Definition DataQuery.h:137
AWS_EC2_API DataQuery()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool MetricHasBeenSet() const
Definition DataQuery.h:103
void SetSource(SourceT &&value)
Definition DataQuery.h:68
void SetMetric(MetricType value)
Definition DataQuery.h:104
void SetStatistic(StatisticType value)
Definition DataQuery.h:123
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetSource() const
Definition DataQuery.h:65
void SetDestination(DestinationT &&value)
Definition DataQuery.h:87
DataQuery & WithId(IdT &&value)
Definition DataQuery.h:54
void SetId(IdT &&value)
Definition DataQuery.h:49
bool PeriodHasBeenSet() const
Definition DataQuery.h:138
bool StatisticHasBeenSet() const
Definition DataQuery.h:122
AWS_EC2_API DataQuery(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetId() const
Definition DataQuery.h:46
void SetPeriod(PeriodType value)
Definition DataQuery.h:139
MetricType GetMetric() const
Definition DataQuery.h:102
const Aws::String & GetDestination() const
Definition DataQuery.h:84
DataQuery & WithSource(SourceT &&value)
Definition DataQuery.h:73
bool DestinationHasBeenSet() const
Definition DataQuery.h:85
DataQuery & WithPeriod(PeriodType value)
Definition DataQuery.h:143
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream