AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkspaceProperties.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/model/RunningMode.h>
9#include <aws/workspaces/model/Compute.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workspaces/model/OperatingSystemName.h>
12#include <aws/workspaces/model/Protocol.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace WorkSpaces
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_WORKSPACES_API WorkspaceProperties();
39 AWS_WORKSPACES_API WorkspaceProperties(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
58 inline const RunningMode& GetRunningMode() const{ return m_runningMode; }
59 inline bool RunningModeHasBeenSet() const { return m_runningModeHasBeenSet; }
60 inline void SetRunningMode(const RunningMode& value) { m_runningModeHasBeenSet = true; m_runningMode = value; }
61 inline void SetRunningMode(RunningMode&& value) { m_runningModeHasBeenSet = true; m_runningMode = std::move(value); }
62 inline WorkspaceProperties& WithRunningMode(const RunningMode& value) { SetRunningMode(value); return *this;}
63 inline WorkspaceProperties& WithRunningMode(RunningMode&& value) { SetRunningMode(std::move(value)); return *this;}
65
67
71 inline int GetRunningModeAutoStopTimeoutInMinutes() const{ return m_runningModeAutoStopTimeoutInMinutes; }
72 inline bool RunningModeAutoStopTimeoutInMinutesHasBeenSet() const { return m_runningModeAutoStopTimeoutInMinutesHasBeenSet; }
73 inline void SetRunningModeAutoStopTimeoutInMinutes(int value) { m_runningModeAutoStopTimeoutInMinutesHasBeenSet = true; m_runningModeAutoStopTimeoutInMinutes = value; }
76
78
84 inline int GetRootVolumeSizeGib() const{ return m_rootVolumeSizeGib; }
85 inline bool RootVolumeSizeGibHasBeenSet() const { return m_rootVolumeSizeGibHasBeenSet; }
86 inline void SetRootVolumeSizeGib(int value) { m_rootVolumeSizeGibHasBeenSet = true; m_rootVolumeSizeGib = value; }
87 inline WorkspaceProperties& WithRootVolumeSizeGib(int value) { SetRootVolumeSizeGib(value); return *this;}
89
91
97 inline int GetUserVolumeSizeGib() const{ return m_userVolumeSizeGib; }
98 inline bool UserVolumeSizeGibHasBeenSet() const { return m_userVolumeSizeGibHasBeenSet; }
99 inline void SetUserVolumeSizeGib(int value) { m_userVolumeSizeGibHasBeenSet = true; m_userVolumeSizeGib = value; }
100 inline WorkspaceProperties& WithUserVolumeSizeGib(int value) { SetUserVolumeSizeGib(value); return *this;}
102
104
109 inline const Compute& GetComputeTypeName() const{ return m_computeTypeName; }
110 inline bool ComputeTypeNameHasBeenSet() const { return m_computeTypeNameHasBeenSet; }
111 inline void SetComputeTypeName(const Compute& value) { m_computeTypeNameHasBeenSet = true; m_computeTypeName = value; }
112 inline void SetComputeTypeName(Compute&& value) { m_computeTypeNameHasBeenSet = true; m_computeTypeName = std::move(value); }
113 inline WorkspaceProperties& WithComputeTypeName(const Compute& value) { SetComputeTypeName(value); return *this;}
114 inline WorkspaceProperties& WithComputeTypeName(Compute&& value) { SetComputeTypeName(std::move(value)); return *this;}
116
118
129 inline const Aws::Vector<Protocol>& GetProtocols() const{ return m_protocols; }
130 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
131 inline void SetProtocols(const Aws::Vector<Protocol>& value) { m_protocolsHasBeenSet = true; m_protocols = value; }
132 inline void SetProtocols(Aws::Vector<Protocol>&& value) { m_protocolsHasBeenSet = true; m_protocols = std::move(value); }
133 inline WorkspaceProperties& WithProtocols(const Aws::Vector<Protocol>& value) { SetProtocols(value); return *this;}
134 inline WorkspaceProperties& WithProtocols(Aws::Vector<Protocol>&& value) { SetProtocols(std::move(value)); return *this;}
135 inline WorkspaceProperties& AddProtocols(const Protocol& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
136 inline WorkspaceProperties& AddProtocols(Protocol&& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(std::move(value)); return *this; }
138
140
143 inline const OperatingSystemName& GetOperatingSystemName() const{ return m_operatingSystemName; }
144 inline bool OperatingSystemNameHasBeenSet() const { return m_operatingSystemNameHasBeenSet; }
145 inline void SetOperatingSystemName(const OperatingSystemName& value) { m_operatingSystemNameHasBeenSet = true; m_operatingSystemName = value; }
146 inline void SetOperatingSystemName(OperatingSystemName&& value) { m_operatingSystemNameHasBeenSet = true; m_operatingSystemName = std::move(value); }
150 private:
151
152 RunningMode m_runningMode;
153 bool m_runningModeHasBeenSet = false;
154
155 int m_runningModeAutoStopTimeoutInMinutes;
156 bool m_runningModeAutoStopTimeoutInMinutesHasBeenSet = false;
157
158 int m_rootVolumeSizeGib;
159 bool m_rootVolumeSizeGibHasBeenSet = false;
160
161 int m_userVolumeSizeGib;
162 bool m_userVolumeSizeGibHasBeenSet = false;
163
164 Compute m_computeTypeName;
165 bool m_computeTypeNameHasBeenSet = false;
166
167 Aws::Vector<Protocol> m_protocols;
168 bool m_protocolsHasBeenSet = false;
169
170 OperatingSystemName m_operatingSystemName;
171 bool m_operatingSystemNameHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace WorkSpaces
176} // namespace Aws
WorkspaceProperties & WithUserVolumeSizeGib(int value)
WorkspaceProperties & WithRunningMode(const RunningMode &value)
const OperatingSystemName & GetOperatingSystemName() const
WorkspaceProperties & WithRootVolumeSizeGib(int value)
WorkspaceProperties & WithOperatingSystemName(OperatingSystemName &&value)
AWS_WORKSPACES_API WorkspaceProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkspaceProperties & WithProtocols(Aws::Vector< Protocol > &&value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProtocols(Aws::Vector< Protocol > &&value)
void SetOperatingSystemName(const OperatingSystemName &value)
void SetRunningMode(const RunningMode &value)
WorkspaceProperties & AddProtocols(const Protocol &value)
WorkspaceProperties & WithRunningModeAutoStopTimeoutInMinutes(int value)
WorkspaceProperties & WithProtocols(const Aws::Vector< Protocol > &value)
WorkspaceProperties & WithComputeTypeName(Compute &&value)
void SetOperatingSystemName(OperatingSystemName &&value)
void SetProtocols(const Aws::Vector< Protocol > &value)
WorkspaceProperties & AddProtocols(Protocol &&value)
const Aws::Vector< Protocol > & GetProtocols() const
WorkspaceProperties & WithOperatingSystemName(const OperatingSystemName &value)
WorkspaceProperties & WithRunningMode(RunningMode &&value)
WorkspaceProperties & WithComputeTypeName(const Compute &value)
AWS_WORKSPACES_API WorkspaceProperties(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue