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

The file name and ID of an attachment to a case communication. You can use * the ID to retrieve the attachment with the DescribeAttachment * operation.

See Also:

AWS * API Reference

*/ class AttachmentDetails { public: AWS_SUPPORT_API AttachmentDetails(); AWS_SUPPORT_API AttachmentDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SUPPORT_API AttachmentDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the attachment.

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

The ID of the attachment.

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

The ID of the attachment.

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

The ID of the attachment.

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

The ID of the attachment.

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

The ID of the attachment.

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

The ID of the attachment.

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

The ID of the attachment.

*/ inline AttachmentDetails& WithAttachmentId(const char* value) { SetAttachmentId(value); return *this;} /** *

The file name of the attachment.

*/ inline const Aws::String& GetFileName() const{ return m_fileName; } /** *

The file name of the attachment.

*/ inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; } /** *

The file name of the attachment.

*/ inline void SetFileName(const Aws::String& value) { m_fileNameHasBeenSet = true; m_fileName = value; } /** *

The file name of the attachment.

*/ inline void SetFileName(Aws::String&& value) { m_fileNameHasBeenSet = true; m_fileName = std::move(value); } /** *

The file name of the attachment.

*/ inline void SetFileName(const char* value) { m_fileNameHasBeenSet = true; m_fileName.assign(value); } /** *

The file name of the attachment.

*/ inline AttachmentDetails& WithFileName(const Aws::String& value) { SetFileName(value); return *this;} /** *

The file name of the attachment.

*/ inline AttachmentDetails& WithFileName(Aws::String&& value) { SetFileName(std::move(value)); return *this;} /** *

The file name of the attachment.

*/ inline AttachmentDetails& WithFileName(const char* value) { SetFileName(value); return *this;} private: Aws::String m_attachmentId; bool m_attachmentIdHasBeenSet = false; Aws::String m_fileName; bool m_fileNameHasBeenSet = false; }; } // namespace Model } // namespace Support } // namespace Aws