AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCaseRequest.h
1
6#pragma once
7#include <aws/support/Support_EXPORTS.h>
8#include <aws/support/SupportRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Support
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SUPPORT_API CreateCaseRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateCase"; }
32
33 AWS_SUPPORT_API Aws::String SerializePayload() const override;
34
36
37
39
45 inline const Aws::String& GetSubject() const{ return m_subject; }
46 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
47 inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; }
48 inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
49 inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); }
50 inline CreateCaseRequest& WithSubject(const Aws::String& value) { SetSubject(value); return *this;}
51 inline CreateCaseRequest& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;}
52 inline CreateCaseRequest& WithSubject(const char* value) { SetSubject(value); return *this;}
54
56
61 inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
62 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
63 inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
64 inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
65 inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
66 inline CreateCaseRequest& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
67 inline CreateCaseRequest& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
68 inline CreateCaseRequest& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
70
72
83 inline const Aws::String& GetSeverityCode() const{ return m_severityCode; }
84 inline bool SeverityCodeHasBeenSet() const { return m_severityCodeHasBeenSet; }
85 inline void SetSeverityCode(const Aws::String& value) { m_severityCodeHasBeenSet = true; m_severityCode = value; }
86 inline void SetSeverityCode(Aws::String&& value) { m_severityCodeHasBeenSet = true; m_severityCode = std::move(value); }
87 inline void SetSeverityCode(const char* value) { m_severityCodeHasBeenSet = true; m_severityCode.assign(value); }
88 inline CreateCaseRequest& WithSeverityCode(const Aws::String& value) { SetSeverityCode(value); return *this;}
89 inline CreateCaseRequest& WithSeverityCode(Aws::String&& value) { SetSeverityCode(std::move(value)); return *this;}
90 inline CreateCaseRequest& WithSeverityCode(const char* value) { SetSeverityCode(value); return *this;}
92
94
99 inline const Aws::String& GetCategoryCode() const{ return m_categoryCode; }
100 inline bool CategoryCodeHasBeenSet() const { return m_categoryCodeHasBeenSet; }
101 inline void SetCategoryCode(const Aws::String& value) { m_categoryCodeHasBeenSet = true; m_categoryCode = value; }
102 inline void SetCategoryCode(Aws::String&& value) { m_categoryCodeHasBeenSet = true; m_categoryCode = std::move(value); }
103 inline void SetCategoryCode(const char* value) { m_categoryCodeHasBeenSet = true; m_categoryCode.assign(value); }
104 inline CreateCaseRequest& WithCategoryCode(const Aws::String& value) { SetCategoryCode(value); return *this;}
105 inline CreateCaseRequest& WithCategoryCode(Aws::String&& value) { SetCategoryCode(std::move(value)); return *this;}
106 inline CreateCaseRequest& WithCategoryCode(const char* value) { SetCategoryCode(value); return *this;}
108
110
116 inline const Aws::String& GetCommunicationBody() const{ return m_communicationBody; }
117 inline bool CommunicationBodyHasBeenSet() const { return m_communicationBodyHasBeenSet; }
118 inline void SetCommunicationBody(const Aws::String& value) { m_communicationBodyHasBeenSet = true; m_communicationBody = value; }
119 inline void SetCommunicationBody(Aws::String&& value) { m_communicationBodyHasBeenSet = true; m_communicationBody = std::move(value); }
120 inline void SetCommunicationBody(const char* value) { m_communicationBodyHasBeenSet = true; m_communicationBody.assign(value); }
121 inline CreateCaseRequest& WithCommunicationBody(const Aws::String& value) { SetCommunicationBody(value); return *this;}
122 inline CreateCaseRequest& WithCommunicationBody(Aws::String&& value) { SetCommunicationBody(std::move(value)); return *this;}
123 inline CreateCaseRequest& WithCommunicationBody(const char* value) { SetCommunicationBody(value); return *this;}
125
127
134 inline const Aws::Vector<Aws::String>& GetCcEmailAddresses() const{ return m_ccEmailAddresses; }
135 inline bool CcEmailAddressesHasBeenSet() const { return m_ccEmailAddressesHasBeenSet; }
136 inline void SetCcEmailAddresses(const Aws::Vector<Aws::String>& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses = value; }
137 inline void SetCcEmailAddresses(Aws::Vector<Aws::String>&& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses = std::move(value); }
139 inline CreateCaseRequest& WithCcEmailAddresses(Aws::Vector<Aws::String>&& value) { SetCcEmailAddresses(std::move(value)); return *this;}
140 inline CreateCaseRequest& AddCcEmailAddresses(const Aws::String& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.push_back(value); return *this; }
141 inline CreateCaseRequest& AddCcEmailAddresses(Aws::String&& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.push_back(std::move(value)); return *this; }
142 inline CreateCaseRequest& AddCcEmailAddresses(const char* value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.push_back(value); return *this; }
144
146
152 inline const Aws::String& GetLanguage() const{ return m_language; }
153 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
154 inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; }
155 inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
156 inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); }
157 inline CreateCaseRequest& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;}
158 inline CreateCaseRequest& WithLanguage(Aws::String&& value) { SetLanguage(std::move(value)); return *this;}
159 inline CreateCaseRequest& WithLanguage(const char* value) { SetLanguage(value); return *this;}
161
163
168 inline const Aws::String& GetIssueType() const{ return m_issueType; }
169 inline bool IssueTypeHasBeenSet() const { return m_issueTypeHasBeenSet; }
170 inline void SetIssueType(const Aws::String& value) { m_issueTypeHasBeenSet = true; m_issueType = value; }
171 inline void SetIssueType(Aws::String&& value) { m_issueTypeHasBeenSet = true; m_issueType = std::move(value); }
172 inline void SetIssueType(const char* value) { m_issueTypeHasBeenSet = true; m_issueType.assign(value); }
173 inline CreateCaseRequest& WithIssueType(const Aws::String& value) { SetIssueType(value); return *this;}
174 inline CreateCaseRequest& WithIssueType(Aws::String&& value) { SetIssueType(std::move(value)); return *this;}
175 inline CreateCaseRequest& WithIssueType(const char* value) { SetIssueType(value); return *this;}
177
179
183 inline const Aws::String& GetAttachmentSetId() const{ return m_attachmentSetId; }
184 inline bool AttachmentSetIdHasBeenSet() const { return m_attachmentSetIdHasBeenSet; }
185 inline void SetAttachmentSetId(const Aws::String& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = value; }
186 inline void SetAttachmentSetId(Aws::String&& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = std::move(value); }
187 inline void SetAttachmentSetId(const char* value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId.assign(value); }
188 inline CreateCaseRequest& WithAttachmentSetId(const Aws::String& value) { SetAttachmentSetId(value); return *this;}
189 inline CreateCaseRequest& WithAttachmentSetId(Aws::String&& value) { SetAttachmentSetId(std::move(value)); return *this;}
190 inline CreateCaseRequest& WithAttachmentSetId(const char* value) { SetAttachmentSetId(value); return *this;}
192 private:
193
194 Aws::String m_subject;
195 bool m_subjectHasBeenSet = false;
196
197 Aws::String m_serviceCode;
198 bool m_serviceCodeHasBeenSet = false;
199
200 Aws::String m_severityCode;
201 bool m_severityCodeHasBeenSet = false;
202
203 Aws::String m_categoryCode;
204 bool m_categoryCodeHasBeenSet = false;
205
206 Aws::String m_communicationBody;
207 bool m_communicationBodyHasBeenSet = false;
208
209 Aws::Vector<Aws::String> m_ccEmailAddresses;
210 bool m_ccEmailAddressesHasBeenSet = false;
211
212 Aws::String m_language;
213 bool m_languageHasBeenSet = false;
214
215 Aws::String m_issueType;
216 bool m_issueTypeHasBeenSet = false;
217
218 Aws::String m_attachmentSetId;
219 bool m_attachmentSetIdHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace Support
224} // namespace Aws
const Aws::String & GetIssueType() const
void SetCommunicationBody(const Aws::String &value)
CreateCaseRequest & WithIssueType(Aws::String &&value)
void SetCategoryCode(Aws::String &&value)
CreateCaseRequest & WithAttachmentSetId(const Aws::String &value)
CreateCaseRequest & AddCcEmailAddresses(const char *value)
CreateCaseRequest & WithSubject(const char *value)
CreateCaseRequest & WithCcEmailAddresses(const Aws::Vector< Aws::String > &value)
const Aws::String & GetSubject() const
void SetCcEmailAddresses(const Aws::Vector< Aws::String > &value)
CreateCaseRequest & WithLanguage(Aws::String &&value)
void SetServiceCode(Aws::String &&value)
CreateCaseRequest & WithCategoryCode(const Aws::String &value)
const Aws::String & GetCommunicationBody() const
virtual const char * GetServiceRequestName() const override
void SetCategoryCode(const Aws::String &value)
CreateCaseRequest & AddCcEmailAddresses(const Aws::String &value)
const Aws::Vector< Aws::String > & GetCcEmailAddresses() const
void SetLanguage(const Aws::String &value)
CreateCaseRequest & WithServiceCode(const char *value)
CreateCaseRequest & WithSeverityCode(Aws::String &&value)
CreateCaseRequest & WithCcEmailAddresses(Aws::Vector< Aws::String > &&value)
CreateCaseRequest & WithAttachmentSetId(const char *value)
void SetServiceCode(const Aws::String &value)
CreateCaseRequest & WithServiceCode(Aws::String &&value)
CreateCaseRequest & WithIssueType(const char *value)
const Aws::String & GetSeverityCode() const
const Aws::String & GetLanguage() const
const Aws::String & GetServiceCode() const
void SetCommunicationBody(Aws::String &&value)
AWS_SUPPORT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCaseRequest & WithIssueType(const Aws::String &value)
CreateCaseRequest & WithSeverityCode(const Aws::String &value)
void SetSeverityCode(const Aws::String &value)
void SetAttachmentSetId(const Aws::String &value)
CreateCaseRequest & WithAttachmentSetId(Aws::String &&value)
CreateCaseRequest & WithCommunicationBody(const Aws::String &value)
const Aws::String & GetCategoryCode() const
CreateCaseRequest & WithLanguage(const char *value)
void SetAttachmentSetId(Aws::String &&value)
CreateCaseRequest & AddCcEmailAddresses(Aws::String &&value)
CreateCaseRequest & WithSeverityCode(const char *value)
CreateCaseRequest & WithCommunicationBody(const char *value)
CreateCaseRequest & WithServiceCode(const Aws::String &value)
void SetCcEmailAddresses(Aws::Vector< Aws::String > &&value)
CreateCaseRequest & WithSubject(const Aws::String &value)
const Aws::String & GetAttachmentSetId() const
CreateCaseRequest & WithCategoryCode(const char *value)
AWS_SUPPORT_API Aws::String SerializePayload() const override
void SetSeverityCode(Aws::String &&value)
CreateCaseRequest & WithCommunicationBody(Aws::String &&value)
void SetSubject(const Aws::String &value)
void SetIssueType(const Aws::String &value)
CreateCaseRequest & WithLanguage(const Aws::String &value)
CreateCaseRequest & WithSubject(Aws::String &&value)
CreateCaseRequest & WithCategoryCode(Aws::String &&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