AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataQuery.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
35 {
36 public:
37 AWS_EC2_API DataQuery();
38 AWS_EC2_API DataQuery(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_EC2_API DataQuery& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
52 inline const Aws::String& GetId() const{ return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
56 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
57 inline DataQuery& WithId(const Aws::String& value) { SetId(value); return *this;}
58 inline DataQuery& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
59 inline DataQuery& WithId(const char* value) { SetId(value); return *this;}
61
63
67 inline const Aws::String& GetSource() const{ return m_source; }
68 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
69 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
70 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
71 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
72 inline DataQuery& WithSource(const Aws::String& value) { SetSource(value); return *this;}
73 inline DataQuery& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
74 inline DataQuery& WithSource(const char* value) { SetSource(value); return *this;}
76
78
82 inline const Aws::String& GetDestination() const{ return m_destination; }
83 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
84 inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
85 inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
86 inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
87 inline DataQuery& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
88 inline DataQuery& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
89 inline DataQuery& WithDestination(const char* value) { SetDestination(value); return *this;}
91
93
96 inline const MetricType& GetMetric() const{ return m_metric; }
97 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
98 inline void SetMetric(const MetricType& value) { m_metricHasBeenSet = true; m_metric = value; }
99 inline void SetMetric(MetricType&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
100 inline DataQuery& WithMetric(const MetricType& value) { SetMetric(value); return *this;}
101 inline DataQuery& WithMetric(MetricType&& value) { SetMetric(std::move(value)); return *this;}
103
105
111 inline const StatisticType& GetStatistic() const{ return m_statistic; }
112 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
113 inline void SetStatistic(const StatisticType& value) { m_statisticHasBeenSet = true; m_statistic = value; }
114 inline void SetStatistic(StatisticType&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
115 inline DataQuery& WithStatistic(const StatisticType& value) { SetStatistic(value); return *this;}
116 inline DataQuery& WithStatistic(StatisticType&& value) { SetStatistic(std::move(value)); return *this;}
118
120
123 inline const PeriodType& GetPeriod() const{ return m_period; }
124 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
125 inline void SetPeriod(const PeriodType& value) { m_periodHasBeenSet = true; m_period = value; }
126 inline void SetPeriod(PeriodType&& value) { m_periodHasBeenSet = true; m_period = std::move(value); }
127 inline DataQuery& WithPeriod(const PeriodType& value) { SetPeriod(value); return *this;}
128 inline DataQuery& WithPeriod(PeriodType&& value) { SetPeriod(std::move(value)); return *this;}
130 private:
131
132 Aws::String m_id;
133 bool m_idHasBeenSet = false;
134
135 Aws::String m_source;
136 bool m_sourceHasBeenSet = false;
137
138 Aws::String m_destination;
139 bool m_destinationHasBeenSet = false;
140
141 MetricType m_metric;
142 bool m_metricHasBeenSet = false;
143
144 StatisticType m_statistic;
145 bool m_statisticHasBeenSet = false;
146
147 PeriodType m_period;
148 bool m_periodHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace EC2
153} // namespace Aws
const PeriodType & GetPeriod() const
Definition DataQuery.h:123
AWS_EC2_API DataQuery & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDestination(Aws::String &&value)
Definition DataQuery.h:85
void SetSource(const Aws::String &value)
Definition DataQuery.h:69
DataQuery & WithMetric(const MetricType &value)
Definition DataQuery.h:100
const StatisticType & GetStatistic() const
Definition DataQuery.h:111
bool IdHasBeenSet() const
Definition DataQuery.h:53
bool SourceHasBeenSet() const
Definition DataQuery.h:68
DataQuery & WithDestination(const char *value)
Definition DataQuery.h:89
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool MetricHasBeenSet() const
Definition DataQuery.h:97
void SetMetric(const MetricType &value)
Definition DataQuery.h:98
DataQuery & WithMetric(MetricType &&value)
Definition DataQuery.h:101
void SetId(Aws::String &&value)
Definition DataQuery.h:55
void SetDestination(const char *value)
Definition DataQuery.h:86
void SetId(const Aws::String &value)
Definition DataQuery.h:54
DataQuery & WithId(const Aws::String &value)
Definition DataQuery.h:57
void SetMetric(MetricType &&value)
Definition DataQuery.h:99
void SetStatistic(const StatisticType &value)
Definition DataQuery.h:113
void SetSource(const char *value)
Definition DataQuery.h:71
DataQuery & WithPeriod(const PeriodType &value)
Definition DataQuery.h:127
DataQuery & WithSource(const char *value)
Definition DataQuery.h:74
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:67
DataQuery & WithSource(const Aws::String &value)
Definition DataQuery.h:72
const MetricType & GetMetric() const
Definition DataQuery.h:96
void SetPeriod(PeriodType &&value)
Definition DataQuery.h:126
void SetPeriod(const PeriodType &value)
Definition DataQuery.h:125
bool PeriodHasBeenSet() const
Definition DataQuery.h:124
void SetSource(Aws::String &&value)
Definition DataQuery.h:70
bool StatisticHasBeenSet() const
Definition DataQuery.h:112
AWS_EC2_API DataQuery(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetId() const
Definition DataQuery.h:52
DataQuery & WithStatistic(StatisticType &&value)
Definition DataQuery.h:116
DataQuery & WithDestination(Aws::String &&value)
Definition DataQuery.h:88
void SetStatistic(StatisticType &&value)
Definition DataQuery.h:114
DataQuery & WithStatistic(const StatisticType &value)
Definition DataQuery.h:115
DataQuery & WithDestination(const Aws::String &value)
Definition DataQuery.h:87
const Aws::String & GetDestination() const
Definition DataQuery.h:82
void SetId(const char *value)
Definition DataQuery.h:56
DataQuery & WithId(const char *value)
Definition DataQuery.h:59
void SetDestination(const Aws::String &value)
Definition DataQuery.h:84
DataQuery & WithSource(Aws::String &&value)
Definition DataQuery.h:73
DataQuery & WithId(Aws::String &&value)
Definition DataQuery.h:58
DataQuery & WithPeriod(PeriodType &&value)
Definition DataQuery.h:128
bool DestinationHasBeenSet() const
Definition DataQuery.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream