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/DataReplicationSettings.h>
12#include <aws/workspaces/model/ModificationState.h>
13#include <aws/workspaces/model/RelatedWorkspaceProperties.h>
14#include <aws/workspaces/model/StandbyWorkspacesProperties.h>
15#include <aws/workspaces/model/WorkspaceCategory.h>
16#include <aws/workspaces/model/WorkspaceProperties.h>
17#include <aws/workspaces/model/WorkspaceState.h>
38 AWS_WORKSPACES_API
Workspace(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_WORKSPACES_API
Workspace&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_WORKSPACES_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
48 template <
typename WorkspaceIdT = Aws::String>
50 m_workspaceIdHasBeenSet =
true;
51 m_workspaceId = std::forward<WorkspaceIdT>(value);
53 template <
typename WorkspaceIdT = Aws::String>
66 template <
typename DirectoryIdT = Aws::String>
68 m_directoryIdHasBeenSet =
true;
69 m_directoryId = std::forward<DirectoryIdT>(value);
71 template <
typename DirectoryIdT = Aws::String>
84 template <
typename UserNameT = Aws::String>
86 m_userNameHasBeenSet =
true;
87 m_userName = std::forward<UserNameT>(value);
89 template <
typename UserNameT = Aws::String>
102 template <
typename IpAddressT = Aws::String>
104 m_ipAddressHasBeenSet =
true;
105 m_ipAddress = std::forward<IpAddressT>(value);
107 template <
typename IpAddressT = Aws::String>
120 template <
typename Ipv6AddressT = Aws::String>
122 m_ipv6AddressHasBeenSet =
true;
123 m_ipv6Address = std::forward<Ipv6AddressT>(value);
125 template <
typename Ipv6AddressT = Aws::String>
167 m_stateHasBeenSet =
true;
182 template <
typename BundleIdT = Aws::String>
184 m_bundleIdHasBeenSet =
true;
185 m_bundleId = std::forward<BundleIdT>(value);
187 template <
typename BundleIdT = Aws::String>
200 template <
typename SubnetIdT = Aws::String>
202 m_subnetIdHasBeenSet =
true;
203 m_subnetId = std::forward<SubnetIdT>(value);
205 template <
typename SubnetIdT = Aws::String>
219 template <
typename ErrorMessageT = Aws::String>
221 m_errorMessageHasBeenSet =
true;
222 m_errorMessage = std::forward<ErrorMessageT>(value);
224 template <
typename ErrorMessageT = Aws::String>
237 template <
typename ErrorCodeT = Aws::String>
239 m_errorCodeHasBeenSet =
true;
240 m_errorCode = std::forward<ErrorCodeT>(value);
242 template <
typename ErrorCodeT = Aws::String>
258 template <
typename ComputerNameT = Aws::String>
260 m_computerNameHasBeenSet =
true;
261 m_computerName = std::forward<ComputerNameT>(value);
263 template <
typename ComputerNameT = Aws::String>
277 template <
typename VolumeEncryptionKeyT = Aws::String>
279 m_volumeEncryptionKeyHasBeenSet =
true;
280 m_volumeEncryptionKey = std::forward<VolumeEncryptionKeyT>(value);
282 template <
typename VolumeEncryptionKeyT = Aws::String>
296 m_userVolumeEncryptionEnabledHasBeenSet =
true;
297 m_userVolumeEncryptionEnabled = value;
312 m_rootVolumeEncryptionEnabledHasBeenSet =
true;
313 m_rootVolumeEncryptionEnabled = value;
327 template <
typename WorkspaceNameT = Aws::String>
329 m_workspaceNameHasBeenSet =
true;
330 m_workspaceName = std::forward<WorkspaceNameT>(value);
332 template <
typename WorkspaceNameT = Aws::String>
345 template <
typename WorkspacePropertiesT = WorkspaceProperties>
347 m_workspacePropertiesHasBeenSet =
true;
348 m_workspaceProperties = std::forward<WorkspacePropertiesT>(value);
350 template <
typename WorkspacePropertiesT = WorkspaceProperties>
363 template <
typename ModificationStatesT = Aws::Vector<ModificationState>>
365 m_modificationStatesHasBeenSet =
true;
366 m_modificationStates = std::forward<ModificationStatesT>(value);
368 template <
typename ModificationStatesT = Aws::Vector<ModificationState>>
373 template <
typename ModificationStatesT = ModificationState>
375 m_modificationStatesHasBeenSet =
true;
376 m_modificationStates.emplace_back(std::forward<ModificationStatesT>(value));
388 template <
typename RelatedWorkspacesT = Aws::Vector<RelatedWorkspaceProperties>>
390 m_relatedWorkspacesHasBeenSet =
true;
391 m_relatedWorkspaces = std::forward<RelatedWorkspacesT>(value);
393 template <
typename RelatedWorkspacesT = Aws::Vector<RelatedWorkspaceProperties>>
398 template <
typename RelatedWorkspacesT = RelatedWorkspaceProperties>
400 m_relatedWorkspacesHasBeenSet =
true;
401 m_relatedWorkspaces.emplace_back(std::forward<RelatedWorkspacesT>(value));
412 template <
typename DataReplicationSettingsT = DataReplicationSettings>
414 m_dataReplicationSettingsHasBeenSet =
true;
415 m_dataReplicationSettings = std::forward<DataReplicationSettingsT>(value);
417 template <
typename DataReplicationSettingsT = DataReplicationSettings>
430 template <
typename StandbyWorkspacesPropertiesT = Aws::Vector<StandbyWorkspacesProperties>>
432 m_standbyWorkspacesPropertiesHasBeenSet =
true;
433 m_standbyWorkspacesProperties = std::forward<StandbyWorkspacesPropertiesT>(value);
435 template <
typename StandbyWorkspacesPropertiesT = Aws::Vector<StandbyWorkspacesProperties>>
440 template <
typename StandbyWorkspacesPropertiesT = StandbyWorkspacesProperties>
442 m_standbyWorkspacesPropertiesHasBeenSet =
true;
443 m_standbyWorkspacesProperties.emplace_back(std::forward<StandbyWorkspacesPropertiesT>(value));
456 m_workspaceCategoryHasBeenSet =
true;
457 m_workspaceCategory = value;
489 bool m_userVolumeEncryptionEnabled{
false};
491 bool m_rootVolumeEncryptionEnabled{
false};
495 WorkspaceProperties m_workspaceProperties;
501 DataReplicationSettings m_dataReplicationSettings;
506 bool m_workspaceIdHasBeenSet =
false;
507 bool m_directoryIdHasBeenSet =
false;
508 bool m_userNameHasBeenSet =
false;
509 bool m_ipAddressHasBeenSet =
false;
510 bool m_ipv6AddressHasBeenSet =
false;
511 bool m_stateHasBeenSet =
false;
512 bool m_bundleIdHasBeenSet =
false;
513 bool m_subnetIdHasBeenSet =
false;
514 bool m_errorMessageHasBeenSet =
false;
515 bool m_errorCodeHasBeenSet =
false;
516 bool m_computerNameHasBeenSet =
false;
517 bool m_volumeEncryptionKeyHasBeenSet =
false;
518 bool m_userVolumeEncryptionEnabledHasBeenSet =
false;
519 bool m_rootVolumeEncryptionEnabledHasBeenSet =
false;
520 bool m_workspaceNameHasBeenSet =
false;
521 bool m_workspacePropertiesHasBeenSet =
false;
522 bool m_modificationStatesHasBeenSet =
false;
523 bool m_relatedWorkspacesHasBeenSet =
false;
524 bool m_dataReplicationSettingsHasBeenSet =
false;
525 bool m_standbyWorkspacesPropertiesHasBeenSet =
false;
526 bool m_workspaceCategoryHasBeenSet =
false;
void SetErrorMessage(ErrorMessageT &&value)
bool DataReplicationSettingsHasBeenSet() const
Workspace & WithUserVolumeEncryptionEnabled(bool value)
const WorkspaceProperties & GetWorkspaceProperties() const
bool WorkspaceNameHasBeenSet() const
void SetComputerName(ComputerNameT &&value)
const Aws::String & GetWorkspaceId() const
void SetWorkspaceName(WorkspaceNameT &&value)
Workspace & AddStandbyWorkspacesProperties(StandbyWorkspacesPropertiesT &&value)
Workspace & WithWorkspaceName(WorkspaceNameT &&value)
Workspace & WithUserName(UserNameT &&value)
WorkspaceCategory GetWorkspaceCategory() const
const Aws::String & GetComputerName() const
void SetIpAddress(IpAddressT &&value)
Workspace & WithIpAddress(IpAddressT &&value)
void SetState(WorkspaceState value)
Workspace & WithModificationStates(ModificationStatesT &&value)
void SetWorkspaceId(WorkspaceIdT &&value)
Workspace & WithIpv6Address(Ipv6AddressT &&value)
const Aws::String & GetBundleId() const
const Aws::String & GetErrorCode() const
Workspace & WithBundleId(BundleIdT &&value)
bool RootVolumeEncryptionEnabledHasBeenSet() const
void SetDataReplicationSettings(DataReplicationSettingsT &&value)
bool SubnetIdHasBeenSet() const
bool ModificationStatesHasBeenSet() const
Workspace & WithState(WorkspaceState value)
void SetIpv6Address(Ipv6AddressT &&value)
AWS_WORKSPACES_API Workspace & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetVolumeEncryptionKey() const
Workspace & WithVolumeEncryptionKey(VolumeEncryptionKeyT &&value)
bool GetUserVolumeEncryptionEnabled() const
Workspace & WithDirectoryId(DirectoryIdT &&value)
void SetStandbyWorkspacesProperties(StandbyWorkspacesPropertiesT &&value)
void SetWorkspaceProperties(WorkspacePropertiesT &&value)
bool UserVolumeEncryptionEnabledHasBeenSet() const
Workspace & WithComputerName(ComputerNameT &&value)
Workspace & AddRelatedWorkspaces(RelatedWorkspacesT &&value)
bool ErrorMessageHasBeenSet() const
bool StandbyWorkspacesPropertiesHasBeenSet() const
const Aws::Vector< ModificationState > & GetModificationStates() const
const Aws::String & GetIpAddress() const
void SetSubnetId(SubnetIdT &&value)
bool RelatedWorkspacesHasBeenSet() const
void SetRootVolumeEncryptionEnabled(bool value)
bool StateHasBeenSet() const
void SetModificationStates(ModificationStatesT &&value)
void SetWorkspaceCategory(WorkspaceCategory value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetWorkspaceName() const
Workspace & WithSubnetId(SubnetIdT &&value)
void SetErrorCode(ErrorCodeT &&value)
bool VolumeEncryptionKeyHasBeenSet() const
bool GetRootVolumeEncryptionEnabled() const
bool DirectoryIdHasBeenSet() const
Workspace & WithWorkspaceProperties(WorkspacePropertiesT &&value)
Workspace & WithRelatedWorkspaces(RelatedWorkspacesT &&value)
WorkspaceState GetState() const
void SetVolumeEncryptionKey(VolumeEncryptionKeyT &&value)
Workspace & WithDataReplicationSettings(DataReplicationSettingsT &&value)
const Aws::String & GetDirectoryId() const
const Aws::Vector< StandbyWorkspacesProperties > & GetStandbyWorkspacesProperties() const
void SetUserName(UserNameT &&value)
AWS_WORKSPACES_API Workspace()=default
bool ErrorCodeHasBeenSet() const
const Aws::String & GetSubnetId() const
AWS_WORKSPACES_API Workspace(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const DataReplicationSettings & GetDataReplicationSettings() const
Workspace & WithErrorMessage(ErrorMessageT &&value)
void SetRelatedWorkspaces(RelatedWorkspacesT &&value)
bool UserNameHasBeenSet() const
bool WorkspaceCategoryHasBeenSet() const
Workspace & WithWorkspaceCategory(WorkspaceCategory value)
void SetBundleId(BundleIdT &&value)
bool WorkspaceIdHasBeenSet() const
Workspace & AddModificationStates(ModificationStatesT &&value)
bool Ipv6AddressHasBeenSet() const
void SetUserVolumeEncryptionEnabled(bool value)
bool IpAddressHasBeenSet() const
const Aws::String & GetIpv6Address() const
Workspace & WithErrorCode(ErrorCodeT &&value)
bool BundleIdHasBeenSet() const
const Aws::String & GetErrorMessage() const
bool ComputerNameHasBeenSet() const
const Aws::String & GetUserName() const
Workspace & WithStandbyWorkspacesProperties(StandbyWorkspacesPropertiesT &&value)
bool WorkspacePropertiesHasBeenSet() const
const Aws::Vector< RelatedWorkspaceProperties > & GetRelatedWorkspaces() const
Workspace & WithWorkspaceId(WorkspaceIdT &&value)
Workspace & WithRootVolumeEncryptionEnabled(bool value)
void SetDirectoryId(DirectoryIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector