AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
CaseDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/support/Support_EXPORTS.h>
10#include <aws/support/model/RecentCaseCommunications.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Support {
22namespace Model {
23
66 public:
67 AWS_SUPPORT_API CaseDetails() = default;
68 AWS_SUPPORT_API CaseDetails(Aws::Utils::Json::JsonView jsonValue);
70 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
71
73
78 inline const Aws::String& GetCaseId() const { return m_caseId; }
79 inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; }
80 template <typename CaseIdT = Aws::String>
81 void SetCaseId(CaseIdT&& value) {
82 m_caseIdHasBeenSet = true;
83 m_caseId = std::forward<CaseIdT>(value);
84 }
85 template <typename CaseIdT = Aws::String>
86 CaseDetails& WithCaseId(CaseIdT&& value) {
87 SetCaseId(std::forward<CaseIdT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetDisplayId() const { return m_displayId; }
98 inline bool DisplayIdHasBeenSet() const { return m_displayIdHasBeenSet; }
99 template <typename DisplayIdT = Aws::String>
100 void SetDisplayId(DisplayIdT&& value) {
101 m_displayIdHasBeenSet = true;
102 m_displayId = std::forward<DisplayIdT>(value);
103 }
104 template <typename DisplayIdT = Aws::String>
105 CaseDetails& WithDisplayId(DisplayIdT&& value) {
106 SetDisplayId(std::forward<DisplayIdT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetSubject() const { return m_subject; }
116 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
117 template <typename SubjectT = Aws::String>
118 void SetSubject(SubjectT&& value) {
119 m_subjectHasBeenSet = true;
120 m_subject = std::forward<SubjectT>(value);
121 }
122 template <typename SubjectT = Aws::String>
123 CaseDetails& WithSubject(SubjectT&& value) {
124 SetSubject(std::forward<SubjectT>(value));
125 return *this;
126 }
128
130
139 inline const Aws::String& GetStatus() const { return m_status; }
140 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
141 template <typename StatusT = Aws::String>
142 void SetStatus(StatusT&& value) {
143 m_statusHasBeenSet = true;
144 m_status = std::forward<StatusT>(value);
145 }
146 template <typename StatusT = Aws::String>
147 CaseDetails& WithStatus(StatusT&& value) {
148 SetStatus(std::forward<StatusT>(value));
149 return *this;
150 }
152
154
158 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
159 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
160 template <typename ServiceCodeT = Aws::String>
161 void SetServiceCode(ServiceCodeT&& value) {
162 m_serviceCodeHasBeenSet = true;
163 m_serviceCode = std::forward<ServiceCodeT>(value);
164 }
165 template <typename ServiceCodeT = Aws::String>
166 CaseDetails& WithServiceCode(ServiceCodeT&& value) {
167 SetServiceCode(std::forward<ServiceCodeT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::String& GetCategoryCode() const { return m_categoryCode; }
177 inline bool CategoryCodeHasBeenSet() const { return m_categoryCodeHasBeenSet; }
178 template <typename CategoryCodeT = Aws::String>
179 void SetCategoryCode(CategoryCodeT&& value) {
180 m_categoryCodeHasBeenSet = true;
181 m_categoryCode = std::forward<CategoryCodeT>(value);
182 }
183 template <typename CategoryCodeT = Aws::String>
184 CaseDetails& WithCategoryCode(CategoryCodeT&& value) {
185 SetCategoryCode(std::forward<CategoryCodeT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::String& GetSeverityCode() const { return m_severityCode; }
196 inline bool SeverityCodeHasBeenSet() const { return m_severityCodeHasBeenSet; }
197 template <typename SeverityCodeT = Aws::String>
198 void SetSeverityCode(SeverityCodeT&& value) {
199 m_severityCodeHasBeenSet = true;
200 m_severityCode = std::forward<SeverityCodeT>(value);
201 }
202 template <typename SeverityCodeT = Aws::String>
203 CaseDetails& WithSeverityCode(SeverityCodeT&& value) {
204 SetSeverityCode(std::forward<SeverityCodeT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::String& GetSubmittedBy() const { return m_submittedBy; }
214 inline bool SubmittedByHasBeenSet() const { return m_submittedByHasBeenSet; }
215 template <typename SubmittedByT = Aws::String>
216 void SetSubmittedBy(SubmittedByT&& value) {
217 m_submittedByHasBeenSet = true;
218 m_submittedBy = std::forward<SubmittedByT>(value);
219 }
220 template <typename SubmittedByT = Aws::String>
221 CaseDetails& WithSubmittedBy(SubmittedByT&& value) {
222 SetSubmittedBy(std::forward<SubmittedByT>(value));
223 return *this;
224 }
226
228
232 inline const Aws::String& GetTimeCreated() const { return m_timeCreated; }
233 inline bool TimeCreatedHasBeenSet() const { return m_timeCreatedHasBeenSet; }
234 template <typename TimeCreatedT = Aws::String>
235 void SetTimeCreated(TimeCreatedT&& value) {
236 m_timeCreatedHasBeenSet = true;
237 m_timeCreated = std::forward<TimeCreatedT>(value);
238 }
239 template <typename TimeCreatedT = Aws::String>
240 CaseDetails& WithTimeCreated(TimeCreatedT&& value) {
241 SetTimeCreated(std::forward<TimeCreatedT>(value));
242 return *this;
243 }
245
247
253 inline const RecentCaseCommunications& GetRecentCommunications() const { return m_recentCommunications; }
254 inline bool RecentCommunicationsHasBeenSet() const { return m_recentCommunicationsHasBeenSet; }
255 template <typename RecentCommunicationsT = RecentCaseCommunications>
256 void SetRecentCommunications(RecentCommunicationsT&& value) {
257 m_recentCommunicationsHasBeenSet = true;
258 m_recentCommunications = std::forward<RecentCommunicationsT>(value);
259 }
260 template <typename RecentCommunicationsT = RecentCaseCommunications>
261 CaseDetails& WithRecentCommunications(RecentCommunicationsT&& value) {
262 SetRecentCommunications(std::forward<RecentCommunicationsT>(value));
263 return *this;
264 }
266
268
271 inline const Aws::Vector<Aws::String>& GetCcEmailAddresses() const { return m_ccEmailAddresses; }
272 inline bool CcEmailAddressesHasBeenSet() const { return m_ccEmailAddressesHasBeenSet; }
273 template <typename CcEmailAddressesT = Aws::Vector<Aws::String>>
274 void SetCcEmailAddresses(CcEmailAddressesT&& value) {
275 m_ccEmailAddressesHasBeenSet = true;
276 m_ccEmailAddresses = std::forward<CcEmailAddressesT>(value);
277 }
278 template <typename CcEmailAddressesT = Aws::Vector<Aws::String>>
279 CaseDetails& WithCcEmailAddresses(CcEmailAddressesT&& value) {
280 SetCcEmailAddresses(std::forward<CcEmailAddressesT>(value));
281 return *this;
282 }
283 template <typename CcEmailAddressesT = Aws::String>
284 CaseDetails& AddCcEmailAddresses(CcEmailAddressesT&& value) {
285 m_ccEmailAddressesHasBeenSet = true;
286 m_ccEmailAddresses.emplace_back(std::forward<CcEmailAddressesT>(value));
287 return *this;
288 }
290
292
299 inline const Aws::String& GetLanguage() const { return m_language; }
300 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
301 template <typename LanguageT = Aws::String>
302 void SetLanguage(LanguageT&& value) {
303 m_languageHasBeenSet = true;
304 m_language = std::forward<LanguageT>(value);
305 }
306 template <typename LanguageT = Aws::String>
307 CaseDetails& WithLanguage(LanguageT&& value) {
308 SetLanguage(std::forward<LanguageT>(value));
309 return *this;
310 }
312 private:
313 Aws::String m_caseId;
314
315 Aws::String m_displayId;
316
317 Aws::String m_subject;
318
319 Aws::String m_status;
320
321 Aws::String m_serviceCode;
322
323 Aws::String m_categoryCode;
324
325 Aws::String m_severityCode;
326
327 Aws::String m_submittedBy;
328
329 Aws::String m_timeCreated;
330
331 RecentCaseCommunications m_recentCommunications;
332
333 Aws::Vector<Aws::String> m_ccEmailAddresses;
334
335 Aws::String m_language;
336 bool m_caseIdHasBeenSet = false;
337 bool m_displayIdHasBeenSet = false;
338 bool m_subjectHasBeenSet = false;
339 bool m_statusHasBeenSet = false;
340 bool m_serviceCodeHasBeenSet = false;
341 bool m_categoryCodeHasBeenSet = false;
342 bool m_severityCodeHasBeenSet = false;
343 bool m_submittedByHasBeenSet = false;
344 bool m_timeCreatedHasBeenSet = false;
345 bool m_recentCommunicationsHasBeenSet = false;
346 bool m_ccEmailAddressesHasBeenSet = false;
347 bool m_languageHasBeenSet = false;
348};
349
350} // namespace Model
351} // namespace Support
352} // namespace Aws
void SetSubject(SubjectT &&value)
void SetSeverityCode(SeverityCodeT &&value)
const Aws::String & GetCategoryCode() const
CaseDetails & WithDisplayId(DisplayIdT &&value)
CaseDetails & WithServiceCode(ServiceCodeT &&value)
const Aws::Vector< Aws::String > & GetCcEmailAddresses() const
CaseDetails & WithCategoryCode(CategoryCodeT &&value)
CaseDetails & WithSeverityCode(SeverityCodeT &&value)
void SetStatus(StatusT &&value)
void SetLanguage(LanguageT &&value)
const Aws::String & GetDisplayId() const
Definition CaseDetails.h:97
CaseDetails & WithStatus(StatusT &&value)
const Aws::String & GetSeverityCode() const
const Aws::String & GetCaseId() const
Definition CaseDetails.h:78
void SetCaseId(CaseIdT &&value)
Definition CaseDetails.h:81
CaseDetails & AddCcEmailAddresses(CcEmailAddressesT &&value)
const RecentCaseCommunications & GetRecentCommunications() const
void SetSubmittedBy(SubmittedByT &&value)
CaseDetails & WithSubject(SubjectT &&value)
const Aws::String & GetStatus() const
const Aws::String & GetServiceCode() const
void SetCcEmailAddresses(CcEmailAddressesT &&value)
void SetTimeCreated(TimeCreatedT &&value)
CaseDetails & WithCaseId(CaseIdT &&value)
Definition CaseDetails.h:86
void SetRecentCommunications(RecentCommunicationsT &&value)
const Aws::String & GetTimeCreated() const
AWS_SUPPORT_API CaseDetails(Aws::Utils::Json::JsonView jsonValue)
void SetCategoryCode(CategoryCodeT &&value)
const Aws::String & GetSubject() const
CaseDetails & WithLanguage(LanguageT &&value)
const Aws::String & GetLanguage() const
const Aws::String & GetSubmittedBy() const
CaseDetails & WithCcEmailAddresses(CcEmailAddressesT &&value)
AWS_SUPPORT_API CaseDetails()=default
void SetDisplayId(DisplayIdT &&value)
AWS_SUPPORT_API CaseDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
bool RecentCommunicationsHasBeenSet() const
CaseDetails & WithRecentCommunications(RecentCommunicationsT &&value)
CaseDetails & WithTimeCreated(TimeCreatedT &&value)
CaseDetails & WithSubmittedBy(SubmittedByT &&value)
void SetServiceCode(ServiceCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue