AWS SDK for C++  1.8.95
AWS SDK for C++
Filter.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ApplicationDiscoveryService
23 {
24 namespace Model
25 {
26 
37  {
38  public:
39  Filter();
41  Filter& operator=(Aws::Utils::Json::JsonView jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
44 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
58  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 
63  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 
68  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 
73  inline Filter& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
78  inline Filter& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 
83  inline Filter& WithName(const char* value) { SetName(value); return *this;}
84 
85 
91  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
92 
98  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
99 
105  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
106 
112  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
113 
119  inline Filter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
120 
126  inline Filter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
127 
133  inline Filter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
134 
140  inline Filter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
141 
147  inline Filter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
148 
149 
159  inline const Aws::String& GetCondition() const{ return m_condition; }
160 
170  inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
171 
181  inline void SetCondition(const Aws::String& value) { m_conditionHasBeenSet = true; m_condition = value; }
182 
192  inline void SetCondition(Aws::String&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
193 
203  inline void SetCondition(const char* value) { m_conditionHasBeenSet = true; m_condition.assign(value); }
204 
214  inline Filter& WithCondition(const Aws::String& value) { SetCondition(value); return *this;}
215 
225  inline Filter& WithCondition(Aws::String&& value) { SetCondition(std::move(value)); return *this;}
226 
236  inline Filter& WithCondition(const char* value) { SetCondition(value); return *this;}
237 
238  private:
239 
240  Aws::String m_name;
241  bool m_nameHasBeenSet;
242 
243  Aws::Vector<Aws::String> m_values;
244  bool m_valuesHasBeenSet;
245 
246  Aws::String m_condition;
247  bool m_conditionHasBeenSet;
248  };
249 
250 } // namespace Model
251 } // namespace ApplicationDiscoveryService
252 } // namespace Aws
void SetCondition(const Aws::String &value)
Definition: Filter.h:181
void SetCondition(Aws::String &&value)
Definition: Filter.h:192
void SetName(Aws::String &&value)
Definition: Filter.h:63
#define AWS_APPLICATIONDISCOVERYSERVICE_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Filter & WithName(const char *value)
Definition: Filter.h:83
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:105
Filter & WithCondition(Aws::String &&value)
Definition: Filter.h:225
const Aws::String & GetName() const
Definition: Filter.h:48
Filter & WithName(Aws::String &&value)
Definition: Filter.h:78
Filter & WithCondition(const char *value)
Definition: Filter.h:236
void SetName(const Aws::String &value)
Definition: Filter.h:58
Filter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:126
Filter & WithName(const Aws::String &value)
Definition: Filter.h:73
Filter & AddValues(Aws::String &&value)
Definition: Filter.h:140
const Aws::String & GetCondition() const
Definition: Filter.h:159
Filter & AddValues(const Aws::String &value)
Definition: Filter.h:133
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Filter & AddValues(const char *value)
Definition: Filter.h:147
const Aws::Vector< Aws::String > & GetValues() const
Definition: Filter.h:91
Filter & WithCondition(const Aws::String &value)
Definition: Filter.h:214
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:112
Filter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:119