Class StandbyWorkspace
- java.lang.Object
-
- software.amazon.awssdk.services.workspaces.model.StandbyWorkspace
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<StandbyWorkspace.Builder,StandbyWorkspace>
@Generated("software.amazon.awssdk:codegen") public final class StandbyWorkspace extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StandbyWorkspace.Builder,StandbyWorkspace>
Describes a standby WorkSpace.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStandbyWorkspace.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StandbyWorkspace.Builderbuilder()DataReplicationdataReplication()Indicates whether data replication is enabled, and if enabled, the type of data replication.StringdataReplicationAsString()Indicates whether data replication is enabled, and if enabled, the type of data replication.StringdirectoryId()The identifier of the directory for the standby WorkSpace.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.StringprimaryWorkspaceId()The identifier of the standby WorkSpace.List<SdkField<?>>sdkFields()static Class<? extends StandbyWorkspace.Builder>serializableBuilderClass()List<Tag>tags()The tags associated with the standby WorkSpace.StandbyWorkspace.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvolumeEncryptionKey()The volume encryption key of the standby WorkSpace.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
primaryWorkspaceId
public final String primaryWorkspaceId()
The identifier of the standby WorkSpace.
- Returns:
- The identifier of the standby WorkSpace.
-
volumeEncryptionKey
public final String volumeEncryptionKey()
The volume encryption key of the standby WorkSpace.
- Returns:
- The volume encryption key of the standby WorkSpace.
-
directoryId
public final String directoryId()
The identifier of the directory for the standby WorkSpace.
- Returns:
- The identifier of the directory for the standby WorkSpace.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
tags
public final List<Tag> tags()
The tags associated with the standby 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
hasTags()method.- Returns:
- The tags associated with the standby WorkSpace.
-
dataReplication
public final DataReplication dataReplication()
Indicates whether data replication is enabled, and if enabled, the type of data replication.
If the service returns an enum value that is not available in the current SDK version,
dataReplicationwill returnDataReplication.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdataReplicationAsString().- Returns:
- Indicates whether data replication is enabled, and if enabled, the type of data replication.
- See Also:
DataReplication
-
dataReplicationAsString
public final String dataReplicationAsString()
Indicates whether data replication is enabled, and if enabled, the type of data replication.
If the service returns an enum value that is not available in the current SDK version,
dataReplicationwill returnDataReplication.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdataReplicationAsString().- Returns:
- Indicates whether data replication is enabled, and if enabled, the type of data replication.
- See Also:
DataReplication
-
toBuilder
public StandbyWorkspace.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<StandbyWorkspace.Builder,StandbyWorkspace>
-
builder
public static StandbyWorkspace.Builder builder()
-
serializableBuilderClass
public static Class<? extends StandbyWorkspace.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-