/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Support { namespace Model { /** */ class DescribeAttachmentRequest : public SupportRequest { public: AWS_SUPPORT_API DescribeAttachmentRequest(); // 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 "DescribeAttachment"; } AWS_SUPPORT_API Aws::String SerializePayload() const override; AWS_SUPPORT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the attachment to return. Attachment IDs are returned by the * DescribeCommunications operation.

*/ inline const Aws::String& GetAttachmentId() const{ return m_attachmentId; } /** *

The ID of the attachment to return. Attachment IDs are returned by the * DescribeCommunications operation.

*/ inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; } /** *

The ID of the attachment to return. Attachment IDs are returned by the * DescribeCommunications operation.

*/ inline void SetAttachmentId(const Aws::String& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = value; } /** *

The ID of the attachment to return. Attachment IDs are returned by the * DescribeCommunications operation.

*/ inline void SetAttachmentId(Aws::String&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::move(value); } /** *

The ID of the attachment to return. Attachment IDs are returned by the * DescribeCommunications operation.

*/ inline void SetAttachmentId(const char* value) { m_attachmentIdHasBeenSet = true; m_attachmentId.assign(value); } /** *

The ID of the attachment to return. Attachment IDs are returned by the * DescribeCommunications operation.

*/ inline DescribeAttachmentRequest& WithAttachmentId(const Aws::String& value) { SetAttachmentId(value); return *this;} /** *

The ID of the attachment to return. Attachment IDs are returned by the * DescribeCommunications operation.

*/ inline DescribeAttachmentRequest& WithAttachmentId(Aws::String&& value) { SetAttachmentId(std::move(value)); return *this;} /** *

The ID of the attachment to return. Attachment IDs are returned by the * DescribeCommunications operation.

*/ inline DescribeAttachmentRequest& WithAttachmentId(const char* value) { SetAttachmentId(value); return *this;} private: Aws::String m_attachmentId; bool m_attachmentIdHasBeenSet = false; }; } // namespace Model } // namespace Support } // namespace Aws