/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The credentials used by the participant.See Also:
AWS
* API Reference
The token used by the chat participant to call CreateParticipantConnection. * The participant token is valid for the lifetime of a chat participant.
*/ inline const Aws::String& GetParticipantToken() const{ return m_participantToken; } /** *The token used by the chat participant to call CreateParticipantConnection. * The participant token is valid for the lifetime of a chat participant.
*/ inline bool ParticipantTokenHasBeenSet() const { return m_participantTokenHasBeenSet; } /** *The token used by the chat participant to call CreateParticipantConnection. * The participant token is valid for the lifetime of a chat participant.
*/ inline void SetParticipantToken(const Aws::String& value) { m_participantTokenHasBeenSet = true; m_participantToken = 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 SetParticipantToken(Aws::String&& value) { m_participantTokenHasBeenSet = true; m_participantToken = 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 void SetParticipantToken(const char* value) { m_participantTokenHasBeenSet = true; m_participantToken.assign(value); } /** *The token used by the chat participant to call CreateParticipantConnection. * The participant token is valid for the lifetime of a chat participant.
*/ inline ParticipantTokenCredentials& WithParticipantToken(const Aws::String& value) { SetParticipantToken(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 ParticipantTokenCredentials& WithParticipantToken(Aws::String&& value) { SetParticipantToken(std::move(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 ParticipantTokenCredentials& WithParticipantToken(const char* value) { SetParticipantToken(value); return *this;} /** *The expiration of the token. It's specified in ISO 8601 format: * yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
*/ inline const Aws::String& GetExpiry() const{ return m_expiry; } /** *The expiration of the token. It's specified in ISO 8601 format: * yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
*/ inline bool ExpiryHasBeenSet() const { return m_expiryHasBeenSet; } /** *The expiration of the token. It's specified in ISO 8601 format: * yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
*/ inline void SetExpiry(const Aws::String& value) { m_expiryHasBeenSet = true; m_expiry = value; } /** *The expiration of the token. It's specified in ISO 8601 format: * yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
*/ inline void SetExpiry(Aws::String&& value) { m_expiryHasBeenSet = true; m_expiry = std::move(value); } /** *The expiration of the token. It's specified in ISO 8601 format: * yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
*/ inline void SetExpiry(const char* value) { m_expiryHasBeenSet = true; m_expiry.assign(value); } /** *The expiration of the token. It's specified in ISO 8601 format: * yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
*/ inline ParticipantTokenCredentials& WithExpiry(const Aws::String& value) { SetExpiry(value); return *this;} /** *The expiration of the token. It's specified in ISO 8601 format: * yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
*/ inline ParticipantTokenCredentials& WithExpiry(Aws::String&& value) { SetExpiry(std::move(value)); return *this;} /** *The expiration of the token. It's specified in ISO 8601 format: * yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
*/ inline ParticipantTokenCredentials& WithExpiry(const char* value) { SetExpiry(value); return *this;} private: Aws::String m_participantToken; bool m_participantTokenHasBeenSet = false; Aws::String m_expiry; bool m_expiryHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws