AWS SDK for C++  1.9.175
AWS SDK for C++
SearchFilter.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace ElasticBeanstalk
23 {
24 namespace Model
25 {
26 
42  {
43  public:
47 
48  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49  void OutputToStream(Aws::OStream& oStream, const char* location) const;
50 
51 
56  inline const Aws::String& GetAttribute() const{ return m_attribute; }
57 
62  inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
63 
68  inline void SetAttribute(const Aws::String& value) { m_attributeHasBeenSet = true; m_attribute = value; }
69 
74  inline void SetAttribute(Aws::String&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
75 
80  inline void SetAttribute(const char* value) { m_attributeHasBeenSet = true; m_attribute.assign(value); }
81 
86  inline SearchFilter& WithAttribute(const Aws::String& value) { SetAttribute(value); return *this;}
87 
92  inline SearchFilter& WithAttribute(Aws::String&& value) { SetAttribute(std::move(value)); return *this;}
93 
98  inline SearchFilter& WithAttribute(const char* value) { SetAttribute(value); return *this;}
99 
100 
105  inline const Aws::String& GetOperator() const{ return m_operator; }
106 
111  inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
112 
117  inline void SetOperator(const Aws::String& value) { m_operatorHasBeenSet = true; m_operator = value; }
118 
123  inline void SetOperator(Aws::String&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
124 
129  inline void SetOperator(const char* value) { m_operatorHasBeenSet = true; m_operator.assign(value); }
130 
135  inline SearchFilter& WithOperator(const Aws::String& value) { SetOperator(value); return *this;}
136 
141  inline SearchFilter& WithOperator(Aws::String&& value) { SetOperator(std::move(value)); return *this;}
142 
147  inline SearchFilter& WithOperator(const char* value) { SetOperator(value); return *this;}
148 
149 
155  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
156 
162  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
163 
169  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
170 
176  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
177 
183  inline SearchFilter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
184 
190  inline SearchFilter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
191 
197  inline SearchFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
198 
204  inline SearchFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
205 
211  inline SearchFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
212 
213  private:
214 
215  Aws::String m_attribute;
216  bool m_attributeHasBeenSet;
217 
218  Aws::String m_operator;
219  bool m_operatorHasBeenSet;
220 
221  Aws::Vector<Aws::String> m_values;
222  bool m_valuesHasBeenSet;
223  };
224 
225 } // namespace Model
226 } // namespace ElasticBeanstalk
227 } // namespace Aws
Aws::ElasticBeanstalk::Model::SearchFilter::OperatorHasBeenSet
bool OperatorHasBeenSet() const
Definition: SearchFilter.h:111
Aws::ElasticBeanstalk::Model::SearchFilter::GetAttribute
const Aws::String & GetAttribute() const
Definition: SearchFilter.h:56
AWS_ELASTICBEANSTALK_API
#define AWS_ELASTICBEANSTALK_API
Definition: ElasticBeanstalk_EXPORTS.h:28
Aws::ElasticBeanstalk::Model::SearchFilter::SetAttribute
void SetAttribute(const char *value)
Definition: SearchFilter.h:80
Aws::ElasticBeanstalk::Model::SearchFilter::SetAttribute
void SetAttribute(Aws::String &&value)
Definition: SearchFilter.h:74
Aws::ElasticBeanstalk::Model::SearchFilter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: SearchFilter.h:169
Aws::ElasticBeanstalk::Model::SearchFilter::operator=
SearchFilter & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::ElasticBeanstalk::Model::SearchFilter::WithAttribute
SearchFilter & WithAttribute(const char *value)
Definition: SearchFilter.h:98
Aws::ElasticBeanstalk::Model::SearchFilter::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::ElasticBeanstalk::Model::SearchFilter::SearchFilter
SearchFilter(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticBeanstalk::Model::SearchFilter::AttributeHasBeenSet
bool AttributeHasBeenSet() const
Definition: SearchFilter.h:62
AWSStreamFwd.h
AWSVector.h
Aws::ElasticBeanstalk::Model::SearchFilter
Definition: SearchFilter.h:42
Aws::ElasticBeanstalk::Model::SearchFilter::WithValues
SearchFilter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: SearchFilter.h:183
Aws::ElasticBeanstalk::Model::SearchFilter::GetOperator
const Aws::String & GetOperator() const
Definition: SearchFilter.h:105
Aws::ElasticBeanstalk::Model::SearchFilter::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::ElasticBeanstalk::Model::SearchFilter::WithOperator
SearchFilter & WithOperator(const Aws::String &value)
Definition: SearchFilter.h:135
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::ElasticBeanstalk::Model::SearchFilter::SetOperator
void SetOperator(const char *value)
Definition: SearchFilter.h:129
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::ElasticBeanstalk::Model::SearchFilter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: SearchFilter.h:162
Aws::ElasticBeanstalk::Model::SearchFilter::AddValues
SearchFilter & AddValues(const Aws::String &value)
Definition: SearchFilter.h:197
Aws::ElasticBeanstalk::Model::SearchFilter::WithAttribute
SearchFilter & WithAttribute(Aws::String &&value)
Definition: SearchFilter.h:92
AWSString.h
Aws::ElasticBeanstalk::Model::SearchFilter::AddValues
SearchFilter & AddValues(Aws::String &&value)
Definition: SearchFilter.h:204
Aws::ElasticBeanstalk::Model::SearchFilter::WithOperator
SearchFilter & WithOperator(Aws::String &&value)
Definition: SearchFilter.h:141
Aws::ElasticBeanstalk::Model::SearchFilter::WithAttribute
SearchFilter & WithAttribute(const Aws::String &value)
Definition: SearchFilter.h:86
ElasticBeanstalk_EXPORTS.h
Aws::ElasticBeanstalk::Model::SearchFilter::SetOperator
void SetOperator(const Aws::String &value)
Definition: SearchFilter.h:117
Aws::ElasticBeanstalk::Model::SearchFilter::WithValues
SearchFilter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: SearchFilter.h:190
Aws::ElasticBeanstalk::Model::SearchFilter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: SearchFilter.h:155
Aws::ElasticBeanstalk::Model::SearchFilter::AddValues
SearchFilter & AddValues(const char *value)
Definition: SearchFilter.h:211
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticBeanstalk::Model::SearchFilter::WithOperator
SearchFilter & WithOperator(const char *value)
Definition: SearchFilter.h:147
Aws::ElasticBeanstalk::Model::SearchFilter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: SearchFilter.h:176
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::ElasticBeanstalk::Model::SearchFilter::SetAttribute
void SetAttribute(const Aws::String &value)
Definition: SearchFilter.h:68
Aws::ElasticBeanstalk::Model::SearchFilter::SetOperator
void SetOperator(Aws::String &&value)
Definition: SearchFilter.h:123
Aws::ElasticBeanstalk::Model::SearchFilter::SearchFilter
SearchFilter()