AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DimensionCondition.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Comparison.h>
12#include <aws/ec2/model/FilterByDimension.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
33 public:
34 AWS_EC2_API DimensionCondition() = default;
35 AWS_EC2_API DimensionCondition(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline FilterByDimension GetDimension() const { return m_dimension; }
46 inline bool DimensionHasBeenSet() const { return m_dimensionHasBeenSet; }
47 inline void SetDimension(FilterByDimension value) {
48 m_dimensionHasBeenSet = true;
49 m_dimension = value;
50 }
52 SetDimension(value);
53 return *this;
54 }
56
58
61 inline Comparison GetComparison() const { return m_comparison; }
62 inline bool ComparisonHasBeenSet() const { return m_comparisonHasBeenSet; }
63 inline void SetComparison(Comparison value) {
64 m_comparisonHasBeenSet = true;
65 m_comparison = value;
66 }
68 SetComparison(value);
69 return *this;
70 }
72
74
79 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
80 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
81 template <typename ValuesT = Aws::Vector<Aws::String>>
82 void SetValues(ValuesT&& value) {
83 m_valuesHasBeenSet = true;
84 m_values = std::forward<ValuesT>(value);
85 }
86 template <typename ValuesT = Aws::Vector<Aws::String>>
87 DimensionCondition& WithValues(ValuesT&& value) {
88 SetValues(std::forward<ValuesT>(value));
89 return *this;
90 }
91 template <typename ValuesT = Aws::String>
92 DimensionCondition& AddValues(ValuesT&& value) {
93 m_valuesHasBeenSet = true;
94 m_values.emplace_back(std::forward<ValuesT>(value));
95 return *this;
96 }
98 private:
100
101 Comparison m_comparison{Comparison::NOT_SET};
102
104 bool m_dimensionHasBeenSet = false;
105 bool m_comparisonHasBeenSet = false;
106 bool m_valuesHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace EC2
111} // namespace Aws
DimensionCondition & WithComparison(Comparison value)
AWS_EC2_API DimensionCondition(const Aws::Utils::Xml::XmlNode &xmlNode)
DimensionCondition & AddValues(ValuesT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDimension(FilterByDimension value)
AWS_EC2_API DimensionCondition()=default
FilterByDimension GetDimension() const
DimensionCondition & WithValues(ValuesT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DimensionCondition & WithDimension(FilterByDimension value)
AWS_EC2_API DimensionCondition & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetValues() const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream