AWS SDK for C++  1.9.40
AWS SDK for C++
AddCommunicationToCaseRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Support
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "AddCommunicationToCase"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::String& GetCaseId() const{ return m_caseId; }
44 
50  inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; }
51 
57  inline void SetCaseId(const Aws::String& value) { m_caseIdHasBeenSet = true; m_caseId = value; }
58 
64  inline void SetCaseId(Aws::String&& value) { m_caseIdHasBeenSet = true; m_caseId = std::move(value); }
65 
71  inline void SetCaseId(const char* value) { m_caseIdHasBeenSet = true; m_caseId.assign(value); }
72 
78  inline AddCommunicationToCaseRequest& WithCaseId(const Aws::String& value) { SetCaseId(value); return *this;}
79 
85  inline AddCommunicationToCaseRequest& WithCaseId(Aws::String&& value) { SetCaseId(std::move(value)); return *this;}
86 
92  inline AddCommunicationToCaseRequest& WithCaseId(const char* value) { SetCaseId(value); return *this;}
93 
94 
98  inline const Aws::String& GetCommunicationBody() const{ return m_communicationBody; }
99 
103  inline bool CommunicationBodyHasBeenSet() const { return m_communicationBodyHasBeenSet; }
104 
108  inline void SetCommunicationBody(const Aws::String& value) { m_communicationBodyHasBeenSet = true; m_communicationBody = value; }
109 
113  inline void SetCommunicationBody(Aws::String&& value) { m_communicationBodyHasBeenSet = true; m_communicationBody = std::move(value); }
114 
118  inline void SetCommunicationBody(const char* value) { m_communicationBodyHasBeenSet = true; m_communicationBody.assign(value); }
119 
123  inline AddCommunicationToCaseRequest& WithCommunicationBody(const Aws::String& value) { SetCommunicationBody(value); return *this;}
124 
128  inline AddCommunicationToCaseRequest& WithCommunicationBody(Aws::String&& value) { SetCommunicationBody(std::move(value)); return *this;}
129 
133  inline AddCommunicationToCaseRequest& WithCommunicationBody(const char* value) { SetCommunicationBody(value); return *this;}
134 
135 
140  inline const Aws::Vector<Aws::String>& GetCcEmailAddresses() const{ return m_ccEmailAddresses; }
141 
146  inline bool CcEmailAddressesHasBeenSet() const { return m_ccEmailAddressesHasBeenSet; }
147 
152  inline void SetCcEmailAddresses(const Aws::Vector<Aws::String>& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses = value; }
153 
158  inline void SetCcEmailAddresses(Aws::Vector<Aws::String>&& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses = std::move(value); }
159 
164  inline AddCommunicationToCaseRequest& WithCcEmailAddresses(const Aws::Vector<Aws::String>& value) { SetCcEmailAddresses(value); return *this;}
165 
170  inline AddCommunicationToCaseRequest& WithCcEmailAddresses(Aws::Vector<Aws::String>&& value) { SetCcEmailAddresses(std::move(value)); return *this;}
171 
176  inline AddCommunicationToCaseRequest& AddCcEmailAddresses(const Aws::String& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.push_back(value); return *this; }
177 
182  inline AddCommunicationToCaseRequest& AddCcEmailAddresses(Aws::String&& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.push_back(std::move(value)); return *this; }
183 
188  inline AddCommunicationToCaseRequest& AddCcEmailAddresses(const char* value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.push_back(value); return *this; }
189 
190 
195  inline const Aws::String& GetAttachmentSetId() const{ return m_attachmentSetId; }
196 
201  inline bool AttachmentSetIdHasBeenSet() const { return m_attachmentSetIdHasBeenSet; }
202 
207  inline void SetAttachmentSetId(const Aws::String& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = value; }
208 
213  inline void SetAttachmentSetId(Aws::String&& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = std::move(value); }
214 
219  inline void SetAttachmentSetId(const char* value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId.assign(value); }
220 
225  inline AddCommunicationToCaseRequest& WithAttachmentSetId(const Aws::String& value) { SetAttachmentSetId(value); return *this;}
226 
231  inline AddCommunicationToCaseRequest& WithAttachmentSetId(Aws::String&& value) { SetAttachmentSetId(std::move(value)); return *this;}
232 
237  inline AddCommunicationToCaseRequest& WithAttachmentSetId(const char* value) { SetAttachmentSetId(value); return *this;}
238 
239  private:
240 
241  Aws::String m_caseId;
242  bool m_caseIdHasBeenSet;
243 
244  Aws::String m_communicationBody;
245  bool m_communicationBodyHasBeenSet;
246 
247  Aws::Vector<Aws::String> m_ccEmailAddresses;
248  bool m_ccEmailAddressesHasBeenSet;
249 
250  Aws::String m_attachmentSetId;
251  bool m_attachmentSetIdHasBeenSet;
252  };
253 
254 } // namespace Model
255 } // namespace Support
256 } // namespace Aws
Aws::Support::Model::AddCommunicationToCaseRequest::GetCaseId
const Aws::String & GetCaseId() const
Definition: AddCommunicationToCaseRequest.h:43
Aws::Support::Model::AddCommunicationToCaseRequest::WithAttachmentSetId
AddCommunicationToCaseRequest & WithAttachmentSetId(const Aws::String &value)
Definition: AddCommunicationToCaseRequest.h:225
Aws::Support::Model::AddCommunicationToCaseRequest::WithAttachmentSetId
AddCommunicationToCaseRequest & WithAttachmentSetId(Aws::String &&value)
Definition: AddCommunicationToCaseRequest.h:231
Aws::Support::Model::AddCommunicationToCaseRequest::GetAttachmentSetId
const Aws::String & GetAttachmentSetId() const
Definition: AddCommunicationToCaseRequest.h:195
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Support::Model::AddCommunicationToCaseRequest::WithAttachmentSetId
AddCommunicationToCaseRequest & WithAttachmentSetId(const char *value)
Definition: AddCommunicationToCaseRequest.h:237
Aws::Support::Model::AddCommunicationToCaseRequest::AddCcEmailAddresses
AddCommunicationToCaseRequest & AddCcEmailAddresses(const Aws::String &value)
Definition: AddCommunicationToCaseRequest.h:176
Aws::Support::Model::AddCommunicationToCaseRequest::SetCommunicationBody
void SetCommunicationBody(const char *value)
Definition: AddCommunicationToCaseRequest.h:118
Aws::Support::Model::AddCommunicationToCaseRequest::SetCaseId
void SetCaseId(Aws::String &&value)
Definition: AddCommunicationToCaseRequest.h:64
Aws::Support::Model::AddCommunicationToCaseRequest::SetAttachmentSetId
void SetAttachmentSetId(Aws::String &&value)
Definition: AddCommunicationToCaseRequest.h:213
Aws::Support::Model::AddCommunicationToCaseRequest::WithCaseId
AddCommunicationToCaseRequest & WithCaseId(const char *value)
Definition: AddCommunicationToCaseRequest.h:92
Aws::Support::Model::AddCommunicationToCaseRequest::SetCommunicationBody
void SetCommunicationBody(Aws::String &&value)
Definition: AddCommunicationToCaseRequest.h:113
Aws::Support::Model::AddCommunicationToCaseRequest
Definition: AddCommunicationToCaseRequest.h:23
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Support::Model::AddCommunicationToCaseRequest::AddCcEmailAddresses
AddCommunicationToCaseRequest & AddCcEmailAddresses(const char *value)
Definition: AddCommunicationToCaseRequest.h:188
Aws::Support::Model::AddCommunicationToCaseRequest::SetCommunicationBody
void SetCommunicationBody(const Aws::String &value)
Definition: AddCommunicationToCaseRequest.h:108
Aws::Support::SupportRequest
Definition: SupportRequest.h:17
AWSVector.h
Aws::Support::Model::AddCommunicationToCaseRequest::AttachmentSetIdHasBeenSet
bool AttachmentSetIdHasBeenSet() const
Definition: AddCommunicationToCaseRequest.h:201
SupportRequest.h
Aws::Support::Model::AddCommunicationToCaseRequest::AddCommunicationToCaseRequest
AddCommunicationToCaseRequest()
Aws::Support::Model::AddCommunicationToCaseRequest::CaseIdHasBeenSet
bool CaseIdHasBeenSet() const
Definition: AddCommunicationToCaseRequest.h:50
Aws::Support::Model::AddCommunicationToCaseRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Support::Model::AddCommunicationToCaseRequest::GetCommunicationBody
const Aws::String & GetCommunicationBody() const
Definition: AddCommunicationToCaseRequest.h:98
Aws::Support::Model::AddCommunicationToCaseRequest::WithCaseId
AddCommunicationToCaseRequest & WithCaseId(Aws::String &&value)
Definition: AddCommunicationToCaseRequest.h:85
Aws::Support::Model::AddCommunicationToCaseRequest::WithCcEmailAddresses
AddCommunicationToCaseRequest & WithCcEmailAddresses(Aws::Vector< Aws::String > &&value)
Definition: AddCommunicationToCaseRequest.h:170
Aws::Support::Model::AddCommunicationToCaseRequest::SetAttachmentSetId
void SetAttachmentSetId(const char *value)
Definition: AddCommunicationToCaseRequest.h:219
AWSString.h
Aws::Support::Model::AddCommunicationToCaseRequest::SetCaseId
void SetCaseId(const char *value)
Definition: AddCommunicationToCaseRequest.h:71
Support_EXPORTS.h
Aws::Support::Model::AddCommunicationToCaseRequest::WithCommunicationBody
AddCommunicationToCaseRequest & WithCommunicationBody(const Aws::String &value)
Definition: AddCommunicationToCaseRequest.h:123
AWS_SUPPORT_API
#define AWS_SUPPORT_API
Definition: Support_EXPORTS.h:28
Aws::Support::Model::AddCommunicationToCaseRequest::WithCommunicationBody
AddCommunicationToCaseRequest & WithCommunicationBody(Aws::String &&value)
Definition: AddCommunicationToCaseRequest.h:128
Aws::Support::Model::AddCommunicationToCaseRequest::SetCaseId
void SetCaseId(const Aws::String &value)
Definition: AddCommunicationToCaseRequest.h:57
Aws::Support::Model::AddCommunicationToCaseRequest::SetAttachmentSetId
void SetAttachmentSetId(const Aws::String &value)
Definition: AddCommunicationToCaseRequest.h:207
Aws::Support::Model::AddCommunicationToCaseRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Support::Model::AddCommunicationToCaseRequest::CommunicationBodyHasBeenSet
bool CommunicationBodyHasBeenSet() const
Definition: AddCommunicationToCaseRequest.h:103
Aws::Support::Model::AddCommunicationToCaseRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddCommunicationToCaseRequest.h:31
Aws::Support::Model::AddCommunicationToCaseRequest::AddCcEmailAddresses
AddCommunicationToCaseRequest & AddCcEmailAddresses(Aws::String &&value)
Definition: AddCommunicationToCaseRequest.h:182
Aws
Definition: AccessManagementClient.h:15
Aws::Support::Model::AddCommunicationToCaseRequest::SetCcEmailAddresses
void SetCcEmailAddresses(const Aws::Vector< Aws::String > &value)
Definition: AddCommunicationToCaseRequest.h:152
Aws::Support::Model::AddCommunicationToCaseRequest::WithCommunicationBody
AddCommunicationToCaseRequest & WithCommunicationBody(const char *value)
Definition: AddCommunicationToCaseRequest.h:133
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Support::Model::AddCommunicationToCaseRequest::WithCaseId
AddCommunicationToCaseRequest & WithCaseId(const Aws::String &value)
Definition: AddCommunicationToCaseRequest.h:78
Aws::Support::Model::AddCommunicationToCaseRequest::SetCcEmailAddresses
void SetCcEmailAddresses(Aws::Vector< Aws::String > &&value)
Definition: AddCommunicationToCaseRequest.h:158
Aws::Support::Model::AddCommunicationToCaseRequest::WithCcEmailAddresses
AddCommunicationToCaseRequest & WithCcEmailAddresses(const Aws::Vector< Aws::String > &value)
Definition: AddCommunicationToCaseRequest.h:164
Aws::Support::Model::AddCommunicationToCaseRequest::GetCcEmailAddresses
const Aws::Vector< Aws::String > & GetCcEmailAddresses() const
Definition: AddCommunicationToCaseRequest.h:140
Aws::Support::Model::AddCommunicationToCaseRequest::CcEmailAddressesHasBeenSet
bool CcEmailAddressesHasBeenSet() const
Definition: AddCommunicationToCaseRequest.h:146