/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Connect { namespace Model { /** */ class AWS_CONNECT_API StartChatContactRequest : public ConnectRequest { public: StartChatContactRequest(); // 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 "StartChatContact"; } Aws::String SerializePayload() const override; /** *

The identifier of the Amazon Connect instance.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The identifier of the Amazon Connect instance.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The identifier of the Amazon Connect instance.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The identifier of the Amazon Connect instance.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The identifier of the Amazon Connect instance.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The identifier of the Amazon Connect instance.

*/ inline StartChatContactRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The identifier of the Amazon Connect instance.

*/ inline StartChatContactRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The identifier of the Amazon Connect instance.

*/ inline StartChatContactRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The identifier of the contact flow for the chat.

*/ inline const Aws::String& GetContactFlowId() const{ return m_contactFlowId; } /** *

The identifier of the contact flow for the chat.

*/ inline bool ContactFlowIdHasBeenSet() const { return m_contactFlowIdHasBeenSet; } /** *

The identifier of the contact flow for the chat.

*/ inline void SetContactFlowId(const Aws::String& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = value; } /** *

The identifier of the contact flow for the chat.

*/ inline void SetContactFlowId(Aws::String&& value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId = std::move(value); } /** *

The identifier of the contact flow for the chat.

*/ inline void SetContactFlowId(const char* value) { m_contactFlowIdHasBeenSet = true; m_contactFlowId.assign(value); } /** *

The identifier of the contact flow for the chat.

*/ inline StartChatContactRequest& WithContactFlowId(const Aws::String& value) { SetContactFlowId(value); return *this;} /** *

The identifier of the contact flow for the chat.

*/ inline StartChatContactRequest& WithContactFlowId(Aws::String&& value) { SetContactFlowId(std::move(value)); return *this;} /** *

The identifier of the contact flow for the chat.

*/ inline StartChatContactRequest& WithContactFlowId(const char* value) { SetContactFlowId(value); return *this;} /** *

A custom key-value pair using an attribute map. The attributes are standard * Amazon Connect attributes, and can be accessed in contact flows just like any * other contact attributes.

There can be up to 32,768 UTF-8 bytes across * all key-value pairs per contact. Attribute keys can include only alphanumeric, * dash, and underscore characters.

*/ inline const Aws::Map& GetAttributes() const{ return m_attributes; } /** *

A custom key-value pair using an attribute map. The attributes are standard * Amazon Connect attributes, and can be accessed in contact flows just like any * other contact attributes.

There can be up to 32,768 UTF-8 bytes across * all key-value pairs per contact. Attribute keys can include only alphanumeric, * dash, and underscore characters.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

A custom key-value pair using an attribute map. The attributes are standard * Amazon Connect attributes, and can be accessed in contact flows just like any * other contact attributes.

There can be up to 32,768 UTF-8 bytes across * all key-value pairs per contact. Attribute keys can include only alphanumeric, * dash, and underscore characters.

*/ inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

A custom key-value pair using an attribute map. The attributes are standard * Amazon Connect attributes, and can be accessed in contact flows just like any * other contact attributes.

There can be up to 32,768 UTF-8 bytes across * all key-value pairs per contact. Attribute keys can include only alphanumeric, * dash, and underscore characters.

*/ inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

A custom key-value pair using an attribute map. The attributes are standard * Amazon Connect attributes, and can be accessed in contact flows just like any * other contact attributes.

There can be up to 32,768 UTF-8 bytes across * all key-value pairs per contact. Attribute keys can include only alphanumeric, * dash, and underscore characters.

*/ inline StartChatContactRequest& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} /** *

A custom key-value pair using an attribute map. The attributes are standard * Amazon Connect attributes, and can be accessed in contact flows just like any * other contact attributes.

There can be up to 32,768 UTF-8 bytes across * all key-value pairs per contact. Attribute keys can include only alphanumeric, * dash, and underscore characters.

*/ inline StartChatContactRequest& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} /** *

A custom key-value pair using an attribute map. The attributes are standard * Amazon Connect attributes, and can be accessed in contact flows just like any * other contact attributes.

There can be up to 32,768 UTF-8 bytes across * all key-value pairs per contact. Attribute keys can include only alphanumeric, * dash, and underscore characters.

*/ inline StartChatContactRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

A custom key-value pair using an attribute map. The attributes are standard * Amazon Connect attributes, and can be accessed in contact flows just like any * other contact attributes.

There can be up to 32,768 UTF-8 bytes across * all key-value pairs per contact. Attribute keys can include only alphanumeric, * dash, and underscore characters.

*/ inline StartChatContactRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

A custom key-value pair using an attribute map. The attributes are standard * Amazon Connect attributes, and can be accessed in contact flows just like any * other contact attributes.

There can be up to 32,768 UTF-8 bytes across * all key-value pairs per contact. Attribute keys can include only alphanumeric, * dash, and underscore characters.

*/ inline StartChatContactRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

A custom key-value pair using an attribute map. The attributes are standard * Amazon Connect attributes, and can be accessed in contact flows just like any * other contact attributes.

There can be up to 32,768 UTF-8 bytes across * all key-value pairs per contact. Attribute keys can include only alphanumeric, * dash, and underscore characters.

*/ inline StartChatContactRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; } /** *

A custom key-value pair using an attribute map. The attributes are standard * Amazon Connect attributes, and can be accessed in contact flows just like any * other contact attributes.

There can be up to 32,768 UTF-8 bytes across * all key-value pairs per contact. Attribute keys can include only alphanumeric, * dash, and underscore characters.

*/ inline StartChatContactRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

A custom key-value pair using an attribute map. The attributes are standard * Amazon Connect attributes, and can be accessed in contact flows just like any * other contact attributes.

There can be up to 32,768 UTF-8 bytes across * all key-value pairs per contact. Attribute keys can include only alphanumeric, * dash, and underscore characters.

*/ inline StartChatContactRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

A custom key-value pair using an attribute map. The attributes are standard * Amazon Connect attributes, and can be accessed in contact flows just like any * other contact attributes.

There can be up to 32,768 UTF-8 bytes across * all key-value pairs per contact. Attribute keys can include only alphanumeric, * dash, and underscore characters.

*/ inline StartChatContactRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

Information identifying the participant.

*/ inline const ParticipantDetails& GetParticipantDetails() const{ return m_participantDetails; } /** *

Information identifying the participant.

*/ inline bool ParticipantDetailsHasBeenSet() const { return m_participantDetailsHasBeenSet; } /** *

Information identifying the participant.

*/ inline void SetParticipantDetails(const ParticipantDetails& value) { m_participantDetailsHasBeenSet = true; m_participantDetails = value; } /** *

Information identifying the participant.

*/ inline void SetParticipantDetails(ParticipantDetails&& value) { m_participantDetailsHasBeenSet = true; m_participantDetails = std::move(value); } /** *

Information identifying the participant.

*/ inline StartChatContactRequest& WithParticipantDetails(const ParticipantDetails& value) { SetParticipantDetails(value); return *this;} /** *

Information identifying the participant.

*/ inline StartChatContactRequest& WithParticipantDetails(ParticipantDetails&& value) { SetParticipantDetails(std::move(value)); return *this;} /** *

The initial message to be sent to the newly created chat.

*/ inline const ChatMessage& GetInitialMessage() const{ return m_initialMessage; } /** *

The initial message to be sent to the newly created chat.

*/ inline bool InitialMessageHasBeenSet() const { return m_initialMessageHasBeenSet; } /** *

The initial message to be sent to the newly created chat.

*/ inline void SetInitialMessage(const ChatMessage& value) { m_initialMessageHasBeenSet = true; m_initialMessage = value; } /** *

The initial message to be sent to the newly created chat.

*/ inline void SetInitialMessage(ChatMessage&& value) { m_initialMessageHasBeenSet = true; m_initialMessage = std::move(value); } /** *

The initial message to be sent to the newly created chat.

*/ inline StartChatContactRequest& WithInitialMessage(const ChatMessage& value) { SetInitialMessage(value); return *this;} /** *

The initial message to be sent to the newly created chat.

*/ inline StartChatContactRequest& WithInitialMessage(ChatMessage&& value) { SetInitialMessage(std::move(value)); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

*/ 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.

*/ 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.

*/ 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.

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

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

*/ inline StartChatContactRequest& 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.

*/ inline StartChatContactRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet; Aws::String m_contactFlowId; bool m_contactFlowIdHasBeenSet; Aws::Map m_attributes; bool m_attributesHasBeenSet; ParticipantDetails m_participantDetails; bool m_participantDetailsHasBeenSet; ChatMessage m_initialMessage; bool m_initialMessageHasBeenSet; Aws::String m_clientToken; bool m_clientTokenHasBeenSet; }; } // namespace Model } // namespace Connect } // namespace Aws