AWS SDK for C++  0.12.9
AWS SDK for C++
CreateCaseRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Support
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
41  inline const Aws::String& GetSubject() const{ return m_subject; }
42 
46  inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; }
47 
51  inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = value; }
52 
56  inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); }
57 
61  inline CreateCaseRequest& WithSubject(const Aws::String& value) { SetSubject(value); return *this;}
62 
66  inline CreateCaseRequest& WithSubject(Aws::String&& value) { SetSubject(value); return *this;}
67 
71  inline CreateCaseRequest& WithSubject(const char* value) { SetSubject(value); return *this;}
72 
77  inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
78 
83  inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
84 
89  inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
90 
95  inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
96 
101  inline CreateCaseRequest& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
102 
107  inline CreateCaseRequest& WithServiceCode(Aws::String&& value) { SetServiceCode(value); return *this;}
108 
113  inline CreateCaseRequest& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
114 
122  inline const Aws::String& GetSeverityCode() const{ return m_severityCode; }
123 
131  inline void SetSeverityCode(const Aws::String& value) { m_severityCodeHasBeenSet = true; m_severityCode = value; }
132 
140  inline void SetSeverityCode(Aws::String&& value) { m_severityCodeHasBeenSet = true; m_severityCode = value; }
141 
149  inline void SetSeverityCode(const char* value) { m_severityCodeHasBeenSet = true; m_severityCode.assign(value); }
150 
158  inline CreateCaseRequest& WithSeverityCode(const Aws::String& value) { SetSeverityCode(value); return *this;}
159 
167  inline CreateCaseRequest& WithSeverityCode(Aws::String&& value) { SetSeverityCode(value); return *this;}
168 
176  inline CreateCaseRequest& WithSeverityCode(const char* value) { SetSeverityCode(value); return *this;}
177 
181  inline const Aws::String& GetCategoryCode() const{ return m_categoryCode; }
182 
186  inline void SetCategoryCode(const Aws::String& value) { m_categoryCodeHasBeenSet = true; m_categoryCode = value; }
187 
191  inline void SetCategoryCode(Aws::String&& value) { m_categoryCodeHasBeenSet = true; m_categoryCode = value; }
192 
196  inline void SetCategoryCode(const char* value) { m_categoryCodeHasBeenSet = true; m_categoryCode.assign(value); }
197 
201  inline CreateCaseRequest& WithCategoryCode(const Aws::String& value) { SetCategoryCode(value); return *this;}
202 
206  inline CreateCaseRequest& WithCategoryCode(Aws::String&& value) { SetCategoryCode(value); return *this;}
207 
211  inline CreateCaseRequest& WithCategoryCode(const char* value) { SetCategoryCode(value); return *this;}
212 
217  inline const Aws::String& GetCommunicationBody() const{ return m_communicationBody; }
218 
223  inline void SetCommunicationBody(const Aws::String& value) { m_communicationBodyHasBeenSet = true; m_communicationBody = value; }
224 
229  inline void SetCommunicationBody(Aws::String&& value) { m_communicationBodyHasBeenSet = true; m_communicationBody = value; }
230 
235  inline void SetCommunicationBody(const char* value) { m_communicationBodyHasBeenSet = true; m_communicationBody.assign(value); }
236 
241  inline CreateCaseRequest& WithCommunicationBody(const Aws::String& value) { SetCommunicationBody(value); return *this;}
242 
247  inline CreateCaseRequest& WithCommunicationBody(Aws::String&& value) { SetCommunicationBody(value); return *this;}
248 
253  inline CreateCaseRequest& WithCommunicationBody(const char* value) { SetCommunicationBody(value); return *this;}
254 
258  inline const Aws::Vector<Aws::String>& GetCcEmailAddresses() const{ return m_ccEmailAddresses; }
259 
263  inline void SetCcEmailAddresses(const Aws::Vector<Aws::String>& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses = value; }
264 
268  inline void SetCcEmailAddresses(Aws::Vector<Aws::String>&& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses = value; }
269 
273  inline CreateCaseRequest& WithCcEmailAddresses(const Aws::Vector<Aws::String>& value) { SetCcEmailAddresses(value); return *this;}
274 
278  inline CreateCaseRequest& WithCcEmailAddresses(Aws::Vector<Aws::String>&& value) { SetCcEmailAddresses(value); return *this;}
279 
283  inline CreateCaseRequest& AddCcEmailAddresses(const Aws::String& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.push_back(value); return *this; }
284 
288  inline CreateCaseRequest& AddCcEmailAddresses(Aws::String&& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.push_back(value); return *this; }
289 
293  inline CreateCaseRequest& AddCcEmailAddresses(const char* value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.push_back(value); return *this; }
294 
300  inline const Aws::String& GetLanguage() const{ return m_language; }
301 
307  inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; }
308 
314  inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = value; }
315 
321  inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); }
322 
328  inline CreateCaseRequest& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;}
329 
335  inline CreateCaseRequest& WithLanguage(Aws::String&& value) { SetLanguage(value); return *this;}
336 
342  inline CreateCaseRequest& WithLanguage(const char* value) { SetLanguage(value); return *this;}
343 
348  inline const Aws::String& GetIssueType() const{ return m_issueType; }
349 
354  inline void SetIssueType(const Aws::String& value) { m_issueTypeHasBeenSet = true; m_issueType = value; }
355 
360  inline void SetIssueType(Aws::String&& value) { m_issueTypeHasBeenSet = true; m_issueType = value; }
361 
366  inline void SetIssueType(const char* value) { m_issueTypeHasBeenSet = true; m_issueType.assign(value); }
367 
372  inline CreateCaseRequest& WithIssueType(const Aws::String& value) { SetIssueType(value); return *this;}
373 
378  inline CreateCaseRequest& WithIssueType(Aws::String&& value) { SetIssueType(value); return *this;}
379 
384  inline CreateCaseRequest& WithIssueType(const char* value) { SetIssueType(value); return *this;}
385 
390  inline const Aws::String& GetAttachmentSetId() const{ return m_attachmentSetId; }
391 
396  inline void SetAttachmentSetId(const Aws::String& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = value; }
397 
402  inline void SetAttachmentSetId(Aws::String&& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = value; }
403 
408  inline void SetAttachmentSetId(const char* value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId.assign(value); }
409 
414  inline CreateCaseRequest& WithAttachmentSetId(const Aws::String& value) { SetAttachmentSetId(value); return *this;}
415 
420  inline CreateCaseRequest& WithAttachmentSetId(Aws::String&& value) { SetAttachmentSetId(value); return *this;}
421 
426  inline CreateCaseRequest& WithAttachmentSetId(const char* value) { SetAttachmentSetId(value); return *this;}
427 
428  private:
429  Aws::String m_subject;
430  bool m_subjectHasBeenSet;
431  Aws::String m_serviceCode;
432  bool m_serviceCodeHasBeenSet;
433  Aws::String m_severityCode;
434  bool m_severityCodeHasBeenSet;
435  Aws::String m_categoryCode;
436  bool m_categoryCodeHasBeenSet;
437  Aws::String m_communicationBody;
438  bool m_communicationBodyHasBeenSet;
439  Aws::Vector<Aws::String> m_ccEmailAddresses;
440  bool m_ccEmailAddressesHasBeenSet;
441  Aws::String m_language;
442  bool m_languageHasBeenSet;
443  Aws::String m_issueType;
444  bool m_issueTypeHasBeenSet;
445  Aws::String m_attachmentSetId;
446  bool m_attachmentSetIdHasBeenSet;
447  };
448 
449 } // namespace Model
450 } // namespace Support
451 } // namespace Aws
CreateCaseRequest & AddCcEmailAddresses(Aws::String &&value)
CreateCaseRequest & WithServiceCode(Aws::String &&value)
void SetServiceCode(const Aws::String &value)
void SetIssueType(const Aws::String &value)
void SetIssueType(Aws::String &&value)
void SetSubject(Aws::String &&value)
CreateCaseRequest & WithSubject(const char *value)
CreateCaseRequest & AddCcEmailAddresses(const char *value)
CreateCaseRequest & WithSeverityCode(const Aws::String &value)
void SetCategoryCode(const Aws::String &value)
CreateCaseRequest & WithIssueType(Aws::String &&value)
CreateCaseRequest & WithSeverityCode(Aws::String &&value)
void SetCategoryCode(Aws::String &&value)
void SetCommunicationBody(Aws::String &&value)
CreateCaseRequest & WithLanguage(Aws::String &&value)
void SetCcEmailAddresses(const Aws::Vector< Aws::String > &value)
const Aws::String & GetCategoryCode() const
void SetSeverityCode(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateCaseRequest & WithCommunicationBody(const char *value)
const Aws::String & GetServiceCode() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
const Aws::String & GetIssueType() const
CreateCaseRequest & WithAttachmentSetId(const Aws::String &value)
void SetSeverityCode(const Aws::String &value)
void SetCommunicationBody(const char *value)
CreateCaseRequest & WithServiceCode(const char *value)
const Aws::String & GetSeverityCode() const
CreateCaseRequest & WithIssueType(const char *value)
const Aws::String & GetLanguage() const
void SetSubject(const Aws::String &value)
CreateCaseRequest & WithSeverityCode(const char *value)
CreateCaseRequest & WithCommunicationBody(Aws::String &&value)
CreateCaseRequest & WithCommunicationBody(const Aws::String &value)
void SetAttachmentSetId(const char *value)
void SetAttachmentSetId(const Aws::String &value)
CreateCaseRequest & WithServiceCode(const Aws::String &value)
void SetCcEmailAddresses(Aws::Vector< Aws::String > &&value)
CreateCaseRequest & WithLanguage(const char *value)
CreateCaseRequest & WithSubject(Aws::String &&value)
void SetCommunicationBody(const Aws::String &value)
CreateCaseRequest & WithSubject(const Aws::String &value)
#define AWS_SUPPORT_API
CreateCaseRequest & WithCcEmailAddresses(Aws::Vector< Aws::String > &&value)
CreateCaseRequest & WithCategoryCode(const Aws::String &value)
const Aws::Vector< Aws::String > & GetCcEmailAddresses() const
CreateCaseRequest & AddCcEmailAddresses(const Aws::String &value)
CreateCaseRequest & WithCcEmailAddresses(const Aws::Vector< Aws::String > &value)
void SetServiceCode(Aws::String &&value)
CreateCaseRequest & WithLanguage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateCaseRequest & WithIssueType(const Aws::String &value)
CreateCaseRequest & WithCategoryCode(const char *value)
const Aws::String & GetSubject() const
CreateCaseRequest & WithAttachmentSetId(const char *value)
void SetLanguage(const Aws::String &value)
void SetAttachmentSetId(Aws::String &&value)
CreateCaseRequest & WithCategoryCode(Aws::String &&value)
CreateCaseRequest & WithAttachmentSetId(Aws::String &&value)
const Aws::String & GetCommunicationBody() const
const Aws::String & GetAttachmentSetId() const
JSON (JavaScript Object Notation).