@Generated(value="software.amazon.awssdk:codegen") public final class Workspace extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Workspace.Builder,Workspace>
Describes a WorkSpace.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Workspace.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Workspace.Builder |
builder() |
String |
bundleId()
The identifier of the bundle used to create the WorkSpace.
|
String |
computerName()
The name of the WorkSpace, as seen by the operating system.
|
String |
directoryId()
The identifier of the Directory Service directory for the WorkSpace.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
errorCode()
The error code that is returned if the WorkSpace cannot be created.
|
String |
errorMessage()
The text of the error message that is returned if the WorkSpace cannot be created.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasModificationStates()
For responses, this returns true if the service returned a value for the ModificationStates property.
|
boolean |
hasRelatedWorkspaces()
For responses, this returns true if the service returned a value for the RelatedWorkspaces property.
|
String |
ipAddress()
The IP address of the WorkSpace.
|
List<ModificationState> |
modificationStates()
The modification states of the WorkSpace.
|
List<RelatedWorkspaceProperties> |
relatedWorkspaces()
The standby WorkSpace or primary WorkSpace related to the specified WorkSpace.
|
Boolean |
rootVolumeEncryptionEnabled()
Indicates whether the data stored on the root volume is encrypted.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Workspace.Builder> |
serializableBuilderClass() |
WorkspaceState |
state()
The operational state of the WorkSpace.
|
String |
stateAsString()
The operational state of the WorkSpace.
|
String |
subnetId()
The identifier of the subnet for the WorkSpace.
|
Workspace.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
userName()
The user for the WorkSpace.
|
Boolean |
userVolumeEncryptionEnabled()
Indicates whether the data stored on the user volume is encrypted.
|
String |
volumeEncryptionKey()
The symmetric KMS key used to encrypt data stored on your WorkSpace.
|
String |
workspaceId()
The identifier of the WorkSpace.
|
WorkspaceProperties |
workspaceProperties()
The properties of the WorkSpace.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String workspaceId()
The identifier of the WorkSpace.
public final String directoryId()
The identifier of the Directory Service directory for the WorkSpace.
public final String userName()
The user for the WorkSpace.
public final String ipAddress()
The IP address of the WorkSpace.
public final WorkspaceState 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.
If the service returns an enum value that is not available in the current SDK version, state will return
WorkspaceState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
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.
WorkspaceStatepublic final String stateAsString()
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.
If the service returns an enum value that is not available in the current SDK version, state will return
WorkspaceState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
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.
WorkspaceStatepublic final String bundleId()
The identifier of the bundle used to create the WorkSpace.
public final String subnetId()
The identifier of the subnet for the WorkSpace.
public final String errorMessage()
The text of the error message that is returned if the WorkSpace cannot be created.
public final String errorCode()
The error code that is returned if the WorkSpace cannot be created.
public final String 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.
public final String volumeEncryptionKey()
The symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys.
public final Boolean userVolumeEncryptionEnabled()
Indicates whether the data stored on the user volume is encrypted.
public final Boolean rootVolumeEncryptionEnabled()
Indicates whether the data stored on the root volume is encrypted.
public final WorkspaceProperties workspaceProperties()
The properties of the WorkSpace.
public final boolean hasModificationStates()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<ModificationState> modificationStates()
The modification states of the WorkSpace.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasModificationStates() method.
public final boolean hasRelatedWorkspaces()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<RelatedWorkspaceProperties> relatedWorkspaces()
The standby WorkSpace or primary WorkSpace related to the specified WorkSpace.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRelatedWorkspaces() method.
public Workspace.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Workspace.Builder,Workspace>public static Workspace.Builder builder()
public static Class<? extends Workspace.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.