/** * 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 AWS_CONNECTPARTICIPANT_API CreateParticipantConnectionRequest : public ConnectParticipantRequest { public: 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::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Type of connection information required.

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

Type of connection information required.

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

Type of connection information required.

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

Type of connection information required.

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

Type of connection information required.

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

Type of connection information required.

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

Type of connection information required.

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

Type of connection information required.

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

Participant Token as obtained from StartChatContact * API response.

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

Participant Token as obtained from StartChatContact * API response.

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

Participant Token as obtained from StartChatContact * API response.

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

Participant Token as obtained from StartChatContact * API response.

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

Participant Token as obtained from StartChatContact * API response.

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

Participant Token as obtained from StartChatContact * API response.

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

Participant Token as obtained from StartChatContact * API response.

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

Participant Token as obtained from StartChatContact * API response.

*/ inline CreateParticipantConnectionRequest& WithParticipantToken(const char* value) { SetParticipantToken(value); return *this;} private: Aws::Vector m_type; bool m_typeHasBeenSet; Aws::String m_participantToken; bool m_participantTokenHasBeenSet; }; } // namespace Model } // namespace ConnectParticipant } // namespace Aws