AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SubjectT = Aws::String>
48 void SetSubject(SubjectT&& value) { m_subjectHasBeenSet = true; m_subject = std::forward<SubjectT>(value); }
49 template<typename SubjectT = Aws::String>
50 CreateCaseRequest& WithSubject(SubjectT&& value) { SetSubject(std::forward<SubjectT>(value)); return *this;}
52
54
59 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
60 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
61 template<typename ServiceCodeT = Aws::String>
62 void SetServiceCode(ServiceCodeT&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::forward<ServiceCodeT>(value); }
63 template<typename ServiceCodeT = Aws::String>
64 CreateCaseRequest& WithServiceCode(ServiceCodeT&& value) { SetServiceCode(std::forward<ServiceCodeT>(value)); return *this;}
66
68
79 inline const Aws::String& GetSeverityCode() const { return m_severityCode; }
80 inline bool SeverityCodeHasBeenSet() const { return m_severityCodeHasBeenSet; }
81 template<typename SeverityCodeT = Aws::String>
82 void SetSeverityCode(SeverityCodeT&& value) { m_severityCodeHasBeenSet = true; m_severityCode = std::forward<SeverityCodeT>(value); }
83 template<typename SeverityCodeT = Aws::String>
84 CreateCaseRequest& WithSeverityCode(SeverityCodeT&& value) { SetSeverityCode(std::forward<SeverityCodeT>(value)); return *this;}
86
88
93 inline const Aws::String& GetCategoryCode() const { return m_categoryCode; }
94 inline bool CategoryCodeHasBeenSet() const { return m_categoryCodeHasBeenSet; }
95 template<typename CategoryCodeT = Aws::String>
96 void SetCategoryCode(CategoryCodeT&& value) { m_categoryCodeHasBeenSet = true; m_categoryCode = std::forward<CategoryCodeT>(value); }
97 template<typename CategoryCodeT = Aws::String>
98 CreateCaseRequest& WithCategoryCode(CategoryCodeT&& value) { SetCategoryCode(std::forward<CategoryCodeT>(value)); return *this;}
100
102
108 inline const Aws::String& GetCommunicationBody() const { return m_communicationBody; }
109 inline bool CommunicationBodyHasBeenSet() const { return m_communicationBodyHasBeenSet; }
110 template<typename CommunicationBodyT = Aws::String>
111 void SetCommunicationBody(CommunicationBodyT&& value) { m_communicationBodyHasBeenSet = true; m_communicationBody = std::forward<CommunicationBodyT>(value); }
112 template<typename CommunicationBodyT = Aws::String>
113 CreateCaseRequest& WithCommunicationBody(CommunicationBodyT&& value) { SetCommunicationBody(std::forward<CommunicationBodyT>(value)); return *this;}
115
117
124 inline const Aws::Vector<Aws::String>& GetCcEmailAddresses() const { return m_ccEmailAddresses; }
125 inline bool CcEmailAddressesHasBeenSet() const { return m_ccEmailAddressesHasBeenSet; }
126 template<typename CcEmailAddressesT = Aws::Vector<Aws::String>>
127 void SetCcEmailAddresses(CcEmailAddressesT&& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses = std::forward<CcEmailAddressesT>(value); }
128 template<typename CcEmailAddressesT = Aws::Vector<Aws::String>>
129 CreateCaseRequest& WithCcEmailAddresses(CcEmailAddressesT&& value) { SetCcEmailAddresses(std::forward<CcEmailAddressesT>(value)); return *this;}
130 template<typename CcEmailAddressesT = Aws::String>
131 CreateCaseRequest& AddCcEmailAddresses(CcEmailAddressesT&& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.emplace_back(std::forward<CcEmailAddressesT>(value)); return *this; }
133
135
141 inline const Aws::String& GetLanguage() const { return m_language; }
142 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
143 template<typename LanguageT = Aws::String>
144 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
145 template<typename LanguageT = Aws::String>
146 CreateCaseRequest& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
148
150
155 inline const Aws::String& GetIssueType() const { return m_issueType; }
156 inline bool IssueTypeHasBeenSet() const { return m_issueTypeHasBeenSet; }
157 template<typename IssueTypeT = Aws::String>
158 void SetIssueType(IssueTypeT&& value) { m_issueTypeHasBeenSet = true; m_issueType = std::forward<IssueTypeT>(value); }
159 template<typename IssueTypeT = Aws::String>
160 CreateCaseRequest& WithIssueType(IssueTypeT&& value) { SetIssueType(std::forward<IssueTypeT>(value)); return *this;}
162
164
168 inline const Aws::String& GetAttachmentSetId() const { return m_attachmentSetId; }
169 inline bool AttachmentSetIdHasBeenSet() const { return m_attachmentSetIdHasBeenSet; }
170 template<typename AttachmentSetIdT = Aws::String>
171 void SetAttachmentSetId(AttachmentSetIdT&& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = std::forward<AttachmentSetIdT>(value); }
172 template<typename AttachmentSetIdT = Aws::String>
173 CreateCaseRequest& WithAttachmentSetId(AttachmentSetIdT&& value) { SetAttachmentSetId(std::forward<AttachmentSetIdT>(value)); return *this;}
175 private:
176
177 Aws::String m_subject;
178 bool m_subjectHasBeenSet = false;
179
180 Aws::String m_serviceCode;
181 bool m_serviceCodeHasBeenSet = false;
182
183 Aws::String m_severityCode;
184 bool m_severityCodeHasBeenSet = false;
185
186 Aws::String m_categoryCode;
187 bool m_categoryCodeHasBeenSet = false;
188
189 Aws::String m_communicationBody;
190 bool m_communicationBodyHasBeenSet = false;
191
192 Aws::Vector<Aws::String> m_ccEmailAddresses;
193 bool m_ccEmailAddressesHasBeenSet = false;
194
195 Aws::String m_language;
196 bool m_languageHasBeenSet = false;
197
198 Aws::String m_issueType;
199 bool m_issueTypeHasBeenSet = false;
200
201 Aws::String m_attachmentSetId;
202 bool m_attachmentSetIdHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace Support
207} // 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