AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
177 inline const Aws::String& GetLanguage() const { return m_language; }
178 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
179 template <typename LanguageT = Aws::String>
180 void SetLanguage(LanguageT&& value) {
181 m_languageHasBeenSet = true;
182 m_language = std::forward<LanguageT>(value);
183 }
184 template <typename LanguageT = Aws::String>
185 CreateCaseRequest& WithLanguage(LanguageT&& value) {
186 SetLanguage(std::forward<LanguageT>(value));
187 return *this;
188 }
190
192
197 inline const Aws::String& GetIssueType() const { return m_issueType; }
198 inline bool IssueTypeHasBeenSet() const { return m_issueTypeHasBeenSet; }
199 template <typename IssueTypeT = Aws::String>
200 void SetIssueType(IssueTypeT&& value) {
201 m_issueTypeHasBeenSet = true;
202 m_issueType = std::forward<IssueTypeT>(value);
203 }
204 template <typename IssueTypeT = Aws::String>
205 CreateCaseRequest& WithIssueType(IssueTypeT&& value) {
206 SetIssueType(std::forward<IssueTypeT>(value));
207 return *this;
208 }
210
212
216 inline const Aws::String& GetAttachmentSetId() const { return m_attachmentSetId; }
217 inline bool AttachmentSetIdHasBeenSet() const { return m_attachmentSetIdHasBeenSet; }
218 template <typename AttachmentSetIdT = Aws::String>
219 void SetAttachmentSetId(AttachmentSetIdT&& value) {
220 m_attachmentSetIdHasBeenSet = true;
221 m_attachmentSetId = std::forward<AttachmentSetIdT>(value);
222 }
223 template <typename AttachmentSetIdT = Aws::String>
224 CreateCaseRequest& WithAttachmentSetId(AttachmentSetIdT&& value) {
225 SetAttachmentSetId(std::forward<AttachmentSetIdT>(value));
226 return *this;
227 }
229 private:
230 Aws::String m_subject;
231
232 Aws::String m_serviceCode;
233
234 Aws::String m_severityCode;
235
236 Aws::String m_categoryCode;
237
238 Aws::String m_communicationBody;
239
240 Aws::Vector<Aws::String> m_ccEmailAddresses;
241
242 Aws::String m_language;
243
244 Aws::String m_issueType;
245
246 Aws::String m_attachmentSetId;
247 bool m_subjectHasBeenSet = false;
248 bool m_serviceCodeHasBeenSet = false;
249 bool m_severityCodeHasBeenSet = false;
250 bool m_categoryCodeHasBeenSet = false;
251 bool m_communicationBodyHasBeenSet = false;
252 bool m_ccEmailAddressesHasBeenSet = false;
253 bool m_languageHasBeenSet = false;
254 bool m_issueTypeHasBeenSet = false;
255 bool m_attachmentSetIdHasBeenSet = false;
256};
257
258} // namespace Model
259} // namespace Support
260} // 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)
CreateCaseRequest & WithCommunicationBody(CommunicationBodyT &&value)
const Aws::String & GetCommunicationBody() const
virtual const char * GetServiceRequestName() const override
void SetCategoryCode(CategoryCodeT &&value)
const Aws::Vector< Aws::String > & GetCcEmailAddresses() const
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 & 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