AWS SDK for C++  0.14.3
AWS SDK for C++
AddAttachmentsToSetRequest.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
21 
22 namespace Aws
23 {
24 namespace Support
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
45  inline const Aws::String& GetAttachmentSetId() const{ return m_attachmentSetId; }
46 
53  inline void SetAttachmentSetId(const Aws::String& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = value; }
54 
61  inline void SetAttachmentSetId(Aws::String&& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = value; }
62 
69  inline void SetAttachmentSetId(const char* value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId.assign(value); }
70 
77  inline AddAttachmentsToSetRequest& WithAttachmentSetId(const Aws::String& value) { SetAttachmentSetId(value); return *this;}
78 
85  inline AddAttachmentsToSetRequest& WithAttachmentSetId(Aws::String&& value) { SetAttachmentSetId(value); return *this;}
86 
93  inline AddAttachmentsToSetRequest& WithAttachmentSetId(const char* value) { SetAttachmentSetId(value); return *this;}
94 
99  inline const Aws::Vector<Attachment>& GetAttachments() const{ return m_attachments; }
100 
105  inline void SetAttachments(const Aws::Vector<Attachment>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
106 
111  inline void SetAttachments(Aws::Vector<Attachment>&& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
112 
117  inline AddAttachmentsToSetRequest& WithAttachments(const Aws::Vector<Attachment>& value) { SetAttachments(value); return *this;}
118 
123  inline AddAttachmentsToSetRequest& WithAttachments(Aws::Vector<Attachment>&& value) { SetAttachments(value); return *this;}
124 
129  inline AddAttachmentsToSetRequest& AddAttachments(const Attachment& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
130 
135  inline AddAttachmentsToSetRequest& AddAttachments(Attachment&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
136 
137  private:
138  Aws::String m_attachmentSetId;
139  bool m_attachmentSetIdHasBeenSet;
140  Aws::Vector<Attachment> m_attachments;
141  bool m_attachmentsHasBeenSet;
142  };
143 
144 } // namespace Model
145 } // namespace Support
146 } // namespace Aws
void SetAttachments(const Aws::Vector< Attachment > &value)
AddAttachmentsToSetRequest & WithAttachments(Aws::Vector< Attachment > &&value)
AddAttachmentsToSetRequest & WithAttachmentSetId(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
const Aws::Vector< Attachment > & GetAttachments() const
void SetAttachments(Aws::Vector< Attachment > &&value)
AddAttachmentsToSetRequest & WithAttachmentSetId(const char *value)
#define AWS_SUPPORT_API
AddAttachmentsToSetRequest & WithAttachments(const Aws::Vector< Attachment > &value)
AddAttachmentsToSetRequest & WithAttachmentSetId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AddAttachmentsToSetRequest & AddAttachments(Attachment &&value)
AddAttachmentsToSetRequest & AddAttachments(const Attachment &value)
JSON (JavaScript Object Notation).