AWS SDK for C++  1.9.160
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 ElasticInference
23 {
24 namespace Model
25 {
26 
34  {
35  public:
36  Filter();
40 
41 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
61  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 
68  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69 
75  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
76 
82  inline Filter& WithName(const Aws::String& value) { SetName(value); return *this;}
83 
89  inline Filter& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
90 
96  inline Filter& WithName(const char* value) { SetName(value); return *this;}
97 
98 
102  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
103 
107  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
108 
112  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
113 
117  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
118 
122  inline Filter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
123 
127  inline Filter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
128 
132  inline Filter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
133 
137  inline Filter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
138 
142  inline Filter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
143 
144  private:
145 
146  Aws::String m_name;
147  bool m_nameHasBeenSet;
148 
149  Aws::Vector<Aws::String> m_values;
150  bool m_valuesHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace ElasticInference
155 } // namespace Aws
Aws::ElasticInference::Model::Filter
Definition: Filter.h:34
Aws::ElasticInference::Model::Filter::SetName
void SetName(Aws::String &&value)
Definition: Filter.h:68
Aws::ElasticInference::Model::Filter::SetName
void SetName(const char *value)
Definition: Filter.h:75
Aws::ElasticInference::Model::Filter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:112
Aws::ElasticInference::Model::Filter::AddValues
Filter & AddValues(const char *value)
Definition: Filter.h:142
Aws::ElasticInference::Model::Filter::WithValues
Filter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:127
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticInference::Model::Filter::WithName
Filter & WithName(const Aws::String &value)
Definition: Filter.h:82
Aws::ElasticInference::Model::Filter::Filter
Filter(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticInference::Model::Filter::AddValues
Filter & AddValues(const Aws::String &value)
Definition: Filter.h:132
AWSVector.h
Aws::ElasticInference::Model::Filter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticInference::Model::Filter::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Filter.h:54
Aws::ElasticInference::Model::Filter::SetName
void SetName(const Aws::String &value)
Definition: Filter.h:61
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticInference::Model::Filter::WithValues
Filter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:122
ElasticInference_EXPORTS.h
Aws::ElasticInference::Model::Filter::Filter
Filter()
Aws::ElasticInference::Model::Filter::WithName
Filter & WithName(const char *value)
Definition: Filter.h:96
Aws::ElasticInference::Model::Filter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: Filter.h:102
Aws::ElasticInference::Model::Filter::WithName
Filter & WithName(Aws::String &&value)
Definition: Filter.h:89
Aws::ElasticInference::Model::Filter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:117
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
AWS_ELASTICINFERENCE_API
#define AWS_ELASTICINFERENCE_API
Definition: ElasticInference_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticInference::Model::Filter::operator=
Filter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticInference::Model::Filter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: Filter.h:107
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticInference::Model::Filter::AddValues
Filter & AddValues(Aws::String &&value)
Definition: Filter.h:137
Aws::ElasticInference::Model::Filter::GetName
const Aws::String & GetName() const
Definition: Filter.h:47