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

The time in ISO 8601 format for when the connection was established.

*/ inline const Aws::Utils::DateTime& GetConnectedAt() const{ return m_connectedAt; } /** *

The time in ISO 8601 format for when the connection was established.

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

The time in ISO 8601 format for when the connection was established.

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

The time in ISO 8601 format for when the connection was established.

*/ inline GetConnectionResult& WithConnectedAt(const Aws::Utils::DateTime& value) { SetConnectedAt(value); return *this;} /** *

The time in ISO 8601 format for when the connection was established.

*/ inline GetConnectionResult& WithConnectedAt(Aws::Utils::DateTime&& value) { SetConnectedAt(std::move(value)); return *this;} inline const Identity& GetIdentity() const{ return m_identity; } inline void SetIdentity(const Identity& value) { m_identity = value; } inline void SetIdentity(Identity&& value) { m_identity = std::move(value); } inline GetConnectionResult& WithIdentity(const Identity& value) { SetIdentity(value); return *this;} inline GetConnectionResult& WithIdentity(Identity&& value) { SetIdentity(std::move(value)); return *this;} /** *

The time in ISO 8601 format for when the connection was last active.

*/ inline const Aws::Utils::DateTime& GetLastActiveAt() const{ return m_lastActiveAt; } /** *

The time in ISO 8601 format for when the connection was last active.

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

The time in ISO 8601 format for when the connection was last active.

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

The time in ISO 8601 format for when the connection was last active.

*/ inline GetConnectionResult& WithLastActiveAt(const Aws::Utils::DateTime& value) { SetLastActiveAt(value); return *this;} /** *

The time in ISO 8601 format for when the connection was last active.

*/ inline GetConnectionResult& WithLastActiveAt(Aws::Utils::DateTime&& value) { SetLastActiveAt(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 GetConnectionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetConnectionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetConnectionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_connectedAt; Identity m_identity; Aws::Utils::DateTime m_lastActiveAt; Aws::String m_requestId; }; } // namespace Model } // namespace ApiGatewayManagementApi } // namespace Aws