AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
RequiredCaseRule.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
33 public:
34 AWS_CONNECTCASES_API RequiredCaseRule() = default;
35 AWS_CONNECTCASES_API RequiredCaseRule(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECTCASES_API RequiredCaseRule& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline bool GetDefaultValue() const { return m_defaultValue; }
45 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
46 inline void SetDefaultValue(bool value) {
47 m_defaultValueHasBeenSet = true;
48 m_defaultValue = value;
49 }
50 inline RequiredCaseRule& WithDefaultValue(bool value) {
51 SetDefaultValue(value);
52 return *this;
53 }
55
57
61 inline const Aws::Vector<BooleanCondition>& GetConditions() const { return m_conditions; }
62 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
63 template <typename ConditionsT = Aws::Vector<BooleanCondition>>
64 void SetConditions(ConditionsT&& value) {
65 m_conditionsHasBeenSet = true;
66 m_conditions = std::forward<ConditionsT>(value);
67 }
68 template <typename ConditionsT = Aws::Vector<BooleanCondition>>
69 RequiredCaseRule& WithConditions(ConditionsT&& value) {
70 SetConditions(std::forward<ConditionsT>(value));
71 return *this;
72 }
73 template <typename ConditionsT = BooleanCondition>
74 RequiredCaseRule& AddConditions(ConditionsT&& value) {
75 m_conditionsHasBeenSet = true;
76 m_conditions.emplace_back(std::forward<ConditionsT>(value));
77 return *this;
78 }
80 private:
81 bool m_defaultValue{false};
82
84 bool m_defaultValueHasBeenSet = false;
85 bool m_conditionsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace ConnectCases
90} // namespace Aws
AWS_CONNECTCASES_API RequiredCaseRule(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCASES_API RequiredCaseRule()=default
RequiredCaseRule & WithDefaultValue(bool value)
const Aws::Vector< BooleanCondition > & GetConditions() const
RequiredCaseRule & AddConditions(ConditionsT &&value)
AWS_CONNECTCASES_API RequiredCaseRule & operator=(Aws::Utils::Json::JsonView jsonValue)
RequiredCaseRule & WithConditions(ConditionsT &&value)
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue