AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/devicefarm/model/DeviceAttribute.h>
9#include <aws/devicefarm/model/RuleOperator.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DeviceFarm
24{
25namespace Model
26{
27
33 class Rule
34 {
35 public:
36 AWS_DEVICEFARM_API Rule() = default;
37 AWS_DEVICEFARM_API Rule(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVICEFARM_API Rule& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
83 inline DeviceAttribute GetAttribute() const { return m_attribute; }
84 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
85 inline void SetAttribute(DeviceAttribute value) { m_attributeHasBeenSet = true; m_attribute = value; }
86 inline Rule& WithAttribute(DeviceAttribute value) { SetAttribute(value); return *this;}
88
90
95 inline RuleOperator GetOperator() const { return m_operator; }
96 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
97 inline void SetOperator(RuleOperator value) { m_operatorHasBeenSet = true; m_operator = value; }
98 inline Rule& WithOperator(RuleOperator value) { SetOperator(value); return *this;}
100
102
105 inline const Aws::String& GetValue() const { return m_value; }
106 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
107 template<typename ValueT = Aws::String>
108 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
109 template<typename ValueT = Aws::String>
110 Rule& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
112 private:
113
115 bool m_attributeHasBeenSet = false;
116
118 bool m_operatorHasBeenSet = false;
119
120 Aws::String m_value;
121 bool m_valueHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace DeviceFarm
126} // namespace Aws
RuleOperator GetOperator() const
Definition Rule.h:95
AWS_DEVICEFARM_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVICEFARM_API Rule(Aws::Utils::Json::JsonView jsonValue)
Rule & WithOperator(RuleOperator value)
Definition Rule.h:98
const Aws::String & GetValue() const
Definition Rule.h:105
Rule & WithValue(ValueT &&value)
Definition Rule.h:110
AWS_DEVICEFARM_API Rule()=default
void SetValue(ValueT &&value)
Definition Rule.h:108
bool AttributeHasBeenSet() const
Definition Rule.h:84
void SetOperator(RuleOperator value)
Definition Rule.h:97
Rule & WithAttribute(DeviceAttribute value)
Definition Rule.h:86
void SetAttribute(DeviceAttribute value)
Definition Rule.h:85
DeviceAttribute GetAttribute() const
Definition Rule.h:83
bool OperatorHasBeenSet() const
Definition Rule.h:96
bool ValueHasBeenSet() const
Definition Rule.h:106
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue