AWS SDK for C++  1.9.104
AWS SDK for C++
ServiceFilter.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 
47  inline const ServiceFilterName& GetName() const{ return m_name; }
48 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
57  inline void SetName(const ServiceFilterName& value) { m_nameHasBeenSet = true; m_name = value; }
58 
62  inline void SetName(ServiceFilterName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 
67  inline ServiceFilter& WithName(const ServiceFilterName& value) { SetName(value); return *this;}
68 
72  inline ServiceFilter& WithName(ServiceFilterName&& value) { SetName(std::move(value)); return *this;}
73 
74 
79  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
80 
85  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
86 
91  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
92 
97  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
98 
103  inline ServiceFilter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
104 
109  inline ServiceFilter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
110 
115  inline ServiceFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
116 
121  inline ServiceFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
122 
127  inline ServiceFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
128 
129 
141  inline const FilterCondition& GetCondition() const{ return m_condition; }
142 
154  inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
155 
167  inline void SetCondition(const FilterCondition& value) { m_conditionHasBeenSet = true; m_condition = value; }
168 
180  inline void SetCondition(FilterCondition&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
181 
193  inline ServiceFilter& WithCondition(const FilterCondition& value) { SetCondition(value); return *this;}
194 
206  inline ServiceFilter& WithCondition(FilterCondition&& value) { SetCondition(std::move(value)); return *this;}
207 
208  private:
209 
210  ServiceFilterName m_name;
211  bool m_nameHasBeenSet;
212 
213  Aws::Vector<Aws::String> m_values;
214  bool m_valuesHasBeenSet;
215 
216  FilterCondition m_condition;
217  bool m_conditionHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace ServiceDiscovery
222 } // namespace Aws
Aws::ServiceDiscovery::Model::ServiceFilter::GetCondition
const FilterCondition & GetCondition() const
Definition: ServiceFilter.h:141
Aws::ServiceDiscovery::Model::ServiceFilter::operator=
ServiceFilter & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::ServiceFilter::ServiceFilter
ServiceFilter()
Aws::ServiceDiscovery::Model::ServiceFilter::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ServiceFilter.h:52
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::ServiceFilter::SetCondition
void SetCondition(const FilterCondition &value)
Definition: ServiceFilter.h:167
Aws::ServiceDiscovery::Model::ServiceFilter::WithValues
ServiceFilter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: ServiceFilter.h:109
Aws::ServiceDiscovery::Model::ServiceFilter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceDiscovery::Model::ServiceFilter::WithName
ServiceFilter & WithName(ServiceFilterName &&value)
Definition: ServiceFilter.h:72
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
FilterCondition.h
AWSVector.h
Aws::ServiceDiscovery::Model::ServiceFilter::ServiceFilter
ServiceFilter(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::ServiceFilter::AddValues
ServiceFilter & AddValues(const char *value)
Definition: ServiceFilter.h:127
Aws::ServiceDiscovery::Model::ServiceFilter::SetName
void SetName(ServiceFilterName &&value)
Definition: ServiceFilter.h:62
ServiceFilterName.h
Aws::ServiceDiscovery::Model::ServiceFilterName
ServiceFilterName
Definition: ServiceFilterName.h:17
Aws::ServiceDiscovery::Model::ServiceFilter::SetCondition
void SetCondition(FilterCondition &&value)
Definition: ServiceFilter.h:180
Aws::ServiceDiscovery::Model::ServiceFilter::WithName
ServiceFilter & WithName(const ServiceFilterName &value)
Definition: ServiceFilter.h:67
Aws::ServiceDiscovery::Model::ServiceFilter::WithCondition
ServiceFilter & WithCondition(FilterCondition &&value)
Definition: ServiceFilter.h:206
Aws::ServiceDiscovery::Model::ServiceFilter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: ServiceFilter.h:97
Aws::ServiceDiscovery::Model::ServiceFilter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: ServiceFilter.h:79
Aws::ServiceDiscovery::Model::ServiceFilter::ConditionHasBeenSet
bool ConditionHasBeenSet() const
Definition: ServiceFilter.h:154
Aws::ServiceDiscovery::Model::FilterCondition
FilterCondition
Definition: FilterCondition.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::ServiceFilter::WithCondition
ServiceFilter & WithCondition(const FilterCondition &value)
Definition: ServiceFilter.h:193
Aws::ServiceDiscovery::Model::ServiceFilter::AddValues
ServiceFilter & AddValues(Aws::String &&value)
Definition: ServiceFilter.h:121
Aws::ServiceDiscovery::Model::ServiceFilter::GetName
const ServiceFilterName & GetName() const
Definition: ServiceFilter.h:47
Aws::ServiceDiscovery::Model::ServiceFilter::AddValues
ServiceFilter & AddValues(const Aws::String &value)
Definition: ServiceFilter.h:115
Aws::ServiceDiscovery::Model::ServiceFilter::SetName
void SetName(const ServiceFilterName &value)
Definition: ServiceFilter.h:57
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::ServiceFilter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: ServiceFilter.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::ServiceFilter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: ServiceFilter.h:91
Aws::ServiceDiscovery::Model::ServiceFilter
Definition: ServiceFilter.h:36
Aws::ServiceDiscovery::Model::ServiceFilter::WithValues
ServiceFilter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: ServiceFilter.h:103