AWS SDK for C++  1.9.105
AWS SDK for C++
OperationFilter.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace ServiceDiscovery
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
54  inline const OperationFilterName& GetName() const{ return m_name; }
55 
66  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 
78  inline void SetName(const OperationFilterName& value) { m_nameHasBeenSet = true; m_name = value; }
79 
90  inline void SetName(OperationFilterName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
91 
102  inline OperationFilter& WithName(const OperationFilterName& value) { SetName(value); return *this;}
103 
114  inline OperationFilter& WithName(OperationFilterName&& value) { SetName(std::move(value)); return *this;}
115 
116 
130  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
131 
145  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
146 
160  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
161 
175  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
176 
190  inline OperationFilter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
191 
205  inline OperationFilter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
206 
220  inline OperationFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
221 
235  inline OperationFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
236 
250  inline OperationFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
251 
252 
269  inline const FilterCondition& GetCondition() const{ return m_condition; }
270 
287  inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
288 
305  inline void SetCondition(const FilterCondition& value) { m_conditionHasBeenSet = true; m_condition = value; }
306 
323  inline void SetCondition(FilterCondition&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
324 
341  inline OperationFilter& WithCondition(const FilterCondition& value) { SetCondition(value); return *this;}
342 
359  inline OperationFilter& WithCondition(FilterCondition&& value) { SetCondition(std::move(value)); return *this;}
360 
361  private:
362 
363  OperationFilterName m_name;
364  bool m_nameHasBeenSet;
365 
366  Aws::Vector<Aws::String> m_values;
367  bool m_valuesHasBeenSet;
368 
369  FilterCondition m_condition;
370  bool m_conditionHasBeenSet;
371  };
372 
373 } // namespace Model
374 } // namespace ServiceDiscovery
375 } // namespace Aws
OperationFilterName.h
Aws::ServiceDiscovery::Model::OperationFilter::WithCondition
OperationFilter & WithCondition(const FilterCondition &value)
Definition: OperationFilter.h:341
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::OperationFilter::SetName
void SetName(OperationFilterName &&value)
Definition: OperationFilter.h:90
Aws::ServiceDiscovery::Model::OperationFilter::SetCondition
void SetCondition(const FilterCondition &value)
Definition: OperationFilter.h:305
Aws::ServiceDiscovery::Model::OperationFilter::NameHasBeenSet
bool NameHasBeenSet() const
Definition: OperationFilter.h:66
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::OperationFilter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: OperationFilter.h:175
Aws::ServiceDiscovery::Model::OperationFilter::GetName
const OperationFilterName & GetName() const
Definition: OperationFilter.h:54
Aws::ServiceDiscovery::Model::OperationFilter::WithName
OperationFilter & WithName(OperationFilterName &&value)
Definition: OperationFilter.h:114
Aws::ServiceDiscovery::Model::OperationFilter::GetCondition
const FilterCondition & GetCondition() const
Definition: OperationFilter.h:269
Aws::ServiceDiscovery::Model::OperationFilter::AddValues
OperationFilter & AddValues(const Aws::String &value)
Definition: OperationFilter.h:220
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ServiceDiscovery::Model::OperationFilter::OperationFilter
OperationFilter(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::OperationFilter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: OperationFilter.h:130
Aws::ServiceDiscovery::Model::OperationFilter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: OperationFilter.h:160
FilterCondition.h
AWSVector.h
Aws::ServiceDiscovery::Model::OperationFilter::WithName
OperationFilter & WithName(const OperationFilterName &value)
Definition: OperationFilter.h:102
Aws::ServiceDiscovery::Model::OperationFilter::AddValues
OperationFilter & AddValues(Aws::String &&value)
Definition: OperationFilter.h:235
Aws::ServiceDiscovery::Model::OperationFilter::WithValues
OperationFilter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: OperationFilter.h:190
Aws::ServiceDiscovery::Model::OperationFilterName
OperationFilterName
Definition: OperationFilterName.h:17
Aws::ServiceDiscovery::Model::OperationFilter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: OperationFilter.h:145
Aws::ServiceDiscovery::Model::OperationFilter::ConditionHasBeenSet
bool ConditionHasBeenSet() const
Definition: OperationFilter.h:287
Aws::ServiceDiscovery::Model::OperationFilter
Definition: OperationFilter.h:36
Aws::ServiceDiscovery::Model::OperationFilter::OperationFilter
OperationFilter()
Aws::ServiceDiscovery::Model::OperationFilter::WithValues
OperationFilter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: OperationFilter.h:205
Aws::ServiceDiscovery::Model::FilterCondition
FilterCondition
Definition: FilterCondition.h:17
Aws::ServiceDiscovery::Model::OperationFilter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceDiscovery::Model::OperationFilter::AddValues
OperationFilter & AddValues(const char *value)
Definition: OperationFilter.h:250
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::OperationFilter::operator=
OperationFilter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::OperationFilter::SetCondition
void SetCondition(FilterCondition &&value)
Definition: OperationFilter.h:323
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::OperationFilter::SetName
void SetName(const OperationFilterName &value)
Definition: OperationFilter.h:78
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::OperationFilter::WithCondition
OperationFilter & WithCondition(FilterCondition &&value)
Definition: OperationFilter.h:359