AWS SDK for C++  0.12.9
AWS SDK for C++
AddCommunicationToCaseRequest.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 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
44  inline const Aws::String& GetCaseId() const{ return m_caseId; }
45 
51  inline void SetCaseId(const Aws::String& value) { m_caseIdHasBeenSet = true; m_caseId = value; }
52 
58  inline void SetCaseId(Aws::String&& value) { m_caseIdHasBeenSet = true; m_caseId = value; }
59 
65  inline void SetCaseId(const char* value) { m_caseIdHasBeenSet = true; m_caseId.assign(value); }
66 
72  inline AddCommunicationToCaseRequest& WithCaseId(const Aws::String& value) { SetCaseId(value); return *this;}
73 
79  inline AddCommunicationToCaseRequest& WithCaseId(Aws::String&& value) { SetCaseId(value); return *this;}
80 
86  inline AddCommunicationToCaseRequest& WithCaseId(const char* value) { SetCaseId(value); return *this;}
87 
91  inline const Aws::String& GetCommunicationBody() const{ return m_communicationBody; }
92 
96  inline void SetCommunicationBody(const Aws::String& value) { m_communicationBodyHasBeenSet = true; m_communicationBody = value; }
97 
101  inline void SetCommunicationBody(Aws::String&& value) { m_communicationBodyHasBeenSet = true; m_communicationBody = value; }
102 
106  inline void SetCommunicationBody(const char* value) { m_communicationBodyHasBeenSet = true; m_communicationBody.assign(value); }
107 
111  inline AddCommunicationToCaseRequest& WithCommunicationBody(const Aws::String& value) { SetCommunicationBody(value); return *this;}
112 
116  inline AddCommunicationToCaseRequest& WithCommunicationBody(Aws::String&& value) { SetCommunicationBody(value); return *this;}
117 
121  inline AddCommunicationToCaseRequest& WithCommunicationBody(const char* value) { SetCommunicationBody(value); return *this;}
122 
127  inline const Aws::Vector<Aws::String>& GetCcEmailAddresses() const{ return m_ccEmailAddresses; }
128 
133  inline void SetCcEmailAddresses(const Aws::Vector<Aws::String>& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses = value; }
134 
139  inline void SetCcEmailAddresses(Aws::Vector<Aws::String>&& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses = value; }
140 
145  inline AddCommunicationToCaseRequest& WithCcEmailAddresses(const Aws::Vector<Aws::String>& value) { SetCcEmailAddresses(value); return *this;}
146 
151  inline AddCommunicationToCaseRequest& WithCcEmailAddresses(Aws::Vector<Aws::String>&& value) { SetCcEmailAddresses(value); return *this;}
152 
157  inline AddCommunicationToCaseRequest& AddCcEmailAddresses(const Aws::String& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.push_back(value); return *this; }
158 
163  inline AddCommunicationToCaseRequest& AddCcEmailAddresses(Aws::String&& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.push_back(value); return *this; }
164 
169  inline AddCommunicationToCaseRequest& AddCcEmailAddresses(const char* value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.push_back(value); return *this; }
170 
175  inline const Aws::String& GetAttachmentSetId() const{ return m_attachmentSetId; }
176 
181  inline void SetAttachmentSetId(const Aws::String& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = value; }
182 
187  inline void SetAttachmentSetId(Aws::String&& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = value; }
188 
193  inline void SetAttachmentSetId(const char* value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId.assign(value); }
194 
199  inline AddCommunicationToCaseRequest& WithAttachmentSetId(const Aws::String& value) { SetAttachmentSetId(value); return *this;}
200 
205  inline AddCommunicationToCaseRequest& WithAttachmentSetId(Aws::String&& value) { SetAttachmentSetId(value); return *this;}
206 
211  inline AddCommunicationToCaseRequest& WithAttachmentSetId(const char* value) { SetAttachmentSetId(value); return *this;}
212 
213  private:
214  Aws::String m_caseId;
215  bool m_caseIdHasBeenSet;
216  Aws::String m_communicationBody;
217  bool m_communicationBodyHasBeenSet;
218  Aws::Vector<Aws::String> m_ccEmailAddresses;
219  bool m_ccEmailAddressesHasBeenSet;
220  Aws::String m_attachmentSetId;
221  bool m_attachmentSetIdHasBeenSet;
222  };
223 
224 } // namespace Model
225 } // namespace Support
226 } // namespace Aws
AddCommunicationToCaseRequest & WithAttachmentSetId(const Aws::String &value)
void SetCcEmailAddresses(const Aws::Vector< Aws::String > &value)
void SetCcEmailAddresses(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
AddCommunicationToCaseRequest & WithAttachmentSetId(Aws::String &&value)
AddCommunicationToCaseRequest & WithCommunicationBody(const Aws::String &value)
AddCommunicationToCaseRequest & AddCcEmailAddresses(const char *value)
AddCommunicationToCaseRequest & WithCommunicationBody(Aws::String &&value)
#define AWS_SUPPORT_API
AddCommunicationToCaseRequest & WithAttachmentSetId(const char *value)
AddCommunicationToCaseRequest & WithCommunicationBody(const char *value)
AddCommunicationToCaseRequest & AddCcEmailAddresses(Aws::String &&value)
AddCommunicationToCaseRequest & WithCcEmailAddresses(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AddCommunicationToCaseRequest & WithCaseId(const Aws::String &value)
AddCommunicationToCaseRequest & WithCaseId(Aws::String &&value)
const Aws::Vector< Aws::String > & GetCcEmailAddresses() const
AddCommunicationToCaseRequest & AddCcEmailAddresses(const Aws::String &value)
JSON (JavaScript Object Notation).
AddCommunicationToCaseRequest & WithCcEmailAddresses(Aws::Vector< Aws::String > &&value)
AddCommunicationToCaseRequest & WithCaseId(const char *value)