AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
WorkspaceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/workspaces/WorkSpaces_EXPORTS.h>
11#include <aws/workspaces/model/Tag.h>
12#include <aws/workspaces/model/WorkspaceProperties.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace WorkSpaces {
23namespace Model {
24
32 public:
33 AWS_WORKSPACES_API WorkspaceRequest() = default;
34 AWS_WORKSPACES_API WorkspaceRequest(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_WORKSPACES_API WorkspaceRequest& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
43 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
44 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
45 template <typename DirectoryIdT = Aws::String>
46 void SetDirectoryId(DirectoryIdT&& value) {
47 m_directoryIdHasBeenSet = true;
48 m_directoryId = std::forward<DirectoryIdT>(value);
49 }
50 template <typename DirectoryIdT = Aws::String>
51 WorkspaceRequest& WithDirectoryId(DirectoryIdT&& value) {
52 SetDirectoryId(std::forward<DirectoryIdT>(value));
53 return *this;
54 }
56
58
65 inline const Aws::String& GetUserName() const { return m_userName; }
66 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
67 template <typename UserNameT = Aws::String>
68 void SetUserName(UserNameT&& value) {
69 m_userNameHasBeenSet = true;
70 m_userName = std::forward<UserNameT>(value);
71 }
72 template <typename UserNameT = Aws::String>
73 WorkspaceRequest& WithUserName(UserNameT&& value) {
74 SetUserName(std::forward<UserNameT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetBundleId() const { return m_bundleId; }
85 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
86 template <typename BundleIdT = Aws::String>
87 void SetBundleId(BundleIdT&& value) {
88 m_bundleIdHasBeenSet = true;
89 m_bundleId = std::forward<BundleIdT>(value);
90 }
91 template <typename BundleIdT = Aws::String>
92 WorkspaceRequest& WithBundleId(BundleIdT&& value) {
93 SetBundleId(std::forward<BundleIdT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetVolumeEncryptionKey() const { return m_volumeEncryptionKey; }
104 inline bool VolumeEncryptionKeyHasBeenSet() const { return m_volumeEncryptionKeyHasBeenSet; }
105 template <typename VolumeEncryptionKeyT = Aws::String>
106 void SetVolumeEncryptionKey(VolumeEncryptionKeyT&& value) {
107 m_volumeEncryptionKeyHasBeenSet = true;
108 m_volumeEncryptionKey = std::forward<VolumeEncryptionKeyT>(value);
109 }
110 template <typename VolumeEncryptionKeyT = Aws::String>
111 WorkspaceRequest& WithVolumeEncryptionKey(VolumeEncryptionKeyT&& value) {
112 SetVolumeEncryptionKey(std::forward<VolumeEncryptionKeyT>(value));
113 return *this;
114 }
116
118
121 inline bool GetUserVolumeEncryptionEnabled() const { return m_userVolumeEncryptionEnabled; }
122 inline bool UserVolumeEncryptionEnabledHasBeenSet() const { return m_userVolumeEncryptionEnabledHasBeenSet; }
123 inline void SetUserVolumeEncryptionEnabled(bool value) {
124 m_userVolumeEncryptionEnabledHasBeenSet = true;
125 m_userVolumeEncryptionEnabled = value;
126 }
129 return *this;
130 }
132
134
137 inline bool GetRootVolumeEncryptionEnabled() const { return m_rootVolumeEncryptionEnabled; }
138 inline bool RootVolumeEncryptionEnabledHasBeenSet() const { return m_rootVolumeEncryptionEnabledHasBeenSet; }
139 inline void SetRootVolumeEncryptionEnabled(bool value) {
140 m_rootVolumeEncryptionEnabledHasBeenSet = true;
141 m_rootVolumeEncryptionEnabled = value;
142 }
145 return *this;
146 }
148
150
153 inline const WorkspaceProperties& GetWorkspaceProperties() const { return m_workspaceProperties; }
154 inline bool WorkspacePropertiesHasBeenSet() const { return m_workspacePropertiesHasBeenSet; }
155 template <typename WorkspacePropertiesT = WorkspaceProperties>
156 void SetWorkspaceProperties(WorkspacePropertiesT&& value) {
157 m_workspacePropertiesHasBeenSet = true;
158 m_workspaceProperties = std::forward<WorkspacePropertiesT>(value);
159 }
160 template <typename WorkspacePropertiesT = WorkspaceProperties>
161 WorkspaceRequest& WithWorkspaceProperties(WorkspacePropertiesT&& value) {
162 SetWorkspaceProperties(std::forward<WorkspacePropertiesT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
172 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 template <typename TagsT = Aws::Vector<Tag>>
174 void SetTags(TagsT&& value) {
175 m_tagsHasBeenSet = true;
176 m_tags = std::forward<TagsT>(value);
177 }
178 template <typename TagsT = Aws::Vector<Tag>>
179 WorkspaceRequest& WithTags(TagsT&& value) {
180 SetTags(std::forward<TagsT>(value));
181 return *this;
182 }
183 template <typename TagsT = Tag>
184 WorkspaceRequest& AddTags(TagsT&& value) {
185 m_tagsHasBeenSet = true;
186 m_tags.emplace_back(std::forward<TagsT>(value));
187 return *this;
188 }
190
192
199 inline const Aws::String& GetWorkspaceName() const { return m_workspaceName; }
200 inline bool WorkspaceNameHasBeenSet() const { return m_workspaceNameHasBeenSet; }
201 template <typename WorkspaceNameT = Aws::String>
202 void SetWorkspaceName(WorkspaceNameT&& value) {
203 m_workspaceNameHasBeenSet = true;
204 m_workspaceName = std::forward<WorkspaceNameT>(value);
205 }
206 template <typename WorkspaceNameT = Aws::String>
207 WorkspaceRequest& WithWorkspaceName(WorkspaceNameT&& value) {
208 SetWorkspaceName(std::forward<WorkspaceNameT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::String& GetIpv6Address() const { return m_ipv6Address; }
218 inline bool Ipv6AddressHasBeenSet() const { return m_ipv6AddressHasBeenSet; }
219 template <typename Ipv6AddressT = Aws::String>
220 void SetIpv6Address(Ipv6AddressT&& value) {
221 m_ipv6AddressHasBeenSet = true;
222 m_ipv6Address = std::forward<Ipv6AddressT>(value);
223 }
224 template <typename Ipv6AddressT = Aws::String>
225 WorkspaceRequest& WithIpv6Address(Ipv6AddressT&& value) {
226 SetIpv6Address(std::forward<Ipv6AddressT>(value));
227 return *this;
228 }
230
232
253 inline const Aws::String& GetAgenticPersonaConfigurationId() const { return m_agenticPersonaConfigurationId; }
254 inline bool AgenticPersonaConfigurationIdHasBeenSet() const { return m_agenticPersonaConfigurationIdHasBeenSet; }
255 template <typename AgenticPersonaConfigurationIdT = Aws::String>
256 void SetAgenticPersonaConfigurationId(AgenticPersonaConfigurationIdT&& value) {
257 m_agenticPersonaConfigurationIdHasBeenSet = true;
258 m_agenticPersonaConfigurationId = std::forward<AgenticPersonaConfigurationIdT>(value);
259 }
260 template <typename AgenticPersonaConfigurationIdT = Aws::String>
261 WorkspaceRequest& WithAgenticPersonaConfigurationId(AgenticPersonaConfigurationIdT&& value) {
262 SetAgenticPersonaConfigurationId(std::forward<AgenticPersonaConfigurationIdT>(value));
263 return *this;
264 }
266 private:
267 Aws::String m_directoryId;
268
269 Aws::String m_userName;
270
271 Aws::String m_bundleId;
272
273 Aws::String m_volumeEncryptionKey;
274
275 bool m_userVolumeEncryptionEnabled{false};
276
277 bool m_rootVolumeEncryptionEnabled{false};
278
279 WorkspaceProperties m_workspaceProperties;
280
281 Aws::Vector<Tag> m_tags;
282
283 Aws::String m_workspaceName;
284
285 Aws::String m_ipv6Address;
286
287 Aws::String m_agenticPersonaConfigurationId;
288 bool m_directoryIdHasBeenSet = false;
289 bool m_userNameHasBeenSet = false;
290 bool m_bundleIdHasBeenSet = false;
291 bool m_volumeEncryptionKeyHasBeenSet = false;
292 bool m_userVolumeEncryptionEnabledHasBeenSet = false;
293 bool m_rootVolumeEncryptionEnabledHasBeenSet = false;
294 bool m_workspacePropertiesHasBeenSet = false;
295 bool m_tagsHasBeenSet = false;
296 bool m_workspaceNameHasBeenSet = false;
297 bool m_ipv6AddressHasBeenSet = false;
298 bool m_agenticPersonaConfigurationIdHasBeenSet = false;
299};
300
301} // namespace Model
302} // namespace WorkSpaces
303} // namespace Aws
void SetVolumeEncryptionKey(VolumeEncryptionKeyT &&value)
const Aws::String & GetDirectoryId() const
WorkspaceRequest & AddTags(TagsT &&value)
const WorkspaceProperties & GetWorkspaceProperties() const
WorkspaceRequest & WithTags(TagsT &&value)
const Aws::String & GetBundleId() const
AWS_WORKSPACES_API WorkspaceRequest()=default
WorkspaceRequest & WithWorkspaceProperties(WorkspacePropertiesT &&value)
WorkspaceRequest & WithVolumeEncryptionKey(VolumeEncryptionKeyT &&value)
WorkspaceRequest & WithAgenticPersonaConfigurationId(AgenticPersonaConfigurationIdT &&value)
WorkspaceRequest & WithDirectoryId(DirectoryIdT &&value)
WorkspaceRequest & WithRootVolumeEncryptionEnabled(bool value)
void SetDirectoryId(DirectoryIdT &&value)
const Aws::String & GetUserName() const
const Aws::String & GetVolumeEncryptionKey() const
AWS_WORKSPACES_API WorkspaceRequest(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetWorkspaceName() const
void SetIpv6Address(Ipv6AddressT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
WorkspaceRequest & WithIpv6Address(Ipv6AddressT &&value)
void SetAgenticPersonaConfigurationId(AgenticPersonaConfigurationIdT &&value)
WorkspaceRequest & WithBundleId(BundleIdT &&value)
WorkspaceRequest & WithUserName(UserNameT &&value)
WorkspaceRequest & WithUserVolumeEncryptionEnabled(bool value)
AWS_WORKSPACES_API WorkspaceRequest & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WorkspaceRequest & WithWorkspaceName(WorkspaceNameT &&value)
const Aws::String & GetIpv6Address() const
const Aws::String & GetAgenticPersonaConfigurationId() const
void SetWorkspaceName(WorkspaceNameT &&value)
void SetWorkspaceProperties(WorkspacePropertiesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector