AWS SDK for C++  1.8.186
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();
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
Aws::ApplicationDiscoveryService::Model::Filter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ApplicationDiscoveryService::Model::Filter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:112
Aws::ApplicationDiscoveryService::Model::Filter::SetCondition
void SetCondition(const Aws::String &value)
Definition: Filter.h:181
Aws::ApplicationDiscoveryService::Model::Filter::AddValues
Filter & AddValues(const char *value)
Definition: Filter.h:147
Aws::ApplicationDiscoveryService::Model::Filter::SetName
void SetName(const char *value)
Definition: Filter.h:68
Aws::ApplicationDiscoveryService::Model::Filter::WithName
Filter & WithName(const Aws::String &value)
Definition: Filter.h:73
ApplicationDiscoveryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::ApplicationDiscoveryService::Model::Filter::AddValues
Filter & AddValues(Aws::String &&value)
Definition: Filter.h:140
Aws::ApplicationDiscoveryService::Model::Filter::SetName
void SetName(Aws::String &&value)
Definition: Filter.h:63
Aws::ApplicationDiscoveryService::Model::Filter
Definition: Filter.h:37
Aws::ApplicationDiscoveryService::Model::Filter::SetName
void SetName(const Aws::String &value)
Definition: Filter.h:58
Aws::ApplicationDiscoveryService::Model::Filter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: Filter.h:98
Aws::ApplicationDiscoveryService::Model::Filter::WithValues
Filter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:126
Aws::ApplicationDiscoveryService::Model::Filter::Filter
Filter(Aws::Utils::Json::JsonView jsonValue)
Aws::ApplicationDiscoveryService::Model::Filter::GetCondition
const Aws::String & GetCondition() const
Definition: Filter.h:159
Aws::ApplicationDiscoveryService::Model::Filter::WithCondition
Filter & WithCondition(const Aws::String &value)
Definition: Filter.h:214
Aws::ApplicationDiscoveryService::Model::Filter::WithCondition
Filter & WithCondition(const char *value)
Definition: Filter.h:236
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::ApplicationDiscoveryService::Model::Filter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: Filter.h:91
AWSString.h
Aws::ApplicationDiscoveryService::Model::Filter::operator=
Filter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::ApplicationDiscoveryService::Model::Filter::WithName
Filter & WithName(const char *value)
Definition: Filter.h:83
Aws::ApplicationDiscoveryService::Model::Filter::SetCondition
void SetCondition(const char *value)
Definition: Filter.h:203
Aws::ApplicationDiscoveryService::Model::Filter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:105
Aws::ApplicationDiscoveryService::Model::Filter::Filter
Filter()
Aws::ApplicationDiscoveryService::Model::Filter::SetCondition
void SetCondition(Aws::String &&value)
Definition: Filter.h:192
Aws::ApplicationDiscoveryService::Model::Filter::WithName
Filter & WithName(Aws::String &&value)
Definition: Filter.h:78
Aws
Definition: AccessManagementClient.h:15
Aws::ApplicationDiscoveryService::Model::Filter::WithCondition
Filter & WithCondition(Aws::String &&value)
Definition: Filter.h:225
Aws::ApplicationDiscoveryService::Model::Filter::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Filter.h:53
Aws::ApplicationDiscoveryService::Model::Filter::AddValues
Filter & AddValues(const Aws::String &value)
Definition: Filter.h:133
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ApplicationDiscoveryService::Model::Filter::ConditionHasBeenSet
bool ConditionHasBeenSet() const
Definition: Filter.h:170
Aws::ApplicationDiscoveryService::Model::Filter::WithValues
Filter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:119
AWS_APPLICATIONDISCOVERYSERVICE_API
#define AWS_APPLICATIONDISCOVERYSERVICE_API
Definition: ApplicationDiscoveryService_EXPORTS.h:28
Aws::ApplicationDiscoveryService::Model::Filter::GetName
const Aws::String & GetName() const
Definition: Filter.h:48