AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
GetCaseRuleResponse.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/CaseRuleDetails.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConnectCases {
23namespace Model {
24
35 public:
36 AWS_CONNECTCASES_API GetCaseRuleResponse() = default;
37 AWS_CONNECTCASES_API GetCaseRuleResponse(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetCaseRuleId() const { return m_caseRuleId; }
46 inline bool CaseRuleIdHasBeenSet() const { return m_caseRuleIdHasBeenSet; }
47 template <typename CaseRuleIdT = Aws::String>
48 void SetCaseRuleId(CaseRuleIdT&& value) {
49 m_caseRuleIdHasBeenSet = true;
50 m_caseRuleId = std::forward<CaseRuleIdT>(value);
51 }
52 template <typename CaseRuleIdT = Aws::String>
53 GetCaseRuleResponse& WithCaseRuleId(CaseRuleIdT&& value) {
54 SetCaseRuleId(std::forward<CaseRuleIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
71 GetCaseRuleResponse& WithName(NameT&& value) {
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetCaseRuleArn() const { return m_caseRuleArn; }
82 inline bool CaseRuleArnHasBeenSet() const { return m_caseRuleArnHasBeenSet; }
83 template <typename CaseRuleArnT = Aws::String>
84 void SetCaseRuleArn(CaseRuleArnT&& value) {
85 m_caseRuleArnHasBeenSet = true;
86 m_caseRuleArn = std::forward<CaseRuleArnT>(value);
87 }
88 template <typename CaseRuleArnT = Aws::String>
89 GetCaseRuleResponse& WithCaseRuleArn(CaseRuleArnT&& value) {
90 SetCaseRuleArn(std::forward<CaseRuleArnT>(value));
91 return *this;
92 }
94
96
99 inline const CaseRuleDetails& GetRule() const { return m_rule; }
100 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
101 template <typename RuleT = CaseRuleDetails>
102 void SetRule(RuleT&& value) {
103 m_ruleHasBeenSet = true;
104 m_rule = std::forward<RuleT>(value);
105 }
106 template <typename RuleT = CaseRuleDetails>
108 SetRule(std::forward<RuleT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetDescription() const { return m_description; }
118 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
119 template <typename DescriptionT = Aws::String>
120 void SetDescription(DescriptionT&& value) {
121 m_descriptionHasBeenSet = true;
122 m_description = std::forward<DescriptionT>(value);
123 }
124 template <typename DescriptionT = Aws::String>
125 GetCaseRuleResponse& WithDescription(DescriptionT&& value) {
126 SetDescription(std::forward<DescriptionT>(value));
127 return *this;
128 }
130
132
135 inline bool GetDeleted() const { return m_deleted; }
136 inline bool DeletedHasBeenSet() const { return m_deletedHasBeenSet; }
137 inline void SetDeleted(bool value) {
138 m_deletedHasBeenSet = true;
139 m_deleted = value;
140 }
141 inline GetCaseRuleResponse& WithDeleted(bool value) {
142 SetDeleted(value);
143 return *this;
144 }
146
148
151 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
152 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
153 template <typename CreatedTimeT = Aws::Utils::DateTime>
154 void SetCreatedTime(CreatedTimeT&& value) {
155 m_createdTimeHasBeenSet = true;
156 m_createdTime = std::forward<CreatedTimeT>(value);
157 }
158 template <typename CreatedTimeT = Aws::Utils::DateTime>
159 GetCaseRuleResponse& WithCreatedTime(CreatedTimeT&& value) {
160 SetCreatedTime(std::forward<CreatedTimeT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
170 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
171 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
172 void SetLastModifiedTime(LastModifiedTimeT&& value) {
173 m_lastModifiedTimeHasBeenSet = true;
174 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
175 }
176 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
177 GetCaseRuleResponse& WithLastModifiedTime(LastModifiedTimeT&& value) {
178 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
189 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
190 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
191 void SetTags(TagsT&& value) {
192 m_tagsHasBeenSet = true;
193 m_tags = std::forward<TagsT>(value);
194 }
195 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
197 SetTags(std::forward<TagsT>(value));
198 return *this;
199 }
200 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
201 GetCaseRuleResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
202 m_tagsHasBeenSet = true;
203 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
204 return *this;
205 }
207 private:
208 Aws::String m_caseRuleId;
209
210 Aws::String m_name;
211
212 Aws::String m_caseRuleArn;
213
214 CaseRuleDetails m_rule;
215
216 Aws::String m_description;
217
218 bool m_deleted{false};
219
220 Aws::Utils::DateTime m_createdTime{};
221
222 Aws::Utils::DateTime m_lastModifiedTime{};
223
225 bool m_caseRuleIdHasBeenSet = false;
226 bool m_nameHasBeenSet = false;
227 bool m_caseRuleArnHasBeenSet = false;
228 bool m_ruleHasBeenSet = false;
229 bool m_descriptionHasBeenSet = false;
230 bool m_deletedHasBeenSet = false;
231 bool m_createdTimeHasBeenSet = false;
232 bool m_lastModifiedTimeHasBeenSet = false;
233 bool m_tagsHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace ConnectCases
238} // namespace Aws
GetCaseRuleResponse & WithTags(TagsT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
GetCaseRuleResponse & WithDescription(DescriptionT &&value)
GetCaseRuleResponse & WithCreatedTime(CreatedTimeT &&value)
AWS_CONNECTCASES_API GetCaseRuleResponse(Aws::Utils::Json::JsonView jsonValue)
GetCaseRuleResponse & WithDeleted(bool value)
GetCaseRuleResponse & WithRule(RuleT &&value)
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
GetCaseRuleResponse & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CONNECTCASES_API GetCaseRuleResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCASES_API GetCaseRuleResponse()=default
GetCaseRuleResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetCaseRuleResponse & WithCaseRuleArn(CaseRuleArnT &&value)
GetCaseRuleResponse & WithCaseRuleId(CaseRuleIdT &&value)
GetCaseRuleResponse & WithName(NameT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue