AWS SDK for C++  1.9.130
AWS SDK for C++
InventoryFilter.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace SSM
24 {
25 namespace Model
26 {
27 
35  {
36  public:
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 InventoryFilter& WithKey(const Aws::String& value) { SetKey(value); return *this;}
72 
76  inline InventoryFilter& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
77 
81  inline InventoryFilter& WithKey(const char* value) { SetKey(value); return *this;}
82 
83 
89  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
90 
96  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
97 
103  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
104 
110  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
111 
117  inline InventoryFilter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
118 
124  inline InventoryFilter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
125 
131  inline InventoryFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
132 
138  inline InventoryFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
139 
145  inline InventoryFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
146 
147 
155  inline const InventoryQueryOperatorType& GetType() const{ return m_type; }
156 
164  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
165 
173  inline void SetType(const InventoryQueryOperatorType& value) { m_typeHasBeenSet = true; m_type = value; }
174 
182  inline void SetType(InventoryQueryOperatorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
183 
191  inline InventoryFilter& WithType(const InventoryQueryOperatorType& value) { SetType(value); return *this;}
192 
200  inline InventoryFilter& WithType(InventoryQueryOperatorType&& value) { SetType(std::move(value)); return *this;}
201 
202  private:
203 
204  Aws::String m_key;
205  bool m_keyHasBeenSet;
206 
207  Aws::Vector<Aws::String> m_values;
208  bool m_valuesHasBeenSet;
209 
211  bool m_typeHasBeenSet;
212  };
213 
214 } // namespace Model
215 } // namespace SSM
216 } // namespace Aws
Aws::SSM::Model::InventoryFilter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: InventoryFilter.h:103
Aws::SSM::Model::InventoryFilter::InventoryFilter
InventoryFilter(Aws::Utils::Json::JsonView jsonValue)
Aws::SSM::Model::InventoryFilter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: InventoryFilter.h:89
Aws::SSM::Model::InventoryFilter::operator=
InventoryFilter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SSM::Model::InventoryFilter::SetKey
void SetKey(const Aws::String &value)
Definition: InventoryFilter.h:56
Aws::SSM::Model::InventoryFilter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: InventoryFilter.h:110
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::InventoryFilter::WithKey
InventoryFilter & WithKey(const char *value)
Definition: InventoryFilter.h:81
InventoryQueryOperatorType.h
Aws::SSM::Model::InventoryFilter::AddValues
InventoryFilter & AddValues(const char *value)
Definition: InventoryFilter.h:145
Aws::SSM::Model::InventoryFilter::WithKey
InventoryFilter & WithKey(const Aws::String &value)
Definition: InventoryFilter.h:71
Aws::SSM::Model::InventoryFilter::WithType
InventoryFilter & WithType(const InventoryQueryOperatorType &value)
Definition: InventoryFilter.h:191
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SSM_EXPORTS.h
AWSVector.h
Aws::SSM::Model::InventoryFilter
Definition: InventoryFilter.h:35
Aws::SSM::Model::InventoryFilter::WithType
InventoryFilter & WithType(InventoryQueryOperatorType &&value)
Definition: InventoryFilter.h:200
Aws::SSM::Model::InventoryFilter::SetType
void SetType(InventoryQueryOperatorType &&value)
Definition: InventoryFilter.h:182
Aws::SSM::Model::InventoryFilter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SSM::Model::InventoryFilter::GetKey
const Aws::String & GetKey() const
Definition: InventoryFilter.h:46
Aws::SSM::Model::InventoryFilter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: InventoryFilter.h:96
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::SSM::Model::InventoryFilter::AddValues
InventoryFilter & AddValues(const Aws::String &value)
Definition: InventoryFilter.h:131
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::InventoryFilter::AddValues
InventoryFilter & AddValues(Aws::String &&value)
Definition: InventoryFilter.h:138
Aws::SSM::Model::InventoryFilter::InventoryFilter
InventoryFilter()
Aws::SSM::Model::InventoryFilter::SetType
void SetType(const InventoryQueryOperatorType &value)
Definition: InventoryFilter.h:173
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::InventoryFilter::WithValues
InventoryFilter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: InventoryFilter.h:124
Aws::SSM::Model::InventoryFilter::WithValues
InventoryFilter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: InventoryFilter.h:117
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::InventoryFilter::SetKey
void SetKey(const char *value)
Definition: InventoryFilter.h:66
Aws::SSM::Model::InventoryFilter::SetKey
void SetKey(Aws::String &&value)
Definition: InventoryFilter.h:61
Aws::SSM::Model::InventoryFilter::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: InventoryFilter.h:51
Aws::SSM::Model::InventoryFilter::GetType
const InventoryQueryOperatorType & GetType() const
Definition: InventoryFilter.h:155
Aws::SSM::Model::InventoryQueryOperatorType
InventoryQueryOperatorType
Definition: InventoryQueryOperatorType.h:17
Aws::SSM::Model::InventoryFilter::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: InventoryFilter.h:164
Aws::SSM::Model::InventoryFilter::WithKey
InventoryFilter & WithKey(Aws::String &&value)
Definition: InventoryFilter.h:76