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

Type of connection information required. This can be omitted if * ConnectParticipant is true.

*/ inline const Aws::Vector& GetType() const{ return m_type; } /** *

Type of connection information required. This can be omitted if * ConnectParticipant is true.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Type of connection information required. This can be omitted if * ConnectParticipant is true.

*/ inline void SetType(const Aws::Vector& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Type of connection information required. This can be omitted if * ConnectParticipant is true.

*/ inline void SetType(Aws::Vector&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Type of connection information required. This can be omitted if * ConnectParticipant is true.

*/ inline CreateParticipantConnectionRequest& WithType(const Aws::Vector& value) { SetType(value); return *this;} /** *

Type of connection information required. This can be omitted if * ConnectParticipant is true.

*/ inline CreateParticipantConnectionRequest& WithType(Aws::Vector&& value) { SetType(std::move(value)); return *this;} /** *

Type of connection information required. This can be omitted if * ConnectParticipant is true.

*/ inline CreateParticipantConnectionRequest& AddType(const ConnectionType& value) { m_typeHasBeenSet = true; m_type.push_back(value); return *this; } /** *

Type of connection information required. This can be omitted if * ConnectParticipant is true.

*/ inline CreateParticipantConnectionRequest& AddType(ConnectionType&& value) { m_typeHasBeenSet = true; m_type.push_back(std::move(value)); return *this; } /** *

This is a header parameter.

The ParticipantToken as obtained from StartChatContact * API response.

*/ inline const Aws::String& GetParticipantToken() const{ return m_participantToken; } /** *

This is a header parameter.

The ParticipantToken as obtained from StartChatContact * API response.

*/ inline bool ParticipantTokenHasBeenSet() const { return m_participantTokenHasBeenSet; } /** *

This is a header parameter.

The ParticipantToken as obtained from StartChatContact * API response.

*/ inline void SetParticipantToken(const Aws::String& value) { m_participantTokenHasBeenSet = true; m_participantToken = value; } /** *

This is a header parameter.

The ParticipantToken as obtained from StartChatContact * API response.

*/ inline void SetParticipantToken(Aws::String&& value) { m_participantTokenHasBeenSet = true; m_participantToken = std::move(value); } /** *

This is a header parameter.

The ParticipantToken as obtained from StartChatContact * API response.

*/ inline void SetParticipantToken(const char* value) { m_participantTokenHasBeenSet = true; m_participantToken.assign(value); } /** *

This is a header parameter.

The ParticipantToken as obtained from StartChatContact * API response.

*/ inline CreateParticipantConnectionRequest& WithParticipantToken(const Aws::String& value) { SetParticipantToken(value); return *this;} /** *

This is a header parameter.

The ParticipantToken as obtained from StartChatContact * API response.

*/ inline CreateParticipantConnectionRequest& WithParticipantToken(Aws::String&& value) { SetParticipantToken(std::move(value)); return *this;} /** *

This is a header parameter.

The ParticipantToken as obtained from StartChatContact * API response.

*/ inline CreateParticipantConnectionRequest& WithParticipantToken(const char* value) { SetParticipantToken(value); return *this;} /** *

Amazon Connect Participant is used to mark the participant as connected for * customer participant in message streaming, as well as for agent or manager * participant in non-streaming chats.

*/ inline bool GetConnectParticipant() const{ return m_connectParticipant; } /** *

Amazon Connect Participant is used to mark the participant as connected for * customer participant in message streaming, as well as for agent or manager * participant in non-streaming chats.

*/ inline bool ConnectParticipantHasBeenSet() const { return m_connectParticipantHasBeenSet; } /** *

Amazon Connect Participant is used to mark the participant as connected for * customer participant in message streaming, as well as for agent or manager * participant in non-streaming chats.

*/ inline void SetConnectParticipant(bool value) { m_connectParticipantHasBeenSet = true; m_connectParticipant = value; } /** *

Amazon Connect Participant is used to mark the participant as connected for * customer participant in message streaming, as well as for agent or manager * participant in non-streaming chats.

*/ inline CreateParticipantConnectionRequest& WithConnectParticipant(bool value) { SetConnectParticipant(value); return *this;} private: Aws::Vector m_type; bool m_typeHasBeenSet = false; Aws::String m_participantToken; bool m_participantTokenHasBeenSet = false; bool m_connectParticipant; bool m_connectParticipantHasBeenSet = false; }; } // namespace Model } // namespace ConnectParticipant } // namespace Aws