AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CaseRuleSummary.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/RuleType.h>
9#include <aws/core/utils/memory/stl/AWSString.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 CaseRuleSummary() = default;
35 AWS_CONNECTCASES_API CaseRuleSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECTCASES_API CaseRuleSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetCaseRuleId() const { return m_caseRuleId; }
44 inline bool CaseRuleIdHasBeenSet() const { return m_caseRuleIdHasBeenSet; }
45 template <typename CaseRuleIdT = Aws::String>
46 void SetCaseRuleId(CaseRuleIdT&& value) {
47 m_caseRuleIdHasBeenSet = true;
48 m_caseRuleId = std::forward<CaseRuleIdT>(value);
49 }
50 template <typename CaseRuleIdT = Aws::String>
51 CaseRuleSummary& WithCaseRuleId(CaseRuleIdT&& value) {
52 SetCaseRuleId(std::forward<CaseRuleIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 CaseRuleSummary& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetCaseRuleArn() const { return m_caseRuleArn; }
80 inline bool CaseRuleArnHasBeenSet() const { return m_caseRuleArnHasBeenSet; }
81 template <typename CaseRuleArnT = Aws::String>
82 void SetCaseRuleArn(CaseRuleArnT&& value) {
83 m_caseRuleArnHasBeenSet = true;
84 m_caseRuleArn = std::forward<CaseRuleArnT>(value);
85 }
86 template <typename CaseRuleArnT = Aws::String>
87 CaseRuleSummary& WithCaseRuleArn(CaseRuleArnT&& value) {
88 SetCaseRuleArn(std::forward<CaseRuleArnT>(value));
89 return *this;
90 }
92
94
97 inline RuleType GetRuleType() const { return m_ruleType; }
98 inline bool RuleTypeHasBeenSet() const { return m_ruleTypeHasBeenSet; }
99 inline void SetRuleType(RuleType value) {
100 m_ruleTypeHasBeenSet = true;
101 m_ruleType = value;
102 }
104 SetRuleType(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDescription() const { return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 template <typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) {
117 m_descriptionHasBeenSet = true;
118 m_description = std::forward<DescriptionT>(value);
119 }
120 template <typename DescriptionT = Aws::String>
121 CaseRuleSummary& WithDescription(DescriptionT&& value) {
122 SetDescription(std::forward<DescriptionT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_caseRuleId;
128
129 Aws::String m_name;
130
131 Aws::String m_caseRuleArn;
132
133 RuleType m_ruleType{RuleType::NOT_SET};
134
135 Aws::String m_description;
136 bool m_caseRuleIdHasBeenSet = false;
137 bool m_nameHasBeenSet = false;
138 bool m_caseRuleArnHasBeenSet = false;
139 bool m_ruleTypeHasBeenSet = false;
140 bool m_descriptionHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace ConnectCases
145} // namespace Aws
AWS_CONNECTCASES_API CaseRuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CaseRuleSummary & WithDescription(DescriptionT &&value)
void SetCaseRuleArn(CaseRuleArnT &&value)
const Aws::String & GetCaseRuleId() const
CaseRuleSummary & WithRuleType(RuleType value)
CaseRuleSummary & WithName(NameT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetCaseRuleArn() const
CaseRuleSummary & WithCaseRuleId(CaseRuleIdT &&value)
AWS_CONNECTCASES_API CaseRuleSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTCASES_API CaseRuleSummary()=default
const Aws::String & GetDescription() const
CaseRuleSummary & WithCaseRuleArn(CaseRuleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue