/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GameSparks { namespace Model { /** *

Details about a WebSocket connection.

See Also:

AWS * API Reference

*/ class Connection { public: AWS_GAMESPARKS_API Connection(); AWS_GAMESPARKS_API Connection(Aws::Utils::Json::JsonView jsonValue); AWS_GAMESPARKS_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GAMESPARKS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The date and time when the connection was created.

*/ inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; } /** *

The date and time when the connection was created.

*/ inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; } /** *

The date and time when the connection was created.

*/ inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; } /** *

The date and time when the connection was created.

*/ inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); } /** *

The date and time when the connection was created.

*/ inline Connection& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;} /** *

The date and time when the connection was created.

*/ inline Connection& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;} /** *

The identifier used to indicate a specific WebSocket connection.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier used to indicate a specific WebSocket connection.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier used to indicate a specific WebSocket connection.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier used to indicate a specific WebSocket connection.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier used to indicate a specific WebSocket connection.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier used to indicate a specific WebSocket connection.

*/ inline Connection& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier used to indicate a specific WebSocket connection.

*/ inline Connection& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier used to indicate a specific WebSocket connection.

*/ inline Connection& WithId(const char* value) { SetId(value); return *this;} private: Aws::Utils::DateTime m_created; bool m_createdHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; }; } // namespace Model } // namespace GameSparks } // namespace Aws