/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Connect { namespace Model { class CreateParticipantResult { public: AWS_CONNECT_API CreateParticipantResult(); AWS_CONNECT_API CreateParticipantResult(const Aws::AmazonWebServiceResult& result); AWS_CONNECT_API CreateParticipantResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The token used by the chat participant to call * CreateParticipantConnection. The participant token is valid for the * lifetime of a chat participant.

*/ inline const ParticipantTokenCredentials& GetParticipantCredentials() const{ return m_participantCredentials; } /** *

The token used by the chat participant to call * CreateParticipantConnection. The participant token is valid for the * lifetime of a chat participant.

*/ inline void SetParticipantCredentials(const ParticipantTokenCredentials& value) { m_participantCredentials = value; } /** *

The token used by the chat participant to call * CreateParticipantConnection. The participant token is valid for the * lifetime of a chat participant.

*/ inline void SetParticipantCredentials(ParticipantTokenCredentials&& value) { m_participantCredentials = std::move(value); } /** *

The token used by the chat participant to call * CreateParticipantConnection. The participant token is valid for the * lifetime of a chat participant.

*/ inline CreateParticipantResult& WithParticipantCredentials(const ParticipantTokenCredentials& value) { SetParticipantCredentials(value); return *this;} /** *

The token used by the chat participant to call * CreateParticipantConnection. The participant token is valid for the * lifetime of a chat participant.

*/ inline CreateParticipantResult& WithParticipantCredentials(ParticipantTokenCredentials&& value) { SetParticipantCredentials(std::move(value)); return *this;} /** *

The identifier for a chat participant. The participantId for a chat * participant is the same throughout the chat lifecycle.

*/ inline const Aws::String& GetParticipantId() const{ return m_participantId; } /** *

The identifier for a chat participant. The participantId for a chat * participant is the same throughout the chat lifecycle.

*/ inline void SetParticipantId(const Aws::String& value) { m_participantId = value; } /** *

The identifier for a chat participant. The participantId for a chat * participant is the same throughout the chat lifecycle.

*/ inline void SetParticipantId(Aws::String&& value) { m_participantId = std::move(value); } /** *

The identifier for a chat participant. The participantId for a chat * participant is the same throughout the chat lifecycle.

*/ inline void SetParticipantId(const char* value) { m_participantId.assign(value); } /** *

The identifier for a chat participant. The participantId for a chat * participant is the same throughout the chat lifecycle.

*/ inline CreateParticipantResult& WithParticipantId(const Aws::String& value) { SetParticipantId(value); return *this;} /** *

The identifier for a chat participant. The participantId for a chat * participant is the same throughout the chat lifecycle.

*/ inline CreateParticipantResult& WithParticipantId(Aws::String&& value) { SetParticipantId(std::move(value)); return *this;} /** *

The identifier for a chat participant. The participantId for a chat * participant is the same throughout the chat lifecycle.

*/ inline CreateParticipantResult& WithParticipantId(const char* value) { SetParticipantId(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateParticipantResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateParticipantResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateParticipantResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ParticipantTokenCredentials m_participantCredentials; Aws::String m_participantId; Aws::String m_requestId; }; } // namespace Model } // namespace Connect } // namespace Aws