/** * 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 AppStream { namespace Model { /** *

Describes an action and whether the action is enabled or disabled for users * during their streaming sessions.

See Also:

AWS * API Reference

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

The action that is enabled or disabled.

*/ inline const Action& GetAction() const{ return m_action; } /** *

The action that is enabled or disabled.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

The action that is enabled or disabled.

*/ inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; } /** *

The action that is enabled or disabled.

*/ inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

The action that is enabled or disabled.

*/ inline UserSetting& WithAction(const Action& value) { SetAction(value); return *this;} /** *

The action that is enabled or disabled.

*/ inline UserSetting& WithAction(Action&& value) { SetAction(std::move(value)); return *this;} /** *

Indicates whether the action is enabled or disabled.

*/ inline const Permission& GetPermission() const{ return m_permission; } /** *

Indicates whether the action is enabled or disabled.

*/ inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; } /** *

Indicates whether the action is enabled or disabled.

*/ inline void SetPermission(const Permission& value) { m_permissionHasBeenSet = true; m_permission = value; } /** *

Indicates whether the action is enabled or disabled.

*/ inline void SetPermission(Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); } /** *

Indicates whether the action is enabled or disabled.

*/ inline UserSetting& WithPermission(const Permission& value) { SetPermission(value); return *this;} /** *

Indicates whether the action is enabled or disabled.

*/ inline UserSetting& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;} private: Action m_action; bool m_actionHasBeenSet = false; Permission m_permission; bool m_permissionHasBeenSet = false; }; } // namespace Model } // namespace AppStream } // namespace Aws