AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename IdT = Aws::String>
55 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
56 template<typename IdT = Aws::String>
57 DataQuery& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
69 template<typename SourceT = Aws::String>
70 DataQuery& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
72
74
78 inline const Aws::String& GetDestination() const { return m_destination; }
79 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
80 template<typename DestinationT = Aws::String>
81 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
82 template<typename DestinationT = Aws::String>
83 DataQuery& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
85
87
90 inline MetricType GetMetric() const { return m_metric; }
91 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
92 inline void SetMetric(MetricType value) { m_metricHasBeenSet = true; m_metric = value; }
93 inline DataQuery& WithMetric(MetricType value) { SetMetric(value); return *this;}
95
97
103 inline StatisticType GetStatistic() const { return m_statistic; }
104 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
105 inline void SetStatistic(StatisticType value) { m_statisticHasBeenSet = true; m_statistic = value; }
106 inline DataQuery& WithStatistic(StatisticType value) { SetStatistic(value); return *this;}
108
110
113 inline PeriodType GetPeriod() const { return m_period; }
114 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
115 inline void SetPeriod(PeriodType value) { m_periodHasBeenSet = true; m_period = value; }
116 inline DataQuery& WithPeriod(PeriodType value) { SetPeriod(value); return *this;}
118 private:
119
120 Aws::String m_id;
121 bool m_idHasBeenSet = false;
122
123 Aws::String m_source;
124 bool m_sourceHasBeenSet = false;
125
126 Aws::String m_destination;
127 bool m_destinationHasBeenSet = false;
128
130 bool m_metricHasBeenSet = false;
131
133 bool m_statisticHasBeenSet = false;
134
136 bool m_periodHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace EC2
141} // namespace Aws
DataQuery & WithMetric(MetricType value)
Definition DataQuery.h:93
StatisticType GetStatistic() const
Definition DataQuery.h:103
AWS_EC2_API DataQuery & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DataQuery & WithStatistic(StatisticType value)
Definition DataQuery.h:106
bool IdHasBeenSet() const
Definition DataQuery.h:53
DataQuery & WithDestination(DestinationT &&value)
Definition DataQuery.h:83
bool SourceHasBeenSet() const
Definition DataQuery.h:66
PeriodType GetPeriod() const
Definition DataQuery.h:113
AWS_EC2_API DataQuery()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool MetricHasBeenSet() const
Definition DataQuery.h:91
void SetSource(SourceT &&value)
Definition DataQuery.h:68
void SetMetric(MetricType value)
Definition DataQuery.h:92
void SetStatistic(StatisticType value)
Definition DataQuery.h:105
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:81
DataQuery & WithId(IdT &&value)
Definition DataQuery.h:57
void SetId(IdT &&value)
Definition DataQuery.h:55
bool PeriodHasBeenSet() const
Definition DataQuery.h:114
bool StatisticHasBeenSet() const
Definition DataQuery.h:104
AWS_EC2_API DataQuery(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetId() const
Definition DataQuery.h:52
void SetPeriod(PeriodType value)
Definition DataQuery.h:115
MetricType GetMetric() const
Definition DataQuery.h:90
const Aws::String & GetDestination() const
Definition DataQuery.h:78
DataQuery & WithSource(SourceT &&value)
Definition DataQuery.h:70
bool DestinationHasBeenSet() const
Definition DataQuery.h:79
DataQuery & WithPeriod(PeriodType value)
Definition DataQuery.h:116
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream