AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Condition.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/StringCondition.h>
9#include <aws/connect/model/NumberCondition.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CONNECT_API Condition();
37 AWS_CONNECT_API Condition(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECT_API Condition& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const StringCondition& GetStringCondition() const{ return m_stringCondition; }
49 inline bool StringConditionHasBeenSet() const { return m_stringConditionHasBeenSet; }
50 inline void SetStringCondition(const StringCondition& value) { m_stringConditionHasBeenSet = true; m_stringCondition = value; }
51 inline void SetStringCondition(StringCondition&& value) { m_stringConditionHasBeenSet = true; m_stringCondition = std::move(value); }
52 inline Condition& WithStringCondition(const StringCondition& value) { SetStringCondition(value); return *this;}
53 inline Condition& WithStringCondition(StringCondition&& value) { SetStringCondition(std::move(value)); return *this;}
55
57
60 inline const NumberCondition& GetNumberCondition() const{ return m_numberCondition; }
61 inline bool NumberConditionHasBeenSet() const { return m_numberConditionHasBeenSet; }
62 inline void SetNumberCondition(const NumberCondition& value) { m_numberConditionHasBeenSet = true; m_numberCondition = value; }
63 inline void SetNumberCondition(NumberCondition&& value) { m_numberConditionHasBeenSet = true; m_numberCondition = std::move(value); }
64 inline Condition& WithNumberCondition(const NumberCondition& value) { SetNumberCondition(value); return *this;}
65 inline Condition& WithNumberCondition(NumberCondition&& value) { SetNumberCondition(std::move(value)); return *this;}
67 private:
68
69 StringCondition m_stringCondition;
70 bool m_stringConditionHasBeenSet = false;
71
72 NumberCondition m_numberCondition;
73 bool m_numberConditionHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Connect
78} // namespace Aws
const NumberCondition & GetNumberCondition() const
Definition Condition.h:60
bool StringConditionHasBeenSet() const
Definition Condition.h:49
const StringCondition & GetStringCondition() const
Definition Condition.h:48
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Condition & WithNumberCondition(const NumberCondition &value)
Definition Condition.h:64
AWS_CONNECT_API Condition(Aws::Utils::Json::JsonView jsonValue)
void SetStringCondition(const StringCondition &value)
Definition Condition.h:50
void SetNumberCondition(const NumberCondition &value)
Definition Condition.h:62
Condition & WithStringCondition(const StringCondition &value)
Definition Condition.h:52
bool NumberConditionHasBeenSet() const
Definition Condition.h:61
AWS_CONNECT_API Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStringCondition(StringCondition &&value)
Definition Condition.h:51
void SetNumberCondition(NumberCondition &&value)
Definition Condition.h:63
Condition & WithNumberCondition(NumberCondition &&value)
Definition Condition.h:65
Condition & WithStringCondition(StringCondition &&value)
Definition Condition.h:53
Aws::Utils::Json::JsonValue JsonValue