/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ConnectParticipant { namespace Model { /** *

The case-insensitive input to indicate standard MIME type that describes the * format of the file that will be uploaded.

See Also:

AWS * API Reference

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

Describes the MIME file type of the attachment. For a list of supported file * types, see Feature * specifications in the Amazon Connect Administrator Guide.

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

Describes the MIME file type of the attachment. For a list of supported file * types, see Feature * specifications in the Amazon Connect Administrator Guide.

*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *

Describes the MIME file type of the attachment. For a list of supported file * types, see Feature * specifications in the Amazon Connect Administrator Guide.

*/ inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *

Describes the MIME file type of the attachment. For a list of supported file * types, see Feature * specifications in the Amazon Connect Administrator Guide.

*/ inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *

Describes the MIME file type of the attachment. For a list of supported file * types, see Feature * specifications in the Amazon Connect Administrator Guide.

*/ inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } /** *

Describes the MIME file type of the attachment. For a list of supported file * types, see Feature * specifications in the Amazon Connect Administrator Guide.

*/ inline AttachmentItem& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

Describes the MIME file type of the attachment. For a list of supported file * types, see Feature * specifications in the Amazon Connect Administrator Guide.

*/ inline AttachmentItem& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

Describes the MIME file type of the attachment. For a list of supported file * types, see Feature * specifications in the Amazon Connect Administrator Guide.

*/ inline AttachmentItem& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

A unique identifier for the attachment.

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

A unique identifier for the attachment.

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

A unique identifier for the attachment.

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

A unique identifier for the attachment.

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

A unique identifier for the attachment.

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

A unique identifier for the attachment.

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

A unique identifier for the attachment.

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

A unique identifier for the attachment.

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

A case-sensitive name of the attachment being uploaded.

*/ inline const Aws::String& GetAttachmentName() const{ return m_attachmentName; } /** *

A case-sensitive name of the attachment being uploaded.

*/ inline bool AttachmentNameHasBeenSet() const { return m_attachmentNameHasBeenSet; } /** *

A case-sensitive name of the attachment being uploaded.

*/ inline void SetAttachmentName(const Aws::String& value) { m_attachmentNameHasBeenSet = true; m_attachmentName = value; } /** *

A case-sensitive name of the attachment being uploaded.

*/ inline void SetAttachmentName(Aws::String&& value) { m_attachmentNameHasBeenSet = true; m_attachmentName = std::move(value); } /** *

A case-sensitive name of the attachment being uploaded.

*/ inline void SetAttachmentName(const char* value) { m_attachmentNameHasBeenSet = true; m_attachmentName.assign(value); } /** *

A case-sensitive name of the attachment being uploaded.

*/ inline AttachmentItem& WithAttachmentName(const Aws::String& value) { SetAttachmentName(value); return *this;} /** *

A case-sensitive name of the attachment being uploaded.

*/ inline AttachmentItem& WithAttachmentName(Aws::String&& value) { SetAttachmentName(std::move(value)); return *this;} /** *

A case-sensitive name of the attachment being uploaded.

*/ inline AttachmentItem& WithAttachmentName(const char* value) { SetAttachmentName(value); return *this;} /** *

Status of the attachment.

*/ inline const ArtifactStatus& GetStatus() const{ return m_status; } /** *

Status of the attachment.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Status of the attachment.

*/ inline void SetStatus(const ArtifactStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Status of the attachment.

*/ inline void SetStatus(ArtifactStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Status of the attachment.

*/ inline AttachmentItem& WithStatus(const ArtifactStatus& value) { SetStatus(value); return *this;} /** *

Status of the attachment.

*/ inline AttachmentItem& WithStatus(ArtifactStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_contentType; bool m_contentTypeHasBeenSet = false; Aws::String m_attachmentId; bool m_attachmentIdHasBeenSet = false; Aws::String m_attachmentName; bool m_attachmentNameHasBeenSet = false; ArtifactStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace ConnectParticipant } // namespace Aws