AWS SDK for C++  1.9.66
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 AlexaForBusiness
23 {
24 namespace Model
25 {
26 
35  {
36  public:
37  Filter();
41 
42 
46  inline const Aws::String& GetKey() const{ return m_key; }
47 
51  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
52 
56  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
57 
61  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
62 
66  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
67 
71  inline Filter& WithKey(const Aws::String& value) { SetKey(value); return *this;}
72 
76  inline Filter& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
77 
81  inline Filter& WithKey(const char* value) { SetKey(value); return *this;}
82 
83 
87  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
88 
92  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
93 
97  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
98 
102  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
103 
107  inline Filter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
108 
112  inline Filter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
113 
117  inline Filter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
118 
122  inline Filter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
123 
127  inline Filter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
128 
129  private:
130 
131  Aws::String m_key;
132  bool m_keyHasBeenSet;
133 
134  Aws::Vector<Aws::String> m_values;
135  bool m_valuesHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace AlexaForBusiness
140 } // namespace Aws
Aws::AlexaForBusiness::Model::Filter::operator=
Filter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AlexaForBusiness::Model::Filter::WithValues
Filter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:107
Aws::AlexaForBusiness::Model::Filter::SetKey
void SetKey(const Aws::String &value)
Definition: Filter.h:56
Aws::AlexaForBusiness::Model::Filter::AddValues
Filter & AddValues(const char *value)
Definition: Filter.h:127
Aws::AlexaForBusiness::Model::Filter::AddValues
Filter & AddValues(const Aws::String &value)
Definition: Filter.h:117
Aws::AlexaForBusiness::Model::Filter
Definition: Filter.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AlexaForBusiness::Model::Filter::WithKey
Filter & WithKey(Aws::String &&value)
Definition: Filter.h:76
Aws::AlexaForBusiness::Model::Filter::SetKey
void SetKey(Aws::String &&value)
Definition: Filter.h:61
AWSVector.h
Aws::AlexaForBusiness::Model::Filter::GetKey
const Aws::String & GetKey() const
Definition: Filter.h:46
Aws::AlexaForBusiness::Model::Filter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:102
Aws::AlexaForBusiness::Model::Filter::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Filter.h:51
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::Filter::AddValues
Filter & AddValues(Aws::String &&value)
Definition: Filter.h:122
Aws::AlexaForBusiness::Model::Filter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: Filter.h:92
Aws::AlexaForBusiness::Model::Filter::SetKey
void SetKey(const char *value)
Definition: Filter.h:66
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AlexaForBusiness::Model::Filter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AlexaForBusiness::Model::Filter::WithValues
Filter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: Filter.h:112
AlexaForBusiness_EXPORTS.h
Aws::AlexaForBusiness::Model::Filter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: Filter.h:97
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::Filter::WithKey
Filter & WithKey(const char *value)
Definition: Filter.h:81
Aws::AlexaForBusiness::Model::Filter::WithKey
Filter & WithKey(const Aws::String &value)
Definition: Filter.h:71
Aws::AlexaForBusiness::Model::Filter::Filter
Filter(Aws::Utils::Json::JsonView jsonValue)
Aws::AlexaForBusiness::Model::Filter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: Filter.h:87
Aws::AlexaForBusiness::Model::Filter::Filter
Filter()