/** * 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 ivschat { namespace Model { class CreateChatTokenResult { public: AWS_IVSCHAT_API CreateChatTokenResult(); AWS_IVSCHAT_API CreateChatTokenResult(const Aws::AmazonWebServiceResult& result); AWS_IVSCHAT_API CreateChatTokenResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Time after which an end user's session is no longer valid. This is an ISO * 8601 timestamp; note that this is returned as a string.

*/ inline const Aws::Utils::DateTime& GetSessionExpirationTime() const{ return m_sessionExpirationTime; } /** *

Time after which an end user's session is no longer valid. This is an ISO * 8601 timestamp; note that this is returned as a string.

*/ inline void SetSessionExpirationTime(const Aws::Utils::DateTime& value) { m_sessionExpirationTime = value; } /** *

Time after which an end user's session is no longer valid. This is an ISO * 8601 timestamp; note that this is returned as a string.

*/ inline void SetSessionExpirationTime(Aws::Utils::DateTime&& value) { m_sessionExpirationTime = std::move(value); } /** *

Time after which an end user's session is no longer valid. This is an ISO * 8601 timestamp; note that this is returned as a string.

*/ inline CreateChatTokenResult& WithSessionExpirationTime(const Aws::Utils::DateTime& value) { SetSessionExpirationTime(value); return *this;} /** *

Time after which an end user's session is no longer valid. This is an ISO * 8601 timestamp; note that this is returned as a string.

*/ inline CreateChatTokenResult& WithSessionExpirationTime(Aws::Utils::DateTime&& value) { SetSessionExpirationTime(std::move(value)); return *this;} /** *

The issued client token, encrypted.

*/ inline const Aws::String& GetToken() const{ return m_token; } /** *

The issued client token, encrypted.

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

The issued client token, encrypted.

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

The issued client token, encrypted.

*/ inline void SetToken(const char* value) { m_token.assign(value); } /** *

The issued client token, encrypted.

*/ inline CreateChatTokenResult& WithToken(const Aws::String& value) { SetToken(value); return *this;} /** *

The issued client token, encrypted.

*/ inline CreateChatTokenResult& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;} /** *

The issued client token, encrypted.

*/ inline CreateChatTokenResult& WithToken(const char* value) { SetToken(value); return *this;} /** *

Time after which the token is no longer valid and cannot be used to connect * to a room. This is an ISO 8601 timestamp; note that this is returned as a * string.

*/ inline const Aws::Utils::DateTime& GetTokenExpirationTime() const{ return m_tokenExpirationTime; } /** *

Time after which the token is no longer valid and cannot be used to connect * to a room. This is an ISO 8601 timestamp; note that this is returned as a * string.

*/ inline void SetTokenExpirationTime(const Aws::Utils::DateTime& value) { m_tokenExpirationTime = value; } /** *

Time after which the token is no longer valid and cannot be used to connect * to a room. This is an ISO 8601 timestamp; note that this is returned as a * string.

*/ inline void SetTokenExpirationTime(Aws::Utils::DateTime&& value) { m_tokenExpirationTime = std::move(value); } /** *

Time after which the token is no longer valid and cannot be used to connect * to a room. This is an ISO 8601 timestamp; note that this is returned as a * string.

*/ inline CreateChatTokenResult& WithTokenExpirationTime(const Aws::Utils::DateTime& value) { SetTokenExpirationTime(value); return *this;} /** *

Time after which the token is no longer valid and cannot be used to connect * to a room. This is an ISO 8601 timestamp; note that this is returned as a * string.

*/ inline CreateChatTokenResult& WithTokenExpirationTime(Aws::Utils::DateTime&& value) { SetTokenExpirationTime(std::move(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 CreateChatTokenResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateChatTokenResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateChatTokenResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_sessionExpirationTime; Aws::String m_token; Aws::Utils::DateTime m_tokenExpirationTime; Aws::String m_requestId; }; } // namespace Model } // namespace ivschat } // namespace Aws