/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Support { namespace Model { /** */ class AddAttachmentsToSetRequest : public SupportRequest { public: AWS_SUPPORT_API AddAttachmentsToSetRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "AddAttachmentsToSet"; } AWS_SUPPORT_API Aws::String SerializePayload() const override; AWS_SUPPORT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the attachment set. If an attachmentSetId is not * specified, a new attachment set is created, and the ID of the set is returned in * the response. If an attachmentSetId is specified, the attachments * are added to the specified set, if it exists.

*/ inline const Aws::String& GetAttachmentSetId() const{ return m_attachmentSetId; } /** *

The ID of the attachment set. If an attachmentSetId is not * specified, a new attachment set is created, and the ID of the set is returned in * the response. If an attachmentSetId is specified, the attachments * are added to the specified set, if it exists.

*/ inline bool AttachmentSetIdHasBeenSet() const { return m_attachmentSetIdHasBeenSet; } /** *

The ID of the attachment set. If an attachmentSetId is not * specified, a new attachment set is created, and the ID of the set is returned in * the response. If an attachmentSetId is specified, the attachments * are added to the specified set, if it exists.

*/ inline void SetAttachmentSetId(const Aws::String& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = value; } /** *

The ID of the attachment set. If an attachmentSetId is not * specified, a new attachment set is created, and the ID of the set is returned in * the response. If an attachmentSetId is specified, the attachments * are added to the specified set, if it exists.

*/ inline void SetAttachmentSetId(Aws::String&& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = std::move(value); } /** *

The ID of the attachment set. If an attachmentSetId is not * specified, a new attachment set is created, and the ID of the set is returned in * the response. If an attachmentSetId is specified, the attachments * are added to the specified set, if it exists.

*/ inline void SetAttachmentSetId(const char* value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId.assign(value); } /** *

The ID of the attachment set. If an attachmentSetId is not * specified, a new attachment set is created, and the ID of the set is returned in * the response. If an attachmentSetId is specified, the attachments * are added to the specified set, if it exists.

*/ inline AddAttachmentsToSetRequest& WithAttachmentSetId(const Aws::String& value) { SetAttachmentSetId(value); return *this;} /** *

The ID of the attachment set. If an attachmentSetId is not * specified, a new attachment set is created, and the ID of the set is returned in * the response. If an attachmentSetId is specified, the attachments * are added to the specified set, if it exists.

*/ inline AddAttachmentsToSetRequest& WithAttachmentSetId(Aws::String&& value) { SetAttachmentSetId(std::move(value)); return *this;} /** *

The ID of the attachment set. If an attachmentSetId is not * specified, a new attachment set is created, and the ID of the set is returned in * the response. If an attachmentSetId is specified, the attachments * are added to the specified set, if it exists.

*/ inline AddAttachmentsToSetRequest& WithAttachmentSetId(const char* value) { SetAttachmentSetId(value); return *this;} /** *

One or more attachments to add to the set. You can add up to three * attachments per set. The size limit is 5 MB per attachment.

In the * Attachment object, use the data parameter to specify * the contents of the attachment file. In the previous request syntax, the value * for data appear as blob, which is represented as a * base64-encoded string. The value for fileName is the name of the * attachment, such as troubleshoot-screenshot.png.

*/ inline const Aws::Vector& GetAttachments() const{ return m_attachments; } /** *

One or more attachments to add to the set. You can add up to three * attachments per set. The size limit is 5 MB per attachment.

In the * Attachment object, use the data parameter to specify * the contents of the attachment file. In the previous request syntax, the value * for data appear as blob, which is represented as a * base64-encoded string. The value for fileName is the name of the * attachment, such as troubleshoot-screenshot.png.

*/ inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; } /** *

One or more attachments to add to the set. You can add up to three * attachments per set. The size limit is 5 MB per attachment.

In the * Attachment object, use the data parameter to specify * the contents of the attachment file. In the previous request syntax, the value * for data appear as blob, which is represented as a * base64-encoded string. The value for fileName is the name of the * attachment, such as troubleshoot-screenshot.png.

*/ inline void SetAttachments(const Aws::Vector& value) { m_attachmentsHasBeenSet = true; m_attachments = value; } /** *

One or more attachments to add to the set. You can add up to three * attachments per set. The size limit is 5 MB per attachment.

In the * Attachment object, use the data parameter to specify * the contents of the attachment file. In the previous request syntax, the value * for data appear as blob, which is represented as a * base64-encoded string. The value for fileName is the name of the * attachment, such as troubleshoot-screenshot.png.

*/ inline void SetAttachments(Aws::Vector&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); } /** *

One or more attachments to add to the set. You can add up to three * attachments per set. The size limit is 5 MB per attachment.

In the * Attachment object, use the data parameter to specify * the contents of the attachment file. In the previous request syntax, the value * for data appear as blob, which is represented as a * base64-encoded string. The value for fileName is the name of the * attachment, such as troubleshoot-screenshot.png.

*/ inline AddAttachmentsToSetRequest& WithAttachments(const Aws::Vector& value) { SetAttachments(value); return *this;} /** *

One or more attachments to add to the set. You can add up to three * attachments per set. The size limit is 5 MB per attachment.

In the * Attachment object, use the data parameter to specify * the contents of the attachment file. In the previous request syntax, the value * for data appear as blob, which is represented as a * base64-encoded string. The value for fileName is the name of the * attachment, such as troubleshoot-screenshot.png.

*/ inline AddAttachmentsToSetRequest& WithAttachments(Aws::Vector&& value) { SetAttachments(std::move(value)); return *this;} /** *

One or more attachments to add to the set. You can add up to three * attachments per set. The size limit is 5 MB per attachment.

In the * Attachment object, use the data parameter to specify * the contents of the attachment file. In the previous request syntax, the value * for data appear as blob, which is represented as a * base64-encoded string. The value for fileName is the name of the * attachment, such as troubleshoot-screenshot.png.

*/ inline AddAttachmentsToSetRequest& AddAttachments(const Attachment& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; } /** *

One or more attachments to add to the set. You can add up to three * attachments per set. The size limit is 5 MB per attachment.

In the * Attachment object, use the data parameter to specify * the contents of the attachment file. In the previous request syntax, the value * for data appear as blob, which is represented as a * base64-encoded string. The value for fileName is the name of the * attachment, such as troubleshoot-screenshot.png.

*/ inline AddAttachmentsToSetRequest& AddAttachments(Attachment&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; } private: Aws::String m_attachmentSetId; bool m_attachmentSetIdHasBeenSet = false; Aws::Vector m_attachments; bool m_attachmentsHasBeenSet = false; }; } // namespace Model } // namespace Support } // namespace Aws