AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
9#include <aws/devicefarm/model/DeviceAttribute.h>
10#include <aws/devicefarm/model/RuleOperator.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DeviceFarm {
22namespace Model {
23
29class Rule {
30 public:
31 AWS_DEVICEFARM_API Rule() = default;
32 AWS_DEVICEFARM_API Rule(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVICEFARM_API Rule& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
77 inline DeviceAttribute GetAttribute() const { return m_attribute; }
78 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
79 inline void SetAttribute(DeviceAttribute value) {
80 m_attributeHasBeenSet = true;
81 m_attribute = value;
82 }
84 SetAttribute(value);
85 return *this;
86 }
88
90
95 inline RuleOperator GetOperator() const { return m_operator; }
96 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
97 inline void SetOperator(RuleOperator value) {
98 m_operatorHasBeenSet = true;
99 m_operator = value;
100 }
102 SetOperator(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetValue() const { return m_value; }
112 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
113 template <typename ValueT = Aws::String>
114 void SetValue(ValueT&& value) {
115 m_valueHasBeenSet = true;
116 m_value = std::forward<ValueT>(value);
117 }
118 template <typename ValueT = Aws::String>
119 Rule& WithValue(ValueT&& value) {
120 SetValue(std::forward<ValueT>(value));
121 return *this;
122 }
124 private:
126
128
129 Aws::String m_value;
130 bool m_attributeHasBeenSet = false;
131 bool m_operatorHasBeenSet = false;
132 bool m_valueHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace DeviceFarm
137} // 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:101
const Aws::String & GetValue() const
Definition Rule.h:111
Rule & WithValue(ValueT &&value)
Definition Rule.h:119
AWS_DEVICEFARM_API Rule()=default
void SetValue(ValueT &&value)
Definition Rule.h:114
bool AttributeHasBeenSet() const
Definition Rule.h:78
void SetOperator(RuleOperator value)
Definition Rule.h:97
Rule & WithAttribute(DeviceAttribute value)
Definition Rule.h:83
void SetAttribute(DeviceAttribute value)
Definition Rule.h:79
DeviceAttribute GetAttribute() const
Definition Rule.h:77
bool OperatorHasBeenSet() const
Definition Rule.h:96
bool ValueHasBeenSet() const
Definition Rule.h:112
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue