AWS SDK for C++  1.9.110
AWS SDK for C++
NodeConfigurationOptionsFilter.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace Redshift
25 {
26 namespace Model
27 {
28 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const NodeConfigurationOptionsFilterName& GetName() const{ return m_name; }
50 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
59  inline void SetName(const NodeConfigurationOptionsFilterName& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(NodeConfigurationOptionsFilterName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 
69  inline NodeConfigurationOptionsFilter& WithName(const NodeConfigurationOptionsFilterName& value) { SetName(value); return *this;}
70 
74  inline NodeConfigurationOptionsFilter& WithName(NodeConfigurationOptionsFilterName&& value) { SetName(std::move(value)); return *this;}
75 
76 
83  inline const OperatorType& GetOperator() const{ return m_operator; }
84 
91  inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
92 
99  inline void SetOperator(const OperatorType& value) { m_operatorHasBeenSet = true; m_operator = value; }
100 
107  inline void SetOperator(OperatorType&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
108 
115  inline NodeConfigurationOptionsFilter& WithOperator(const OperatorType& value) { SetOperator(value); return *this;}
116 
123  inline NodeConfigurationOptionsFilter& WithOperator(OperatorType&& value) { SetOperator(std::move(value)); return *this;}
124 
125 
132  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
133 
140  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
141 
148  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
149 
156  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
157 
164  inline NodeConfigurationOptionsFilter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
165 
172  inline NodeConfigurationOptionsFilter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
173 
180  inline NodeConfigurationOptionsFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
181 
188  inline NodeConfigurationOptionsFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
189 
196  inline NodeConfigurationOptionsFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
197 
198  private:
199 
201  bool m_nameHasBeenSet;
202 
203  OperatorType m_operator;
204  bool m_operatorHasBeenSet;
205 
206  Aws::Vector<Aws::String> m_values;
207  bool m_valuesHasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace Redshift
212 } // namespace Aws
Aws::Redshift::Model::OperatorType
OperatorType
Definition: OperatorType.h:17
Aws::Redshift::Model::NodeConfigurationOptionsFilter::WithValues
NodeConfigurationOptionsFilter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: NodeConfigurationOptionsFilter.h:172
Aws::Redshift::Model::NodeConfigurationOptionsFilter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: NodeConfigurationOptionsFilter.h:156
Aws::Redshift::Model::NodeConfigurationOptionsFilter
Definition: NodeConfigurationOptionsFilter.h:36
Aws::Redshift::Model::NodeConfigurationOptionsFilter::SetOperator
void SetOperator(const OperatorType &value)
Definition: NodeConfigurationOptionsFilter.h:99
Aws::Redshift::Model::NodeConfigurationOptionsFilter::AddValues
NodeConfigurationOptionsFilter & AddValues(const char *value)
Definition: NodeConfigurationOptionsFilter.h:196
Aws::Redshift::Model::NodeConfigurationOptionsFilter::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::NodeConfigurationOptionsFilter::GetName
const NodeConfigurationOptionsFilterName & GetName() const
Definition: NodeConfigurationOptionsFilter.h:49
Aws::Redshift::Model::NodeConfigurationOptionsFilter::AddValues
NodeConfigurationOptionsFilter & AddValues(Aws::String &&value)
Definition: NodeConfigurationOptionsFilter.h:188
Aws::Redshift::Model::NodeConfigurationOptionsFilter::WithValues
NodeConfigurationOptionsFilter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: NodeConfigurationOptionsFilter.h:164
Aws::Redshift::Model::NodeConfigurationOptionsFilter::SetOperator
void SetOperator(OperatorType &&value)
Definition: NodeConfigurationOptionsFilter.h:107
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::NodeConfigurationOptionsFilter::WithOperator
NodeConfigurationOptionsFilter & WithOperator(OperatorType &&value)
Definition: NodeConfigurationOptionsFilter.h:123
AWSStreamFwd.h
Aws::Redshift::Model::NodeConfigurationOptionsFilter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: NodeConfigurationOptionsFilter.h:132
AWSVector.h
Aws::Redshift::Model::NodeConfigurationOptionsFilter::NodeConfigurationOptionsFilter
NodeConfigurationOptionsFilter()
NodeConfigurationOptionsFilterName.h
Aws::Redshift::Model::NodeConfigurationOptionsFilter::NameHasBeenSet
bool NameHasBeenSet() const
Definition: NodeConfigurationOptionsFilter.h:54
Aws::Redshift::Model::NodeConfigurationOptionsFilter::operator=
NodeConfigurationOptionsFilter & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::NodeConfigurationOptionsFilter::GetOperator
const OperatorType & GetOperator() const
Definition: NodeConfigurationOptionsFilter.h:83
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::NodeConfigurationOptionsFilter::AddValues
NodeConfigurationOptionsFilter & AddValues(const Aws::String &value)
Definition: NodeConfigurationOptionsFilter.h:180
Aws::Redshift::Model::NodeConfigurationOptionsFilterName
NodeConfigurationOptionsFilterName
Definition: NodeConfigurationOptionsFilterName.h:17
Aws::Redshift::Model::NodeConfigurationOptionsFilter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: NodeConfigurationOptionsFilter.h:140
OperatorType.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::NodeConfigurationOptionsFilter::SetName
void SetName(NodeConfigurationOptionsFilterName &&value)
Definition: NodeConfigurationOptionsFilter.h:64
Aws::Redshift::Model::NodeConfigurationOptionsFilter::NodeConfigurationOptionsFilter
NodeConfigurationOptionsFilter(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::NodeConfigurationOptionsFilter::OperatorHasBeenSet
bool OperatorHasBeenSet() const
Definition: NodeConfigurationOptionsFilter.h:91
Aws::Redshift::Model::NodeConfigurationOptionsFilter::SetName
void SetName(const NodeConfigurationOptionsFilterName &value)
Definition: NodeConfigurationOptionsFilter.h:59
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::NodeConfigurationOptionsFilter::WithName
NodeConfigurationOptionsFilter & WithName(NodeConfigurationOptionsFilterName &&value)
Definition: NodeConfigurationOptionsFilter.h:74
AWSString.h
Aws::Redshift::Model::NodeConfigurationOptionsFilter::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::NodeConfigurationOptionsFilter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: NodeConfigurationOptionsFilter.h:148
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::NodeConfigurationOptionsFilter::WithOperator
NodeConfigurationOptionsFilter & WithOperator(const OperatorType &value)
Definition: NodeConfigurationOptionsFilter.h:115
Aws::Redshift::Model::NodeConfigurationOptionsFilter::WithName
NodeConfigurationOptionsFilter & WithName(const NodeConfigurationOptionsFilterName &value)
Definition: NodeConfigurationOptionsFilter.h:69