AWS SDK for C++  1.9.158
AWS SDK for C++
DeviceFilter.h
Go to the documentation of this file.
1 
6 #pragma once
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 DeviceFarm
25 {
26 namespace Model
27 {
28 
41  {
42  public:
47 
48 
87  inline const DeviceFilterAttribute& GetAttribute() const{ return m_attribute; }
88 
127  inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
128 
167  inline void SetAttribute(const DeviceFilterAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; }
168 
207  inline void SetAttribute(DeviceFilterAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
208 
247  inline DeviceFilter& WithAttribute(const DeviceFilterAttribute& value) { SetAttribute(value); return *this;}
248 
287  inline DeviceFilter& WithAttribute(DeviceFilterAttribute&& value) { SetAttribute(std::move(value)); return *this;}
288 
289 
294  inline const RuleOperator& GetOperator() const{ return m_operator; }
295 
300  inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
301 
306  inline void SetOperator(const RuleOperator& value) { m_operatorHasBeenSet = true; m_operator = value; }
307 
312  inline void SetOperator(RuleOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
313 
318  inline DeviceFilter& WithOperator(const RuleOperator& value) { SetOperator(value); return *this;}
319 
324  inline DeviceFilter& WithOperator(RuleOperator&& value) { SetOperator(std::move(value)); return *this;}
325 
326 
339  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
340 
353  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
354 
367  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
368 
381  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
382 
395  inline DeviceFilter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
396 
409  inline DeviceFilter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
410 
423  inline DeviceFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
424 
437  inline DeviceFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
438 
451  inline DeviceFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
452 
453  private:
454 
455  DeviceFilterAttribute m_attribute;
456  bool m_attributeHasBeenSet;
457 
458  RuleOperator m_operator;
459  bool m_operatorHasBeenSet;
460 
461  Aws::Vector<Aws::String> m_values;
462  bool m_valuesHasBeenSet;
463  };
464 
465 } // namespace Model
466 } // namespace DeviceFarm
467 } // namespace Aws
Aws::DeviceFarm::Model::DeviceFilter::GetOperator
const RuleOperator & GetOperator() const
Definition: DeviceFilter.h:294
Aws::DeviceFarm::Model::DeviceFilter::GetAttribute
const DeviceFilterAttribute & GetAttribute() const
Definition: DeviceFilter.h:87
Aws::DeviceFarm::Model::DeviceFilter::WithAttribute
DeviceFilter & WithAttribute(DeviceFilterAttribute &&value)
Definition: DeviceFilter.h:287
Aws::DeviceFarm::Model::DeviceFilter::WithValues
DeviceFilter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: DeviceFilter.h:409
Aws::DeviceFarm::Model::DeviceFilterAttribute
DeviceFilterAttribute
Definition: DeviceFilterAttribute.h:17
Aws::DeviceFarm::Model::DeviceFilter::WithValues
DeviceFilter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: DeviceFilter.h:395
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RuleOperator.h
Aws::DeviceFarm::Model::DeviceFilter::WithAttribute
DeviceFilter & WithAttribute(const DeviceFilterAttribute &value)
Definition: DeviceFilter.h:247
Aws::DeviceFarm::Model::DeviceFilter::WithOperator
DeviceFilter & WithOperator(const RuleOperator &value)
Definition: DeviceFilter.h:318
AWSVector.h
Aws::DeviceFarm::Model::DeviceFilter::OperatorHasBeenSet
bool OperatorHasBeenSet() const
Definition: DeviceFilter.h:300
Aws::DeviceFarm::Model::DeviceFilter
Definition: DeviceFilter.h:41
Aws::DeviceFarm::Model::RuleOperator
RuleOperator
Definition: RuleOperator.h:17
Aws::DeviceFarm::Model::DeviceFilter::operator=
DeviceFilter & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::DeviceFilter::SetAttribute
void SetAttribute(DeviceFilterAttribute &&value)
Definition: DeviceFilter.h:207
Aws::DeviceFarm::Model::DeviceFilter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::Model::DeviceFilter::AttributeHasBeenSet
bool AttributeHasBeenSet() const
Definition: DeviceFilter.h:127
Aws::DeviceFarm::Model::DeviceFilter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: DeviceFilter.h:367
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::DeviceFarm::Model::DeviceFilter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: DeviceFilter.h:339
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DeviceFarm::Model::DeviceFilter::SetOperator
void SetOperator(RuleOperator &&value)
Definition: DeviceFilter.h:312
Aws::DeviceFarm::Model::DeviceFilter::DeviceFilter
DeviceFilter(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::DeviceFilter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: DeviceFilter.h:381
Aws::DeviceFarm::Model::DeviceFilter::AddValues
DeviceFilter & AddValues(Aws::String &&value)
Definition: DeviceFilter.h:437
DeviceFilterAttribute.h
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
DeviceFarm_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DeviceFarm::Model::DeviceFilter::AddValues
DeviceFilter & AddValues(const char *value)
Definition: DeviceFilter.h:451
Aws::DeviceFarm::Model::DeviceFilter::DeviceFilter
DeviceFilter()
Aws::DeviceFarm::Model::DeviceFilter::SetOperator
void SetOperator(const RuleOperator &value)
Definition: DeviceFilter.h:306
Aws::DeviceFarm::Model::DeviceFilter::AddValues
DeviceFilter & AddValues(const Aws::String &value)
Definition: DeviceFilter.h:423
Aws::DeviceFarm::Model::DeviceFilter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: DeviceFilter.h:353
Aws::DeviceFarm::Model::DeviceFilter::SetAttribute
void SetAttribute(const DeviceFilterAttribute &value)
Definition: DeviceFilter.h:167
Aws::DeviceFarm::Model::DeviceFilter::WithOperator
DeviceFilter & WithOperator(RuleOperator &&value)
Definition: DeviceFilter.h:324