AWS SDK for C++  1.9.20
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 RoboMaker
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  Filter();
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline Filter& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline Filter& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline Filter& WithName(const char* value) { SetName(value); return *this;}
80 
81 
85  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
86 
90  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
91 
95  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
96 
100  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
101 
105  inline Filter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
106 
110  inline Filter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
111 
115  inline Filter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
116 
120  inline Filter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
121 
125  inline Filter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
126 
127  private:
128 
129  Aws::String m_name;
130  bool m_nameHasBeenSet;
131 
132  Aws::Vector<Aws::String> m_values;
133  bool m_valuesHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace RoboMaker
138 } // namespace Aws
Aws::RoboMaker::Model::Filter::SetName
void SetName(Aws::String &&value)
Definition: Filter.h:59
Aws::RoboMaker::Model::Filter::AddValues
Filter & AddValues(const char *value)
Definition: Filter.h:125
Aws::RoboMaker::Model::Filter::WithValues
Filter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:110
Aws::RoboMaker::Model::Filter::Filter
Filter()
Aws::RoboMaker::Model::Filter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::RoboMaker::Model::Filter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: Filter.h:90
Aws::RoboMaker::Model::Filter::GetName
const Aws::String & GetName() const
Definition: Filter.h:44
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RoboMaker::Model::Filter::SetName
void SetName(const Aws::String &value)
Definition: Filter.h:54
AWSVector.h
Aws::RoboMaker::Model::Filter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: Filter.h:85
Aws::RoboMaker::Model::Filter::AddValues
Filter & AddValues(Aws::String &&value)
Definition: Filter.h:120
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::Filter::WithValues
Filter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:105
RoboMaker_EXPORTS.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::RoboMaker::Model::Filter::WithName
Filter & WithName(const Aws::String &value)
Definition: Filter.h:69
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RoboMaker::Model::Filter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:95
Aws::RoboMaker::Model::Filter
Definition: Filter.h:33
Aws::RoboMaker::Model::Filter::WithName
Filter & WithName(const char *value)
Definition: Filter.h:79
Aws::RoboMaker::Model::Filter::operator=
Filter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::RoboMaker::Model::Filter::WithName
Filter & WithName(Aws::String &&value)
Definition: Filter.h:74
Aws::RoboMaker::Model::Filter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:100
Aws::RoboMaker::Model::Filter::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Filter.h:49
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RoboMaker::Model::Filter::AddValues
Filter & AddValues(const Aws::String &value)
Definition: Filter.h:115
Aws::RoboMaker::Model::Filter::SetName
void SetName(const char *value)
Definition: Filter.h:64
Aws::RoboMaker::Model::Filter::Filter
Filter(Aws::Utils::Json::JsonView jsonValue)