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

Describes a web-based, remote graphical user interface (GUI), NICE DCV * session. The session is used to access a virtual computer’s operating system or * application.

See Also:

AWS * API Reference

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

The session name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The session name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The session name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The session name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The session name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The session name.

*/ inline Session& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The session name.

*/ inline Session& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The session name.

*/ inline Session& WithName(const char* value) { SetName(value); return *this;} /** *

The session URL.

*/ inline const Aws::String& GetUrl() const{ return m_url; } /** *

The session URL.

*/ inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; } /** *

The session URL.

*/ inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; } /** *

The session URL.

*/ inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); } /** *

The session URL.

*/ inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); } /** *

The session URL.

*/ inline Session& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} /** *

The session URL.

*/ inline Session& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} /** *

The session URL.

*/ inline Session& WithUrl(const char* value) { SetUrl(value); return *this;} /** *

When true, this Boolean value indicates the primary session for the specified * resource.

*/ inline bool GetIsPrimary() const{ return m_isPrimary; } /** *

When true, this Boolean value indicates the primary session for the specified * resource.

*/ inline bool IsPrimaryHasBeenSet() const { return m_isPrimaryHasBeenSet; } /** *

When true, this Boolean value indicates the primary session for the specified * resource.

*/ inline void SetIsPrimary(bool value) { m_isPrimaryHasBeenSet = true; m_isPrimary = value; } /** *

When true, this Boolean value indicates the primary session for the specified * resource.

*/ inline Session& WithIsPrimary(bool value) { SetIsPrimary(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_url; bool m_urlHasBeenSet = false; bool m_isPrimary; bool m_isPrimaryHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws