AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
CreateCaseRequest.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/SupportRequest.h>
10#include <aws/support/Support_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Support {
16namespace Model {
17
21 public:
22 AWS_SUPPORT_API CreateCaseRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateCase"; }
29
30 AWS_SUPPORT_API Aws::String SerializePayload() const override;
31
33
35
41 inline const Aws::String& GetSubject() const { return m_subject; }
42 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
43 template <typename SubjectT = Aws::String>
44 void SetSubject(SubjectT&& value) {
45 m_subjectHasBeenSet = true;
46 m_subject = std::forward<SubjectT>(value);
47 }
48 template <typename SubjectT = Aws::String>
49 CreateCaseRequest& WithSubject(SubjectT&& value) {
50 SetSubject(std::forward<SubjectT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
62 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
63 template <typename ServiceCodeT = Aws::String>
64 void SetServiceCode(ServiceCodeT&& value) {
65 m_serviceCodeHasBeenSet = true;
66 m_serviceCode = std::forward<ServiceCodeT>(value);
67 }
68 template <typename ServiceCodeT = Aws::String>
69 CreateCaseRequest& WithServiceCode(ServiceCodeT&& value) {
70 SetServiceCode(std::forward<ServiceCodeT>(value));
71 return *this;
72 }
74
76
87 inline const Aws::String& GetSeverityCode() const { return m_severityCode; }
88 inline bool SeverityCodeHasBeenSet() const { return m_severityCodeHasBeenSet; }
89 template <typename SeverityCodeT = Aws::String>
90 void SetSeverityCode(SeverityCodeT&& value) {
91 m_severityCodeHasBeenSet = true;
92 m_severityCode = std::forward<SeverityCodeT>(value);
93 }
94 template <typename SeverityCodeT = Aws::String>
95 CreateCaseRequest& WithSeverityCode(SeverityCodeT&& value) {
96 SetSeverityCode(std::forward<SeverityCodeT>(value));
97 return *this;
98 }
100
102
107 inline const Aws::String& GetCategoryCode() const { return m_categoryCode; }
108 inline bool CategoryCodeHasBeenSet() const { return m_categoryCodeHasBeenSet; }
109 template <typename CategoryCodeT = Aws::String>
110 void SetCategoryCode(CategoryCodeT&& value) {
111 m_categoryCodeHasBeenSet = true;
112 m_categoryCode = std::forward<CategoryCodeT>(value);
113 }
114 template <typename CategoryCodeT = Aws::String>
115 CreateCaseRequest& WithCategoryCode(CategoryCodeT&& value) {
116 SetCategoryCode(std::forward<CategoryCodeT>(value));
117 return *this;
118 }
120
122
128 inline const Aws::String& GetCommunicationBody() const { return m_communicationBody; }
129 inline bool CommunicationBodyHasBeenSet() const { return m_communicationBodyHasBeenSet; }
130 template <typename CommunicationBodyT = Aws::String>
131 void SetCommunicationBody(CommunicationBodyT&& value) {
132 m_communicationBodyHasBeenSet = true;
133 m_communicationBody = std::forward<CommunicationBodyT>(value);
134 }
135 template <typename CommunicationBodyT = Aws::String>
136 CreateCaseRequest& WithCommunicationBody(CommunicationBodyT&& value) {
137 SetCommunicationBody(std::forward<CommunicationBodyT>(value));
138 return *this;
139 }
141
143
150 inline const Aws::Vector<Aws::String>& GetCcEmailAddresses() const { return m_ccEmailAddresses; }
151 inline bool CcEmailAddressesHasBeenSet() const { return m_ccEmailAddressesHasBeenSet; }
152 template <typename CcEmailAddressesT = Aws::Vector<Aws::String>>
153 void SetCcEmailAddresses(CcEmailAddressesT&& value) {
154 m_ccEmailAddressesHasBeenSet = true;
155 m_ccEmailAddresses = std::forward<CcEmailAddressesT>(value);
156 }
157 template <typename CcEmailAddressesT = Aws::Vector<Aws::String>>
158 CreateCaseRequest& WithCcEmailAddresses(CcEmailAddressesT&& value) {
159 SetCcEmailAddresses(std::forward<CcEmailAddressesT>(value));
160 return *this;
161 }
162 template <typename CcEmailAddressesT = Aws::String>
163 CreateCaseRequest& AddCcEmailAddresses(CcEmailAddressesT&& value) {
164 m_ccEmailAddressesHasBeenSet = true;
165 m_ccEmailAddresses.emplace_back(std::forward<CcEmailAddressesT>(value));
166 return *this;
167 }
169
171
178 inline const Aws::String& GetLanguage() const { return m_language; }
179 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
180 template <typename LanguageT = Aws::String>
181 void SetLanguage(LanguageT&& value) {
182 m_languageHasBeenSet = true;
183 m_language = std::forward<LanguageT>(value);
184 }
185 template <typename LanguageT = Aws::String>
186 CreateCaseRequest& WithLanguage(LanguageT&& value) {
187 SetLanguage(std::forward<LanguageT>(value));
188 return *this;
189 }
191
193
198 inline const Aws::String& GetIssueType() const { return m_issueType; }
199 inline bool IssueTypeHasBeenSet() const { return m_issueTypeHasBeenSet; }
200 template <typename IssueTypeT = Aws::String>
201 void SetIssueType(IssueTypeT&& value) {
202 m_issueTypeHasBeenSet = true;
203 m_issueType = std::forward<IssueTypeT>(value);
204 }
205 template <typename IssueTypeT = Aws::String>
206 CreateCaseRequest& WithIssueType(IssueTypeT&& value) {
207 SetIssueType(std::forward<IssueTypeT>(value));
208 return *this;
209 }
211
213
219 inline const Aws::String& GetAttachmentSetId() const { return m_attachmentSetId; }
220 inline bool AttachmentSetIdHasBeenSet() const { return m_attachmentSetIdHasBeenSet; }
221 template <typename AttachmentSetIdT = Aws::String>
222 void SetAttachmentSetId(AttachmentSetIdT&& value) {
223 m_attachmentSetIdHasBeenSet = true;
224 m_attachmentSetId = std::forward<AttachmentSetIdT>(value);
225 }
226 template <typename AttachmentSetIdT = Aws::String>
227 CreateCaseRequest& WithAttachmentSetId(AttachmentSetIdT&& value) {
228 SetAttachmentSetId(std::forward<AttachmentSetIdT>(value));
229 return *this;
230 }
232
234
242 inline const Aws::Vector<Aws::String>& GetUploadIds() const { return m_uploadIds; }
243 inline bool UploadIdsHasBeenSet() const { return m_uploadIdsHasBeenSet; }
244 template <typename UploadIdsT = Aws::Vector<Aws::String>>
245 void SetUploadIds(UploadIdsT&& value) {
246 m_uploadIdsHasBeenSet = true;
247 m_uploadIds = std::forward<UploadIdsT>(value);
248 }
249 template <typename UploadIdsT = Aws::Vector<Aws::String>>
250 CreateCaseRequest& WithUploadIds(UploadIdsT&& value) {
251 SetUploadIds(std::forward<UploadIdsT>(value));
252 return *this;
253 }
254 template <typename UploadIdsT = Aws::String>
255 CreateCaseRequest& AddUploadIds(UploadIdsT&& value) {
256 m_uploadIdsHasBeenSet = true;
257 m_uploadIds.emplace_back(std::forward<UploadIdsT>(value));
258 return *this;
259 }
261
263
269 inline bool GetDryRun() const { return m_dryRun; }
270 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
271 inline void SetDryRun(bool value) {
272 m_dryRunHasBeenSet = true;
273 m_dryRun = value;
274 }
275 inline CreateCaseRequest& WithDryRun(bool value) {
276 SetDryRun(value);
277 return *this;
278 }
280 private:
281 Aws::String m_subject;
282
283 Aws::String m_serviceCode;
284
285 Aws::String m_severityCode;
286
287 Aws::String m_categoryCode;
288
289 Aws::String m_communicationBody;
290
291 Aws::Vector<Aws::String> m_ccEmailAddresses;
292
293 Aws::String m_language;
294
295 Aws::String m_issueType;
296
297 Aws::String m_attachmentSetId;
298
299 Aws::Vector<Aws::String> m_uploadIds;
300
301 bool m_dryRun{false};
302 bool m_subjectHasBeenSet = false;
303 bool m_serviceCodeHasBeenSet = false;
304 bool m_severityCodeHasBeenSet = false;
305 bool m_categoryCodeHasBeenSet = false;
306 bool m_communicationBodyHasBeenSet = false;
307 bool m_ccEmailAddressesHasBeenSet = false;
308 bool m_languageHasBeenSet = false;
309 bool m_issueTypeHasBeenSet = false;
310 bool m_attachmentSetIdHasBeenSet = false;
311 bool m_uploadIdsHasBeenSet = false;
312 bool m_dryRunHasBeenSet = false;
313};
314
315} // namespace Model
316} // namespace Support
317} // namespace Aws
const Aws::String & GetIssueType() const
void SetAttachmentSetId(AttachmentSetIdT &&value)
CreateCaseRequest & WithCategoryCode(CategoryCodeT &&value)
void SetCcEmailAddresses(CcEmailAddressesT &&value)
CreateCaseRequest & WithLanguage(LanguageT &&value)
const Aws::String & GetSubject() const
CreateCaseRequest & WithAttachmentSetId(AttachmentSetIdT &&value)
const Aws::Vector< Aws::String > & GetUploadIds() const
CreateCaseRequest & WithCommunicationBody(CommunicationBodyT &&value)
CreateCaseRequest & WithDryRun(bool value)
const Aws::String & GetCommunicationBody() const
virtual const char * GetServiceRequestName() const override
void SetCategoryCode(CategoryCodeT &&value)
const Aws::Vector< Aws::String > & GetCcEmailAddresses() const
CreateCaseRequest & AddUploadIds(UploadIdsT &&value)
void SetCommunicationBody(CommunicationBodyT &&value)
const Aws::String & GetSeverityCode() const
const Aws::String & GetLanguage() const
const Aws::String & GetServiceCode() const
AWS_SUPPORT_API CreateCaseRequest()=default
AWS_SUPPORT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCaseRequest & AddCcEmailAddresses(CcEmailAddressesT &&value)
void SetSeverityCode(SeverityCodeT &&value)
CreateCaseRequest & WithServiceCode(ServiceCodeT &&value)
const Aws::String & GetCategoryCode() const
CreateCaseRequest & WithUploadIds(UploadIdsT &&value)
CreateCaseRequest & WithCcEmailAddresses(CcEmailAddressesT &&value)
const Aws::String & GetAttachmentSetId() const
AWS_SUPPORT_API Aws::String SerializePayload() const override
CreateCaseRequest & WithSubject(SubjectT &&value)
CreateCaseRequest & WithSeverityCode(SeverityCodeT &&value)
void SetServiceCode(ServiceCodeT &&value)
CreateCaseRequest & WithIssueType(IssueTypeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector