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

Describes the self-service permissions for a directory. For more information, * see Enable * Self-Service WorkSpace Management Capabilities for Your Users.

See * Also:

AWS * API Reference

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

Specifies whether users can restart their WorkSpace.

*/ inline const ReconnectEnum& GetRestartWorkspace() const{ return m_restartWorkspace; } /** *

Specifies whether users can restart their WorkSpace.

*/ inline bool RestartWorkspaceHasBeenSet() const { return m_restartWorkspaceHasBeenSet; } /** *

Specifies whether users can restart their WorkSpace.

*/ inline void SetRestartWorkspace(const ReconnectEnum& value) { m_restartWorkspaceHasBeenSet = true; m_restartWorkspace = value; } /** *

Specifies whether users can restart their WorkSpace.

*/ inline void SetRestartWorkspace(ReconnectEnum&& value) { m_restartWorkspaceHasBeenSet = true; m_restartWorkspace = std::move(value); } /** *

Specifies whether users can restart their WorkSpace.

*/ inline SelfservicePermissions& WithRestartWorkspace(const ReconnectEnum& value) { SetRestartWorkspace(value); return *this;} /** *

Specifies whether users can restart their WorkSpace.

*/ inline SelfservicePermissions& WithRestartWorkspace(ReconnectEnum&& value) { SetRestartWorkspace(std::move(value)); return *this;} /** *

Specifies whether users can increase the volume size of the drives on their * WorkSpace.

*/ inline const ReconnectEnum& GetIncreaseVolumeSize() const{ return m_increaseVolumeSize; } /** *

Specifies whether users can increase the volume size of the drives on their * WorkSpace.

*/ inline bool IncreaseVolumeSizeHasBeenSet() const { return m_increaseVolumeSizeHasBeenSet; } /** *

Specifies whether users can increase the volume size of the drives on their * WorkSpace.

*/ inline void SetIncreaseVolumeSize(const ReconnectEnum& value) { m_increaseVolumeSizeHasBeenSet = true; m_increaseVolumeSize = value; } /** *

Specifies whether users can increase the volume size of the drives on their * WorkSpace.

*/ inline void SetIncreaseVolumeSize(ReconnectEnum&& value) { m_increaseVolumeSizeHasBeenSet = true; m_increaseVolumeSize = std::move(value); } /** *

Specifies whether users can increase the volume size of the drives on their * WorkSpace.

*/ inline SelfservicePermissions& WithIncreaseVolumeSize(const ReconnectEnum& value) { SetIncreaseVolumeSize(value); return *this;} /** *

Specifies whether users can increase the volume size of the drives on their * WorkSpace.

*/ inline SelfservicePermissions& WithIncreaseVolumeSize(ReconnectEnum&& value) { SetIncreaseVolumeSize(std::move(value)); return *this;} /** *

Specifies whether users can change the compute type (bundle) for their * WorkSpace.

*/ inline const ReconnectEnum& GetChangeComputeType() const{ return m_changeComputeType; } /** *

Specifies whether users can change the compute type (bundle) for their * WorkSpace.

*/ inline bool ChangeComputeTypeHasBeenSet() const { return m_changeComputeTypeHasBeenSet; } /** *

Specifies whether users can change the compute type (bundle) for their * WorkSpace.

*/ inline void SetChangeComputeType(const ReconnectEnum& value) { m_changeComputeTypeHasBeenSet = true; m_changeComputeType = value; } /** *

Specifies whether users can change the compute type (bundle) for their * WorkSpace.

*/ inline void SetChangeComputeType(ReconnectEnum&& value) { m_changeComputeTypeHasBeenSet = true; m_changeComputeType = std::move(value); } /** *

Specifies whether users can change the compute type (bundle) for their * WorkSpace.

*/ inline SelfservicePermissions& WithChangeComputeType(const ReconnectEnum& value) { SetChangeComputeType(value); return *this;} /** *

Specifies whether users can change the compute type (bundle) for their * WorkSpace.

*/ inline SelfservicePermissions& WithChangeComputeType(ReconnectEnum&& value) { SetChangeComputeType(std::move(value)); return *this;} /** *

Specifies whether users can switch the running mode of their WorkSpace.

*/ inline const ReconnectEnum& GetSwitchRunningMode() const{ return m_switchRunningMode; } /** *

Specifies whether users can switch the running mode of their WorkSpace.

*/ inline bool SwitchRunningModeHasBeenSet() const { return m_switchRunningModeHasBeenSet; } /** *

Specifies whether users can switch the running mode of their WorkSpace.

*/ inline void SetSwitchRunningMode(const ReconnectEnum& value) { m_switchRunningModeHasBeenSet = true; m_switchRunningMode = value; } /** *

Specifies whether users can switch the running mode of their WorkSpace.

*/ inline void SetSwitchRunningMode(ReconnectEnum&& value) { m_switchRunningModeHasBeenSet = true; m_switchRunningMode = std::move(value); } /** *

Specifies whether users can switch the running mode of their WorkSpace.

*/ inline SelfservicePermissions& WithSwitchRunningMode(const ReconnectEnum& value) { SetSwitchRunningMode(value); return *this;} /** *

Specifies whether users can switch the running mode of their WorkSpace.

*/ inline SelfservicePermissions& WithSwitchRunningMode(ReconnectEnum&& value) { SetSwitchRunningMode(std::move(value)); return *this;} /** *

Specifies whether users can rebuild the operating system of a WorkSpace to * its original state.

*/ inline const ReconnectEnum& GetRebuildWorkspace() const{ return m_rebuildWorkspace; } /** *

Specifies whether users can rebuild the operating system of a WorkSpace to * its original state.

*/ inline bool RebuildWorkspaceHasBeenSet() const { return m_rebuildWorkspaceHasBeenSet; } /** *

Specifies whether users can rebuild the operating system of a WorkSpace to * its original state.

*/ inline void SetRebuildWorkspace(const ReconnectEnum& value) { m_rebuildWorkspaceHasBeenSet = true; m_rebuildWorkspace = value; } /** *

Specifies whether users can rebuild the operating system of a WorkSpace to * its original state.

*/ inline void SetRebuildWorkspace(ReconnectEnum&& value) { m_rebuildWorkspaceHasBeenSet = true; m_rebuildWorkspace = std::move(value); } /** *

Specifies whether users can rebuild the operating system of a WorkSpace to * its original state.

*/ inline SelfservicePermissions& WithRebuildWorkspace(const ReconnectEnum& value) { SetRebuildWorkspace(value); return *this;} /** *

Specifies whether users can rebuild the operating system of a WorkSpace to * its original state.

*/ inline SelfservicePermissions& WithRebuildWorkspace(ReconnectEnum&& value) { SetRebuildWorkspace(std::move(value)); return *this;} private: ReconnectEnum m_restartWorkspace; bool m_restartWorkspaceHasBeenSet = false; ReconnectEnum m_increaseVolumeSize; bool m_increaseVolumeSizeHasBeenSet = false; ReconnectEnum m_changeComputeType; bool m_changeComputeTypeHasBeenSet = false; ReconnectEnum m_switchRunningMode; bool m_switchRunningModeHasBeenSet = false; ReconnectEnum m_rebuildWorkspace; bool m_rebuildWorkspaceHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws