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

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 StartAttachmentUploadRequest& 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 StartAttachmentUploadRequest& 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 StartAttachmentUploadRequest& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

The size of the attachment in bytes.

*/ inline long long GetAttachmentSizeInBytes() const{ return m_attachmentSizeInBytes; } /** *

The size of the attachment in bytes.

*/ inline bool AttachmentSizeInBytesHasBeenSet() const { return m_attachmentSizeInBytesHasBeenSet; } /** *

The size of the attachment in bytes.

*/ inline void SetAttachmentSizeInBytes(long long value) { m_attachmentSizeInBytesHasBeenSet = true; m_attachmentSizeInBytes = value; } /** *

The size of the attachment in bytes.

*/ inline StartAttachmentUploadRequest& WithAttachmentSizeInBytes(long long value) { SetAttachmentSizeInBytes(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 StartAttachmentUploadRequest& WithAttachmentName(const Aws::String& value) { SetAttachmentName(value); return *this;} /** *

A case-sensitive name of the attachment being uploaded.

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

A case-sensitive name of the attachment being uploaded.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline StartAttachmentUploadRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline StartAttachmentUploadRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline StartAttachmentUploadRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The authentication token associated with the participant's connection.

*/ inline const Aws::String& GetConnectionToken() const{ return m_connectionToken; } /** *

The authentication token associated with the participant's connection.

*/ inline bool ConnectionTokenHasBeenSet() const { return m_connectionTokenHasBeenSet; } /** *

The authentication token associated with the participant's connection.

*/ inline void SetConnectionToken(const Aws::String& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = value; } /** *

The authentication token associated with the participant's connection.

*/ inline void SetConnectionToken(Aws::String&& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = std::move(value); } /** *

The authentication token associated with the participant's connection.

*/ inline void SetConnectionToken(const char* value) { m_connectionTokenHasBeenSet = true; m_connectionToken.assign(value); } /** *

The authentication token associated with the participant's connection.

*/ inline StartAttachmentUploadRequest& WithConnectionToken(const Aws::String& value) { SetConnectionToken(value); return *this;} /** *

The authentication token associated with the participant's connection.

*/ inline StartAttachmentUploadRequest& WithConnectionToken(Aws::String&& value) { SetConnectionToken(std::move(value)); return *this;} /** *

The authentication token associated with the participant's connection.

*/ inline StartAttachmentUploadRequest& WithConnectionToken(const char* value) { SetConnectionToken(value); return *this;} private: Aws::String m_contentType; bool m_contentTypeHasBeenSet = false; long long m_attachmentSizeInBytes; bool m_attachmentSizeInBytesHasBeenSet = false; Aws::String m_attachmentName; bool m_attachmentNameHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_connectionToken; bool m_connectionTokenHasBeenSet = false; }; } // namespace Model } // namespace ConnectParticipant } // namespace Aws