Class MigrationWorkspace
java.lang.Object
software.amazon.awssdk.services.opensearch.model.MigrationWorkspace
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MigrationWorkspace.Builder,MigrationWorkspace>
@Generated("software.amazon.awssdk:codegen")
public final class MigrationWorkspace
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<MigrationWorkspace.Builder,MigrationWorkspace>
The target workspace configuration for a migration. You can specify an existing workspace by ID or request creation of a new workspace.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MigrationWorkspace.Builderbuilder()final BooleanSpecifies whether to create a new workspace as the migration target.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringname()The name of the new workspace to create.static Class<? extends MigrationWorkspace.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final Stringtype()The type of the new workspace to create.final StringThe unique identifier of an existing workspace to use as the migration target.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
workspaceId
The unique identifier of an existing workspace to use as the migration target. Specify either this parameter or
createWorkspace.- Returns:
- The unique identifier of an existing workspace to use as the migration target. Specify either this
parameter or
createWorkspace.
-
createWorkspace
Specifies whether to create a new workspace as the migration target. If
true, you must also specifyname.- Returns:
- Specifies whether to create a new workspace as the migration target. If
true, you must also specifyname.
-
name
The name of the new workspace to create. Required when
createWorkspaceistrue.- Returns:
- The name of the new workspace to create. Required when
createWorkspaceistrue.
-
type
The type of the new workspace to create.
- Returns:
- The type of the new workspace to create.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<MigrationWorkspace.Builder,MigrationWorkspace> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-