/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Support { namespace Model { /** *

The content and file name of the attachment returned by the * DescribeAttachment operation.

See Also:

AWS * API Reference

*/ class DescribeAttachmentResult { public: AWS_SUPPORT_API DescribeAttachmentResult(); AWS_SUPPORT_API DescribeAttachmentResult(const Aws::AmazonWebServiceResult& result); AWS_SUPPORT_API DescribeAttachmentResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

This object includes the attachment content and file name.

In the * previous response syntax, the value for the data parameter appears * 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 Attachment& GetAttachment() const{ return m_attachment; } /** *

This object includes the attachment content and file name.

In the * previous response syntax, the value for the data parameter appears * 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 SetAttachment(const Attachment& value) { m_attachment = value; } /** *

This object includes the attachment content and file name.

In the * previous response syntax, the value for the data parameter appears * 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 SetAttachment(Attachment&& value) { m_attachment = std::move(value); } /** *

This object includes the attachment content and file name.

In the * previous response syntax, the value for the data parameter appears * 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 DescribeAttachmentResult& WithAttachment(const Attachment& value) { SetAttachment(value); return *this;} /** *

This object includes the attachment content and file name.

In the * previous response syntax, the value for the data parameter appears * 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 DescribeAttachmentResult& WithAttachment(Attachment&& value) { SetAttachment(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeAttachmentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeAttachmentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeAttachmentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Attachment m_attachment; Aws::String m_requestId; }; } // namespace Model } // namespace Support } // namespace Aws