AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
BooleanOperands.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/OperandOne.h>
9#include <aws/connectcases/model/OperandTwo.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConnectCases {
21namespace Model {
22
33 public:
34 AWS_CONNECTCASES_API BooleanOperands() = default;
35 AWS_CONNECTCASES_API BooleanOperands(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECTCASES_API BooleanOperands& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const OperandOne& GetOperandOne() const { return m_operandOne; }
44 inline bool OperandOneHasBeenSet() const { return m_operandOneHasBeenSet; }
45 template <typename OperandOneT = OperandOne>
46 void SetOperandOne(OperandOneT&& value) {
47 m_operandOneHasBeenSet = true;
48 m_operandOne = std::forward<OperandOneT>(value);
49 }
50 template <typename OperandOneT = OperandOne>
51 BooleanOperands& WithOperandOne(OperandOneT&& value) {
52 SetOperandOne(std::forward<OperandOneT>(value));
53 return *this;
54 }
56
58
61 inline const OperandTwo& GetOperandTwo() const { return m_operandTwo; }
62 inline bool OperandTwoHasBeenSet() const { return m_operandTwoHasBeenSet; }
63 template <typename OperandTwoT = OperandTwo>
64 void SetOperandTwo(OperandTwoT&& value) {
65 m_operandTwoHasBeenSet = true;
66 m_operandTwo = std::forward<OperandTwoT>(value);
67 }
68 template <typename OperandTwoT = OperandTwo>
69 BooleanOperands& WithOperandTwo(OperandTwoT&& value) {
70 SetOperandTwo(std::forward<OperandTwoT>(value));
71 return *this;
72 }
74
76
79 inline bool GetResult() const { return m_result; }
80 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
81 inline void SetResult(bool value) {
82 m_resultHasBeenSet = true;
83 m_result = value;
84 }
85 inline BooleanOperands& WithResult(bool value) {
86 SetResult(value);
87 return *this;
88 }
90 private:
91 OperandOne m_operandOne;
92
93 OperandTwo m_operandTwo;
94
95 bool m_result{false};
96 bool m_operandOneHasBeenSet = false;
97 bool m_operandTwoHasBeenSet = false;
98 bool m_resultHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace ConnectCases
103} // namespace Aws
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
BooleanOperands & WithResult(bool value)
AWS_CONNECTCASES_API BooleanOperands()=default
const OperandOne & GetOperandOne() const
AWS_CONNECTCASES_API BooleanOperands(Aws::Utils::Json::JsonView jsonValue)
BooleanOperands & WithOperandTwo(OperandTwoT &&value)
const OperandTwo & GetOperandTwo() const
AWS_CONNECTCASES_API BooleanOperands & operator=(Aws::Utils::Json::JsonView jsonValue)
BooleanOperands & WithOperandOne(OperandOneT &&value)
Aws::Utils::Json::JsonValue JsonValue