AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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#include <aws/crt/Optional.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ConnectCases {
24namespace Model {
25
36 public:
37 AWS_CONNECTCASES_API GetCaseRuleResponse() = default;
38 AWS_CONNECTCASES_API GetCaseRuleResponse(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetCaseRuleId() const { return m_caseRuleId; }
47 inline bool CaseRuleIdHasBeenSet() const { return m_caseRuleIdHasBeenSet; }
48 template <typename CaseRuleIdT = Aws::String>
49 void SetCaseRuleId(CaseRuleIdT&& value) {
50 m_caseRuleIdHasBeenSet = true;
51 m_caseRuleId = std::forward<CaseRuleIdT>(value);
52 }
53 template <typename CaseRuleIdT = Aws::String>
54 GetCaseRuleResponse& WithCaseRuleId(CaseRuleIdT&& value) {
55 SetCaseRuleId(std::forward<CaseRuleIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
72 GetCaseRuleResponse& WithName(NameT&& value) {
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetCaseRuleArn() const { return m_caseRuleArn; }
83 inline bool CaseRuleArnHasBeenSet() const { return m_caseRuleArnHasBeenSet; }
84 template <typename CaseRuleArnT = Aws::String>
85 void SetCaseRuleArn(CaseRuleArnT&& value) {
86 m_caseRuleArnHasBeenSet = true;
87 m_caseRuleArn = std::forward<CaseRuleArnT>(value);
88 }
89 template <typename CaseRuleArnT = Aws::String>
90 GetCaseRuleResponse& WithCaseRuleArn(CaseRuleArnT&& value) {
91 SetCaseRuleArn(std::forward<CaseRuleArnT>(value));
92 return *this;
93 }
95
97
100 inline const CaseRuleDetails& GetRule() const { return m_rule; }
101 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
102 template <typename RuleT = CaseRuleDetails>
103 void SetRule(RuleT&& value) {
104 m_ruleHasBeenSet = true;
105 m_rule = std::forward<RuleT>(value);
106 }
107 template <typename RuleT = CaseRuleDetails>
109 SetRule(std::forward<RuleT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetDescription() const { return m_description; }
119 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
120 template <typename DescriptionT = Aws::String>
121 void SetDescription(DescriptionT&& value) {
122 m_descriptionHasBeenSet = true;
123 m_description = std::forward<DescriptionT>(value);
124 }
125 template <typename DescriptionT = Aws::String>
126 GetCaseRuleResponse& WithDescription(DescriptionT&& value) {
127 SetDescription(std::forward<DescriptionT>(value));
128 return *this;
129 }
131
133
136 inline bool GetDeleted() const { return m_deleted; }
137 inline bool DeletedHasBeenSet() const { return m_deletedHasBeenSet; }
138 inline void SetDeleted(bool value) {
139 m_deletedHasBeenSet = true;
140 m_deleted = value;
141 }
142 inline GetCaseRuleResponse& WithDeleted(bool value) {
143 SetDeleted(value);
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
153 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
154 template <typename CreatedTimeT = Aws::Utils::DateTime>
155 void SetCreatedTime(CreatedTimeT&& value) {
156 m_createdTimeHasBeenSet = true;
157 m_createdTime = std::forward<CreatedTimeT>(value);
158 }
159 template <typename CreatedTimeT = Aws::Utils::DateTime>
160 GetCaseRuleResponse& WithCreatedTime(CreatedTimeT&& value) {
161 SetCreatedTime(std::forward<CreatedTimeT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
171 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
172 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
173 void SetLastModifiedTime(LastModifiedTimeT&& value) {
174 m_lastModifiedTimeHasBeenSet = true;
175 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
176 }
177 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
178 GetCaseRuleResponse& WithLastModifiedTime(LastModifiedTimeT&& value) {
179 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
180 return *this;
181 }
183
185
189 inline const Aws::Map<Aws::String, Aws::Crt::Optional<Aws::String>>& GetTags() const { return m_tags; }
190 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
191 template <typename TagsT = Aws::Map<Aws::String, Aws::Crt::Optional<Aws::String>>>
192 void SetTags(TagsT&& value) {
193 m_tagsHasBeenSet = true;
194 m_tags = std::forward<TagsT>(value);
195 }
196 template <typename TagsT = Aws::Map<Aws::String, Aws::Crt::Optional<Aws::String>>>
198 SetTags(std::forward<TagsT>(value));
199 return *this;
200 }
201 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::Crt::Optional<Aws::String>>
202 GetCaseRuleResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
203 m_tagsHasBeenSet = true;
204 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
205 return *this;
206 }
207 inline GetCaseRuleResponse& AddTags(Aws::String key, Aws::Crt::Optional<Aws::String> value) {
208 m_tagsHasBeenSet = true;
209 m_tags.emplace(key, value);
210 return *this;
211 }
213 private:
214 Aws::String m_caseRuleId;
215
216 Aws::String m_name;
217
218 Aws::String m_caseRuleArn;
219
220 CaseRuleDetails m_rule;
221
222 Aws::String m_description;
223
224 bool m_deleted{false};
225
226 Aws::Utils::DateTime m_createdTime{};
227
228 Aws::Utils::DateTime m_lastModifiedTime{};
229
231 bool m_caseRuleIdHasBeenSet = false;
232 bool m_nameHasBeenSet = false;
233 bool m_caseRuleArnHasBeenSet = false;
234 bool m_ruleHasBeenSet = false;
235 bool m_descriptionHasBeenSet = false;
236 bool m_deletedHasBeenSet = false;
237 bool m_createdTimeHasBeenSet = false;
238 bool m_lastModifiedTimeHasBeenSet = false;
239 bool m_tagsHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace ConnectCases
244} // namespace Aws
GetCaseRuleResponse & WithTags(TagsT &&value)
GetCaseRuleResponse & AddTags(Aws::String key, Aws::Crt::Optional< Aws::String > value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
GetCaseRuleResponse & WithDescription(DescriptionT &&value)
GetCaseRuleResponse & WithCreatedTime(CreatedTimeT &&value)
const Aws::Map< Aws::String, Aws::Crt::Optional< Aws::String > > & GetTags() const
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)
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