AWS SDK for C++  1.9.106
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 ElasticsearchService
23 {
24 namespace Model
25 {
26 
36  {
37  public:
38  Filter();
42 
43 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
57  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 
62  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 
67  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 
72  inline Filter& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
77  inline Filter& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 
82  inline Filter& WithName(const char* value) { SetName(value); return *this;}
83 
84 
88  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
89 
93  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
94 
98  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
99 
103  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
104 
108  inline Filter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
109 
113  inline Filter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
114 
118  inline Filter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
119 
123  inline Filter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
124 
128  inline Filter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
129 
130  private:
131 
132  Aws::String m_name;
133  bool m_nameHasBeenSet;
134 
135  Aws::Vector<Aws::String> m_values;
136  bool m_valuesHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace ElasticsearchService
141 } // namespace Aws
Aws::ElasticsearchService::Model::Filter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticsearchService::Model::Filter::WithName
Filter & WithName(Aws::String &&value)
Definition: Filter.h:77
Aws::ElasticsearchService::Model::Filter::operator=
Filter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::Filter::GetName
const Aws::String & GetName() const
Definition: Filter.h:47
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticsearchService::Model::Filter::AddValues
Filter & AddValues(const Aws::String &value)
Definition: Filter.h:118
AWSVector.h
Aws::ElasticsearchService::Model::Filter::SetName
void SetName(Aws::String &&value)
Definition: Filter.h:62
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::Filter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: Filter.h:88
Aws::ElasticsearchService::Model::Filter::Filter
Filter()
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::Filter
Definition: Filter.h:36
Aws::ElasticsearchService::Model::Filter::AddValues
Filter & AddValues(const char *value)
Definition: Filter.h:128
Aws::ElasticsearchService::Model::Filter::Filter
Filter(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::Filter::AddValues
Filter & AddValues(Aws::String &&value)
Definition: Filter.h:123
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::Filter::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Filter.h:52
Aws::ElasticsearchService::Model::Filter::WithName
Filter & WithName(const Aws::String &value)
Definition: Filter.h:72
Aws::ElasticsearchService::Model::Filter::WithValues
Filter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:113
Aws::ElasticsearchService::Model::Filter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:98
Aws::ElasticsearchService::Model::Filter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:103
Aws::ElasticsearchService::Model::Filter::WithValues
Filter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:108
Aws::ElasticsearchService::Model::Filter::SetName
void SetName(const char *value)
Definition: Filter.h:67
Aws::ElasticsearchService::Model::Filter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: Filter.h:93
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::Filter::SetName
void SetName(const Aws::String &value)
Definition: Filter.h:57
Aws::ElasticsearchService::Model::Filter::WithName
Filter & WithName(const char *value)
Definition: Filter.h:82