AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
HiddenCaseRule.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/BooleanCondition.h>
9#include <aws/core/utils/memory/stl/AWSVector.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
31 public:
32 AWS_CONNECTCASES_API HiddenCaseRule() = default;
33 AWS_CONNECTCASES_API HiddenCaseRule(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTCASES_API HiddenCaseRule& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline bool GetDefaultValue() const { return m_defaultValue; }
42 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
43 inline void SetDefaultValue(bool value) {
44 m_defaultValueHasBeenSet = true;
45 m_defaultValue = value;
46 }
47 inline HiddenCaseRule& WithDefaultValue(bool value) {
48 SetDefaultValue(value);
49 return *this;
50 }
52
54
57 inline const Aws::Vector<BooleanCondition>& GetConditions() const { return m_conditions; }
58 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
59 template <typename ConditionsT = Aws::Vector<BooleanCondition>>
60 void SetConditions(ConditionsT&& value) {
61 m_conditionsHasBeenSet = true;
62 m_conditions = std::forward<ConditionsT>(value);
63 }
64 template <typename ConditionsT = Aws::Vector<BooleanCondition>>
65 HiddenCaseRule& WithConditions(ConditionsT&& value) {
66 SetConditions(std::forward<ConditionsT>(value));
67 return *this;
68 }
69 template <typename ConditionsT = BooleanCondition>
70 HiddenCaseRule& AddConditions(ConditionsT&& value) {
71 m_conditionsHasBeenSet = true;
72 m_conditions.emplace_back(std::forward<ConditionsT>(value));
73 return *this;
74 }
76 private:
77 bool m_defaultValue{false};
78
80 bool m_defaultValueHasBeenSet = false;
81 bool m_conditionsHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace ConnectCases
86} // namespace Aws
AWS_CONNECTCASES_API HiddenCaseRule(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCASES_API HiddenCaseRule()=default
void SetConditions(ConditionsT &&value)
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
HiddenCaseRule & WithConditions(ConditionsT &&value)
const Aws::Vector< BooleanCondition > & GetConditions() const
AWS_CONNECTCASES_API HiddenCaseRule & operator=(Aws::Utils::Json::JsonView jsonValue)
HiddenCaseRule & AddConditions(ConditionsT &&value)
HiddenCaseRule & WithDefaultValue(bool value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue