AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const DeviceAttribute& GetAttribute() const{ return m_attribute; }
84 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
85 inline void SetAttribute(const DeviceAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; }
86 inline void SetAttribute(DeviceAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
87 inline Rule& WithAttribute(const DeviceAttribute& value) { SetAttribute(value); return *this;}
88 inline Rule& WithAttribute(DeviceAttribute&& value) { SetAttribute(std::move(value)); return *this;}
90
92
97 inline const RuleOperator& GetOperator() const{ return m_operator; }
98 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
99 inline void SetOperator(const RuleOperator& value) { m_operatorHasBeenSet = true; m_operator = value; }
100 inline void SetOperator(RuleOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
101 inline Rule& WithOperator(const RuleOperator& value) { SetOperator(value); return *this;}
102 inline Rule& WithOperator(RuleOperator&& value) { SetOperator(std::move(value)); return *this;}
104
106
109 inline const Aws::String& GetValue() const{ return m_value; }
110 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
111 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
112 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
113 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
114 inline Rule& WithValue(const Aws::String& value) { SetValue(value); return *this;}
115 inline Rule& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
116 inline Rule& WithValue(const char* value) { SetValue(value); return *this;}
118 private:
119
120 DeviceAttribute m_attribute;
121 bool m_attributeHasBeenSet = false;
122
123 RuleOperator m_operator;
124 bool m_operatorHasBeenSet = false;
125
126 Aws::String m_value;
127 bool m_valueHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace DeviceFarm
132} // namespace Aws
AWS_DEVICEFARM_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
Rule & WithValue(const Aws::String &value)
Definition Rule.h:114
AWS_DEVICEFARM_API Rule()
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
const DeviceAttribute & GetAttribute() const
Definition Rule.h:83
AWS_DEVICEFARM_API Rule(Aws::Utils::Json::JsonView jsonValue)
const RuleOperator & GetOperator() const
Definition Rule.h:97
void SetValue(const Aws::String &value)
Definition Rule.h:111
Rule & WithOperator(const RuleOperator &value)
Definition Rule.h:101
Rule & WithAttribute(DeviceAttribute &&value)
Definition Rule.h:88
const Aws::String & GetValue() const
Definition Rule.h:109
void SetAttribute(DeviceAttribute &&value)
Definition Rule.h:86
bool AttributeHasBeenSet() const
Definition Rule.h:84
void SetOperator(RuleOperator &&value)
Definition Rule.h:100
Rule & WithAttribute(const DeviceAttribute &value)
Definition Rule.h:87
Rule & WithValue(Aws::String &&value)
Definition Rule.h:115
Rule & WithValue(const char *value)
Definition Rule.h:116
void SetAttribute(const DeviceAttribute &value)
Definition Rule.h:85
void SetOperator(const RuleOperator &value)
Definition Rule.h:99
void SetValue(Aws::String &&value)
Definition Rule.h:112
void SetValue(const char *value)
Definition Rule.h:113
Rule & WithOperator(RuleOperator &&value)
Definition Rule.h:102
bool OperatorHasBeenSet() const
Definition Rule.h:98
bool ValueHasBeenSet() const
Definition Rule.h:110
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue