Interface Workspace.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Workspace.Builder,
,Workspace> SdkBuilder<Workspace.Builder,
,Workspace> SdkPojo
- Enclosing class:
Workspace
-
Method Summary
Modifier and TypeMethodDescriptionThe identifier of the bundle used to create the WorkSpace.computerName
(String computerName) The name of the WorkSpace, as seen by the operating system.directoryId
(String directoryId) The identifier of the Directory Service directory for the WorkSpace.The error code that is returned if the WorkSpace cannot be created.errorMessage
(String errorMessage) The text of the error message that is returned if the WorkSpace cannot be created.The IP address of the WorkSpace.modificationStates
(Collection<ModificationState> modificationStates) The modification states of the WorkSpace.modificationStates
(Consumer<ModificationState.Builder>... modificationStates) The modification states of the WorkSpace.modificationStates
(ModificationState... modificationStates) The modification states of the WorkSpace.relatedWorkspaces
(Collection<RelatedWorkspaceProperties> relatedWorkspaces) The standby WorkSpace or primary WorkSpace related to the specified WorkSpace.relatedWorkspaces
(Consumer<RelatedWorkspaceProperties.Builder>... relatedWorkspaces) The standby WorkSpace or primary WorkSpace related to the specified WorkSpace.relatedWorkspaces
(RelatedWorkspaceProperties... relatedWorkspaces) The standby WorkSpace or primary WorkSpace related to the specified WorkSpace.rootVolumeEncryptionEnabled
(Boolean rootVolumeEncryptionEnabled) Indicates whether the data stored on the root volume is encrypted.The operational state of the WorkSpace.state
(WorkspaceState state) The operational state of the WorkSpace.The identifier of the subnet for the WorkSpace.The user for the WorkSpace.userVolumeEncryptionEnabled
(Boolean userVolumeEncryptionEnabled) Indicates whether the data stored on the user volume is encrypted.volumeEncryptionKey
(String volumeEncryptionKey) The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace.workspaceId
(String workspaceId) The identifier of the WorkSpace.default Workspace.Builder
workspaceProperties
(Consumer<WorkspaceProperties.Builder> workspaceProperties) The properties of the WorkSpace.workspaceProperties
(WorkspaceProperties workspaceProperties) The properties of the WorkSpace.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
workspaceId
The identifier of the WorkSpace.
- Parameters:
workspaceId
- The identifier of the WorkSpace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
directoryId
The identifier of the Directory Service directory for the WorkSpace.
- Parameters:
directoryId
- The identifier of the Directory Service directory for the WorkSpace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userName
The user for the WorkSpace.
- Parameters:
userName
- The user for the WorkSpace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipAddress
The IP address of the WorkSpace.
- Parameters:
ipAddress
- The IP address of the WorkSpace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The operational state of the WorkSpace.
After a WorkSpace is terminated, the
TERMINATED
state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated.- Parameters:
state
- The operational state of the WorkSpace.After a WorkSpace is terminated, the
TERMINATED
state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The operational state of the WorkSpace.
After a WorkSpace is terminated, the
TERMINATED
state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated.- Parameters:
state
- The operational state of the WorkSpace.After a WorkSpace is terminated, the
TERMINATED
state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bundleId
The identifier of the bundle used to create the WorkSpace.
- Parameters:
bundleId
- The identifier of the bundle used to create the WorkSpace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
The identifier of the subnet for the WorkSpace.
- Parameters:
subnetId
- The identifier of the subnet for the WorkSpace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorMessage
The text of the error message that is returned if the WorkSpace cannot be created.
- Parameters:
errorMessage
- The text of the error message that is returned if the WorkSpace cannot be created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorCode
The error code that is returned if the WorkSpace cannot be created.
- Parameters:
errorCode
- The error code that is returned if the WorkSpace cannot be created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computerName
The name of the WorkSpace, as seen by the operating system. The format of this name varies. For more information, see Launch a WorkSpace.
- Parameters:
computerName
- The name of the WorkSpace, as seen by the operating system. The format of this name varies. For more information, see Launch a WorkSpace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeEncryptionKey
The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys.
- Parameters:
volumeEncryptionKey
- The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userVolumeEncryptionEnabled
Indicates whether the data stored on the user volume is encrypted.
- Parameters:
userVolumeEncryptionEnabled
- Indicates whether the data stored on the user volume is encrypted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rootVolumeEncryptionEnabled
Indicates whether the data stored on the root volume is encrypted.
- Parameters:
rootVolumeEncryptionEnabled
- Indicates whether the data stored on the root volume is encrypted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceProperties
The properties of the WorkSpace.
- Parameters:
workspaceProperties
- The properties of the WorkSpace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceProperties
default Workspace.Builder workspaceProperties(Consumer<WorkspaceProperties.Builder> workspaceProperties) The properties of the WorkSpace.
This is a convenience method that creates an instance of theWorkspaceProperties.Builder
avoiding the need to create one manually viaWorkspaceProperties.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toworkspaceProperties(WorkspaceProperties)
.- Parameters:
workspaceProperties
- a consumer that will call methods onWorkspaceProperties.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modificationStates
The modification states of the WorkSpace.
- Parameters:
modificationStates
- The modification states of the WorkSpace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modificationStates
The modification states of the WorkSpace.
- Parameters:
modificationStates
- The modification states of the WorkSpace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modificationStates
The modification states of the WorkSpace.
This is a convenience method that creates an instance of theModificationState.Builder
avoiding the need to create one manually viaModificationState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomodificationStates(List<ModificationState>)
.- Parameters:
modificationStates
- a consumer that will call methods onModificationState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-