AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
65 public:
66 AWS_SUPPORT_API CaseDetails() = default;
67 AWS_SUPPORT_API CaseDetails(Aws::Utils::Json::JsonView jsonValue);
69 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
70
72
77 inline const Aws::String& GetCaseId() const { return m_caseId; }
78 inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; }
79 template <typename CaseIdT = Aws::String>
80 void SetCaseId(CaseIdT&& value) {
81 m_caseIdHasBeenSet = true;
82 m_caseId = std::forward<CaseIdT>(value);
83 }
84 template <typename CaseIdT = Aws::String>
85 CaseDetails& WithCaseId(CaseIdT&& value) {
86 SetCaseId(std::forward<CaseIdT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetDisplayId() const { return m_displayId; }
97 inline bool DisplayIdHasBeenSet() const { return m_displayIdHasBeenSet; }
98 template <typename DisplayIdT = Aws::String>
99 void SetDisplayId(DisplayIdT&& value) {
100 m_displayIdHasBeenSet = true;
101 m_displayId = std::forward<DisplayIdT>(value);
102 }
103 template <typename DisplayIdT = Aws::String>
104 CaseDetails& WithDisplayId(DisplayIdT&& value) {
105 SetDisplayId(std::forward<DisplayIdT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetSubject() const { return m_subject; }
115 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
116 template <typename SubjectT = Aws::String>
117 void SetSubject(SubjectT&& value) {
118 m_subjectHasBeenSet = true;
119 m_subject = std::forward<SubjectT>(value);
120 }
121 template <typename SubjectT = Aws::String>
122 CaseDetails& WithSubject(SubjectT&& value) {
123 SetSubject(std::forward<SubjectT>(value));
124 return *this;
125 }
127
129
138 inline const Aws::String& GetStatus() const { return m_status; }
139 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
140 template <typename StatusT = Aws::String>
141 void SetStatus(StatusT&& value) {
142 m_statusHasBeenSet = true;
143 m_status = std::forward<StatusT>(value);
144 }
145 template <typename StatusT = Aws::String>
146 CaseDetails& WithStatus(StatusT&& value) {
147 SetStatus(std::forward<StatusT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
158 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
159 template <typename ServiceCodeT = Aws::String>
160 void SetServiceCode(ServiceCodeT&& value) {
161 m_serviceCodeHasBeenSet = true;
162 m_serviceCode = std::forward<ServiceCodeT>(value);
163 }
164 template <typename ServiceCodeT = Aws::String>
165 CaseDetails& WithServiceCode(ServiceCodeT&& value) {
166 SetServiceCode(std::forward<ServiceCodeT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetCategoryCode() const { return m_categoryCode; }
176 inline bool CategoryCodeHasBeenSet() const { return m_categoryCodeHasBeenSet; }
177 template <typename CategoryCodeT = Aws::String>
178 void SetCategoryCode(CategoryCodeT&& value) {
179 m_categoryCodeHasBeenSet = true;
180 m_categoryCode = std::forward<CategoryCodeT>(value);
181 }
182 template <typename CategoryCodeT = Aws::String>
183 CaseDetails& WithCategoryCode(CategoryCodeT&& value) {
184 SetCategoryCode(std::forward<CategoryCodeT>(value));
185 return *this;
186 }
188
190
194 inline const Aws::String& GetSeverityCode() const { return m_severityCode; }
195 inline bool SeverityCodeHasBeenSet() const { return m_severityCodeHasBeenSet; }
196 template <typename SeverityCodeT = Aws::String>
197 void SetSeverityCode(SeverityCodeT&& value) {
198 m_severityCodeHasBeenSet = true;
199 m_severityCode = std::forward<SeverityCodeT>(value);
200 }
201 template <typename SeverityCodeT = Aws::String>
202 CaseDetails& WithSeverityCode(SeverityCodeT&& value) {
203 SetSeverityCode(std::forward<SeverityCodeT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::String& GetSubmittedBy() const { return m_submittedBy; }
213 inline bool SubmittedByHasBeenSet() const { return m_submittedByHasBeenSet; }
214 template <typename SubmittedByT = Aws::String>
215 void SetSubmittedBy(SubmittedByT&& value) {
216 m_submittedByHasBeenSet = true;
217 m_submittedBy = std::forward<SubmittedByT>(value);
218 }
219 template <typename SubmittedByT = Aws::String>
220 CaseDetails& WithSubmittedBy(SubmittedByT&& value) {
221 SetSubmittedBy(std::forward<SubmittedByT>(value));
222 return *this;
223 }
225
227
231 inline const Aws::String& GetTimeCreated() const { return m_timeCreated; }
232 inline bool TimeCreatedHasBeenSet() const { return m_timeCreatedHasBeenSet; }
233 template <typename TimeCreatedT = Aws::String>
234 void SetTimeCreated(TimeCreatedT&& value) {
235 m_timeCreatedHasBeenSet = true;
236 m_timeCreated = std::forward<TimeCreatedT>(value);
237 }
238 template <typename TimeCreatedT = Aws::String>
239 CaseDetails& WithTimeCreated(TimeCreatedT&& value) {
240 SetTimeCreated(std::forward<TimeCreatedT>(value));
241 return *this;
242 }
244
246
252 inline const RecentCaseCommunications& GetRecentCommunications() const { return m_recentCommunications; }
253 inline bool RecentCommunicationsHasBeenSet() const { return m_recentCommunicationsHasBeenSet; }
254 template <typename RecentCommunicationsT = RecentCaseCommunications>
255 void SetRecentCommunications(RecentCommunicationsT&& value) {
256 m_recentCommunicationsHasBeenSet = true;
257 m_recentCommunications = std::forward<RecentCommunicationsT>(value);
258 }
259 template <typename RecentCommunicationsT = RecentCaseCommunications>
260 CaseDetails& WithRecentCommunications(RecentCommunicationsT&& value) {
261 SetRecentCommunications(std::forward<RecentCommunicationsT>(value));
262 return *this;
263 }
265
267
270 inline const Aws::Vector<Aws::String>& GetCcEmailAddresses() const { return m_ccEmailAddresses; }
271 inline bool CcEmailAddressesHasBeenSet() const { return m_ccEmailAddressesHasBeenSet; }
272 template <typename CcEmailAddressesT = Aws::Vector<Aws::String>>
273 void SetCcEmailAddresses(CcEmailAddressesT&& value) {
274 m_ccEmailAddressesHasBeenSet = true;
275 m_ccEmailAddresses = std::forward<CcEmailAddressesT>(value);
276 }
277 template <typename CcEmailAddressesT = Aws::Vector<Aws::String>>
278 CaseDetails& WithCcEmailAddresses(CcEmailAddressesT&& value) {
279 SetCcEmailAddresses(std::forward<CcEmailAddressesT>(value));
280 return *this;
281 }
282 template <typename CcEmailAddressesT = Aws::String>
283 CaseDetails& AddCcEmailAddresses(CcEmailAddressesT&& value) {
284 m_ccEmailAddressesHasBeenSet = true;
285 m_ccEmailAddresses.emplace_back(std::forward<CcEmailAddressesT>(value));
286 return *this;
287 }
289
291
297 inline const Aws::String& GetLanguage() const { return m_language; }
298 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
299 template <typename LanguageT = Aws::String>
300 void SetLanguage(LanguageT&& value) {
301 m_languageHasBeenSet = true;
302 m_language = std::forward<LanguageT>(value);
303 }
304 template <typename LanguageT = Aws::String>
305 CaseDetails& WithLanguage(LanguageT&& value) {
306 SetLanguage(std::forward<LanguageT>(value));
307 return *this;
308 }
310 private:
311 Aws::String m_caseId;
312
313 Aws::String m_displayId;
314
315 Aws::String m_subject;
316
317 Aws::String m_status;
318
319 Aws::String m_serviceCode;
320
321 Aws::String m_categoryCode;
322
323 Aws::String m_severityCode;
324
325 Aws::String m_submittedBy;
326
327 Aws::String m_timeCreated;
328
329 RecentCaseCommunications m_recentCommunications;
330
331 Aws::Vector<Aws::String> m_ccEmailAddresses;
332
333 Aws::String m_language;
334 bool m_caseIdHasBeenSet = false;
335 bool m_displayIdHasBeenSet = false;
336 bool m_subjectHasBeenSet = false;
337 bool m_statusHasBeenSet = false;
338 bool m_serviceCodeHasBeenSet = false;
339 bool m_categoryCodeHasBeenSet = false;
340 bool m_severityCodeHasBeenSet = false;
341 bool m_submittedByHasBeenSet = false;
342 bool m_timeCreatedHasBeenSet = false;
343 bool m_recentCommunicationsHasBeenSet = false;
344 bool m_ccEmailAddressesHasBeenSet = false;
345 bool m_languageHasBeenSet = false;
346};
347
348} // namespace Model
349} // namespace Support
350} // 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:96
CaseDetails & WithStatus(StatusT &&value)
const Aws::String & GetSeverityCode() const
const Aws::String & GetCaseId() const
Definition CaseDetails.h:77
void SetCaseId(CaseIdT &&value)
Definition CaseDetails.h:80
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:85
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)
Definition CaseDetails.h:99
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