AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SelfservicePermissions.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/model/ReconnectEnum.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WorkSpaces
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_WORKSPACES_API SelfservicePermissions();
41 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const ReconnectEnum& GetRestartWorkspace() const{ return m_restartWorkspace; }
49 inline bool RestartWorkspaceHasBeenSet() const { return m_restartWorkspaceHasBeenSet; }
50 inline void SetRestartWorkspace(const ReconnectEnum& value) { m_restartWorkspaceHasBeenSet = true; m_restartWorkspace = value; }
51 inline void SetRestartWorkspace(ReconnectEnum&& value) { m_restartWorkspaceHasBeenSet = true; m_restartWorkspace = std::move(value); }
53 inline SelfservicePermissions& WithRestartWorkspace(ReconnectEnum&& value) { SetRestartWorkspace(std::move(value)); return *this;}
55
57
61 inline const ReconnectEnum& GetIncreaseVolumeSize() const{ return m_increaseVolumeSize; }
62 inline bool IncreaseVolumeSizeHasBeenSet() const { return m_increaseVolumeSizeHasBeenSet; }
63 inline void SetIncreaseVolumeSize(const ReconnectEnum& value) { m_increaseVolumeSizeHasBeenSet = true; m_increaseVolumeSize = value; }
64 inline void SetIncreaseVolumeSize(ReconnectEnum&& value) { m_increaseVolumeSizeHasBeenSet = true; m_increaseVolumeSize = std::move(value); }
66 inline SelfservicePermissions& WithIncreaseVolumeSize(ReconnectEnum&& value) { SetIncreaseVolumeSize(std::move(value)); return *this;}
68
70
74 inline const ReconnectEnum& GetChangeComputeType() const{ return m_changeComputeType; }
75 inline bool ChangeComputeTypeHasBeenSet() const { return m_changeComputeTypeHasBeenSet; }
76 inline void SetChangeComputeType(const ReconnectEnum& value) { m_changeComputeTypeHasBeenSet = true; m_changeComputeType = value; }
77 inline void SetChangeComputeType(ReconnectEnum&& value) { m_changeComputeTypeHasBeenSet = true; m_changeComputeType = std::move(value); }
79 inline SelfservicePermissions& WithChangeComputeType(ReconnectEnum&& value) { SetChangeComputeType(std::move(value)); return *this;}
81
83
86 inline const ReconnectEnum& GetSwitchRunningMode() const{ return m_switchRunningMode; }
87 inline bool SwitchRunningModeHasBeenSet() const { return m_switchRunningModeHasBeenSet; }
88 inline void SetSwitchRunningMode(const ReconnectEnum& value) { m_switchRunningModeHasBeenSet = true; m_switchRunningMode = value; }
89 inline void SetSwitchRunningMode(ReconnectEnum&& value) { m_switchRunningModeHasBeenSet = true; m_switchRunningMode = std::move(value); }
91 inline SelfservicePermissions& WithSwitchRunningMode(ReconnectEnum&& value) { SetSwitchRunningMode(std::move(value)); return *this;}
93
95
99 inline const ReconnectEnum& GetRebuildWorkspace() const{ return m_rebuildWorkspace; }
100 inline bool RebuildWorkspaceHasBeenSet() const { return m_rebuildWorkspaceHasBeenSet; }
101 inline void SetRebuildWorkspace(const ReconnectEnum& value) { m_rebuildWorkspaceHasBeenSet = true; m_rebuildWorkspace = value; }
102 inline void SetRebuildWorkspace(ReconnectEnum&& value) { m_rebuildWorkspaceHasBeenSet = true; m_rebuildWorkspace = std::move(value); }
104 inline SelfservicePermissions& WithRebuildWorkspace(ReconnectEnum&& value) { SetRebuildWorkspace(std::move(value)); return *this;}
106 private:
107
108 ReconnectEnum m_restartWorkspace;
109 bool m_restartWorkspaceHasBeenSet = false;
110
111 ReconnectEnum m_increaseVolumeSize;
112 bool m_increaseVolumeSizeHasBeenSet = false;
113
114 ReconnectEnum m_changeComputeType;
115 bool m_changeComputeTypeHasBeenSet = false;
116
117 ReconnectEnum m_switchRunningMode;
118 bool m_switchRunningModeHasBeenSet = false;
119
120 ReconnectEnum m_rebuildWorkspace;
121 bool m_rebuildWorkspaceHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace WorkSpaces
126} // namespace Aws
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
SelfservicePermissions & WithSwitchRunningMode(const ReconnectEnum &value)
SelfservicePermissions & WithRestartWorkspace(ReconnectEnum &&value)
void SetSwitchRunningMode(const ReconnectEnum &value)
SelfservicePermissions & WithRebuildWorkspace(ReconnectEnum &&value)
SelfservicePermissions & WithRestartWorkspace(const ReconnectEnum &value)
SelfservicePermissions & WithChangeComputeType(const ReconnectEnum &value)
AWS_WORKSPACES_API SelfservicePermissions & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIncreaseVolumeSize(const ReconnectEnum &value)
SelfservicePermissions & WithIncreaseVolumeSize(ReconnectEnum &&value)
void SetRestartWorkspace(const ReconnectEnum &value)
SelfservicePermissions & WithRebuildWorkspace(const ReconnectEnum &value)
SelfservicePermissions & WithChangeComputeType(ReconnectEnum &&value)
void SetChangeComputeType(const ReconnectEnum &value)
SelfservicePermissions & WithSwitchRunningMode(ReconnectEnum &&value)
AWS_WORKSPACES_API SelfservicePermissions(Aws::Utils::Json::JsonView jsonValue)
SelfservicePermissions & WithIncreaseVolumeSize(const ReconnectEnum &value)
Aws::Utils::Json::JsonValue JsonValue