AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RequiredCaseRule.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/connectcases/model/BooleanCondition.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 ConnectCases
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_CONNECTCASES_API RequiredCaseRule() = default;
40 AWS_CONNECTCASES_API RequiredCaseRule(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECTCASES_API RequiredCaseRule& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<BooleanCondition>& GetConditions() const { return m_conditions; }
51 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
52 template<typename ConditionsT = Aws::Vector<BooleanCondition>>
53 void SetConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions = std::forward<ConditionsT>(value); }
54 template<typename ConditionsT = Aws::Vector<BooleanCondition>>
55 RequiredCaseRule& WithConditions(ConditionsT&& value) { SetConditions(std::forward<ConditionsT>(value)); return *this;}
56 template<typename ConditionsT = BooleanCondition>
57 RequiredCaseRule& AddConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions.emplace_back(std::forward<ConditionsT>(value)); return *this; }
59
61
65 inline bool GetDefaultValue() const { return m_defaultValue; }
66 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
67 inline void SetDefaultValue(bool value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
68 inline RequiredCaseRule& WithDefaultValue(bool value) { SetDefaultValue(value); return *this;}
70 private:
71
73 bool m_conditionsHasBeenSet = false;
74
75 bool m_defaultValue{false};
76 bool m_defaultValueHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace ConnectCases
81} // 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