AWS SDK for C++  1.9.104
AWS SDK for C++
NamespaceFilter.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 NamespaceFilterName& GetName() const{ return m_name; }
48 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
57  inline void SetName(const NamespaceFilterName& value) { m_nameHasBeenSet = true; m_name = value; }
58 
62  inline void SetName(NamespaceFilterName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 
67  inline NamespaceFilter& WithName(const NamespaceFilterName& value) { SetName(value); return *this;}
68 
72  inline NamespaceFilter& WithName(NamespaceFilterName&& value) { SetName(std::move(value)); return *this;}
73 
74 
81  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
82 
89  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
90 
97  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
98 
105  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
106 
113  inline NamespaceFilter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
114 
121  inline NamespaceFilter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
122 
129  inline NamespaceFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
130 
137  inline NamespaceFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
138 
145  inline NamespaceFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
146 
147 
159  inline const FilterCondition& GetCondition() const{ return m_condition; }
160 
172  inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
173 
185  inline void SetCondition(const FilterCondition& value) { m_conditionHasBeenSet = true; m_condition = value; }
186 
198  inline void SetCondition(FilterCondition&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
199 
211  inline NamespaceFilter& WithCondition(const FilterCondition& value) { SetCondition(value); return *this;}
212 
224  inline NamespaceFilter& WithCondition(FilterCondition&& value) { SetCondition(std::move(value)); return *this;}
225 
226  private:
227 
228  NamespaceFilterName m_name;
229  bool m_nameHasBeenSet;
230 
231  Aws::Vector<Aws::String> m_values;
232  bool m_valuesHasBeenSet;
233 
234  FilterCondition m_condition;
235  bool m_conditionHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace ServiceDiscovery
240 } // namespace Aws
Aws::ServiceDiscovery::Model::NamespaceFilter::SetCondition
void SetCondition(FilterCondition &&value)
Definition: NamespaceFilter.h:198
Aws::ServiceDiscovery::Model::NamespaceFilter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: NamespaceFilter.h:105
Aws::ServiceDiscovery::Model::NamespaceFilter::ConditionHasBeenSet
bool ConditionHasBeenSet() const
Definition: NamespaceFilter.h:172
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::NamespaceFilter
Definition: NamespaceFilter.h:36
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::NamespaceFilter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceDiscovery::Model::NamespaceFilter::WithValues
NamespaceFilter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: NamespaceFilter.h:121
Aws::ServiceDiscovery::Model::NamespaceFilter::WithCondition
NamespaceFilter & WithCondition(const FilterCondition &value)
Definition: NamespaceFilter.h:211
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ServiceDiscovery::Model::NamespaceFilter::SetCondition
void SetCondition(const FilterCondition &value)
Definition: NamespaceFilter.h:185
Aws::ServiceDiscovery::Model::NamespaceFilter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: NamespaceFilter.h:89
FilterCondition.h
AWSVector.h
NamespaceFilterName.h
Aws::ServiceDiscovery::Model::NamespaceFilter::AddValues
NamespaceFilter & AddValues(const Aws::String &value)
Definition: NamespaceFilter.h:129
Aws::ServiceDiscovery::Model::NamespaceFilter::NamespaceFilter
NamespaceFilter(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::NamespaceFilter::NamespaceFilter
NamespaceFilter()
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::NamespaceFilter::AddValues
NamespaceFilter & AddValues(const char *value)
Definition: NamespaceFilter.h:145
Aws::ServiceDiscovery::Model::NamespaceFilter::WithCondition
NamespaceFilter & WithCondition(FilterCondition &&value)
Definition: NamespaceFilter.h:224
Aws::ServiceDiscovery::Model::NamespaceFilter::GetCondition
const FilterCondition & GetCondition() const
Definition: NamespaceFilter.h:159
Aws::ServiceDiscovery::Model::NamespaceFilter::SetName
void SetName(NamespaceFilterName &&value)
Definition: NamespaceFilter.h:62
Aws::ServiceDiscovery::Model::NamespaceFilter::GetName
const NamespaceFilterName & GetName() const
Definition: NamespaceFilter.h:47
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::NamespaceFilter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: NamespaceFilter.h:97
Aws::ServiceDiscovery::Model::NamespaceFilter::operator=
NamespaceFilter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::NamespaceFilter::AddValues
NamespaceFilter & AddValues(Aws::String &&value)
Definition: NamespaceFilter.h:137
Aws::ServiceDiscovery::Model::NamespaceFilter::NameHasBeenSet
bool NameHasBeenSet() const
Definition: NamespaceFilter.h:52
Aws::ServiceDiscovery::Model::NamespaceFilter::WithName
NamespaceFilter & WithName(NamespaceFilterName &&value)
Definition: NamespaceFilter.h:72
Aws::ServiceDiscovery::Model::NamespaceFilter::SetName
void SetName(const NamespaceFilterName &value)
Definition: NamespaceFilter.h:57
Aws::ServiceDiscovery::Model::NamespaceFilter::WithValues
NamespaceFilter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: NamespaceFilter.h:113
Aws::ServiceDiscovery::Model::NamespaceFilterName
NamespaceFilterName
Definition: NamespaceFilterName.h:17
Aws::ServiceDiscovery::Model::NamespaceFilter::WithName
NamespaceFilter & WithName(const NamespaceFilterName &value)
Definition: NamespaceFilter.h:67
Aws::ServiceDiscovery::Model::NamespaceFilter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: NamespaceFilter.h:81