AWS SDK for C++  1.8.152
AWS SDK for C++
OpsItemFilter.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace SSM
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const OpsItemFilterKey& GetKey() const{ return m_key; }
47 
51  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
52 
56  inline void SetKey(const OpsItemFilterKey& value) { m_keyHasBeenSet = true; m_key = value; }
57 
61  inline void SetKey(OpsItemFilterKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
62 
66  inline OpsItemFilter& WithKey(const OpsItemFilterKey& value) { SetKey(value); return *this;}
67 
71  inline OpsItemFilter& WithKey(OpsItemFilterKey&& value) { SetKey(std::move(value)); return *this;}
72 
73 
77  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
78 
82  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
83 
87  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
88 
92  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
93 
97  inline OpsItemFilter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
98 
102  inline OpsItemFilter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
103 
107  inline OpsItemFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
108 
112  inline OpsItemFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
113 
117  inline OpsItemFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
118 
119 
123  inline const OpsItemFilterOperator& GetOperator() const{ return m_operator; }
124 
128  inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
129 
133  inline void SetOperator(const OpsItemFilterOperator& value) { m_operatorHasBeenSet = true; m_operator = value; }
134 
138  inline void SetOperator(OpsItemFilterOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
139 
143  inline OpsItemFilter& WithOperator(const OpsItemFilterOperator& value) { SetOperator(value); return *this;}
144 
148  inline OpsItemFilter& WithOperator(OpsItemFilterOperator&& value) { SetOperator(std::move(value)); return *this;}
149 
150  private:
151 
152  OpsItemFilterKey m_key;
153  bool m_keyHasBeenSet;
154 
155  Aws::Vector<Aws::String> m_values;
156  bool m_valuesHasBeenSet;
157 
158  OpsItemFilterOperator m_operator;
159  bool m_operatorHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace SSM
164 } // namespace Aws
Aws::SSM::Model::OpsItemFilter::AddValues
OpsItemFilter & AddValues(const Aws::String &value)
Definition: OpsItemFilter.h:107
Aws::SSM::Model::OpsItemFilter::SetOperator
void SetOperator(OpsItemFilterOperator &&value)
Definition: OpsItemFilter.h:138
OpsItemFilterOperator.h
Aws::SSM::Model::OpsItemFilterKey
OpsItemFilterKey
Definition: OpsItemFilterKey.h:17
Aws::SSM::Model::OpsItemFilter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: OpsItemFilter.h:92
Aws::SSM::Model::OpsItemFilter::GetOperator
const OpsItemFilterOperator & GetOperator() const
Definition: OpsItemFilter.h:123
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::OpsItemFilter::AddValues
OpsItemFilter & AddValues(const char *value)
Definition: OpsItemFilter.h:117
Aws::SSM::Model::OpsItemFilter::WithKey
OpsItemFilter & WithKey(OpsItemFilterKey &&value)
Definition: OpsItemFilter.h:71
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SSM_EXPORTS.h
Aws::SSM::Model::OpsItemFilter::operator=
OpsItemFilter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SSM::Model::OpsItemFilterOperator
OpsItemFilterOperator
Definition: OpsItemFilterOperator.h:17
AWSVector.h
OpsItemFilterKey.h
Aws::SSM::Model::OpsItemFilter::OpsItemFilter
OpsItemFilter(Aws::Utils::Json::JsonView jsonValue)
Aws::SSM::Model::OpsItemFilter::WithKey
OpsItemFilter & WithKey(const OpsItemFilterKey &value)
Definition: OpsItemFilter.h:66
Aws::SSM::Model::OpsItemFilter::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: OpsItemFilter.h:51
Aws::SSM::Model::OpsItemFilter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: OpsItemFilter.h:82
Aws::SSM::Model::OpsItemFilter::OperatorHasBeenSet
bool OperatorHasBeenSet() const
Definition: OpsItemFilter.h:128
Aws::SSM::Model::OpsItemFilter::WithValues
OpsItemFilter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: OpsItemFilter.h:102
Aws::SSM::Model::OpsItemFilter::SetKey
void SetKey(OpsItemFilterKey &&value)
Definition: OpsItemFilter.h:61
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::OpsItemFilter::WithOperator
OpsItemFilter & WithOperator(OpsItemFilterOperator &&value)
Definition: OpsItemFilter.h:148
Aws::SSM::Model::OpsItemFilter::WithValues
OpsItemFilter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: OpsItemFilter.h:97
Aws::SSM::Model::OpsItemFilter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: OpsItemFilter.h:77
Aws::SSM::Model::OpsItemFilter::AddValues
OpsItemFilter & AddValues(Aws::String &&value)
Definition: OpsItemFilter.h:112
Aws::SSM::Model::OpsItemFilter
Definition: OpsItemFilter.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::OpsItemFilter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: OpsItemFilter.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::OpsItemFilter::SetKey
void SetKey(const OpsItemFilterKey &value)
Definition: OpsItemFilter.h:56
Aws::SSM::Model::OpsItemFilter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SSM::Model::OpsItemFilter::GetKey
const OpsItemFilterKey & GetKey() const
Definition: OpsItemFilter.h:46
Aws::SSM::Model::OpsItemFilter::WithOperator
OpsItemFilter & WithOperator(const OpsItemFilterOperator &value)
Definition: OpsItemFilter.h:143
Aws::SSM::Model::OpsItemFilter::OpsItemFilter
OpsItemFilter()
Aws::SSM::Model::OpsItemFilter::SetOperator
void SetOperator(const OpsItemFilterOperator &value)
Definition: OpsItemFilter.h:133