Class MigrationAsset.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudmigrations.model.MigrationAsset.Builder
-
- Enclosing class:
- MigrationAsset
public static class MigrationAsset.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MigrationAsset.BuilderavailabilityDomain(String availabilityDomain)Availability domainMigrationAssetbuild()MigrationAsset.BuildercompartmentId(String compartmentId)Compartment IdentifierMigrationAsset.Buildercopy(MigrationAsset model)MigrationAsset.BuilderdependedOnBy(List<String> dependedOnBy)List of migration assets that depend on the asset.MigrationAsset.BuilderdependsOn(List<String> dependsOn)List of migration assets that depends on the asset.MigrationAsset.BuilderdisplayName(String displayName)A user-friendly name.MigrationAsset.Builderid(String id)Asset ID generated by mirgration service.MigrationAsset.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.MigrationAsset.BuilderlifecycleState(MigrationAsset.LifecycleState lifecycleState)The current state of the migration asset.MigrationAsset.BuildermigrationId(String migrationId)OCID of the associated migration.MigrationAsset.Buildernotifications(List<MigrationAsset.Notifications> notifications)List of notificationsMigrationAsset.BuilderparentSnapshot(String parentSnapshot)The parent snapshot of the migration asset to be used by the replication task.MigrationAsset.BuilderreplicationCompartmentId(String replicationCompartmentId)Replication compartment identifierMigrationAsset.BuilderreplicationScheduleId(String replicationScheduleId)Replication schedule identifierMigrationAsset.BuildersnapShotBucketName(String snapShotBucketName)Name of snapshot bucketMigrationAsset.Buildersnapshots(Map<String,HydratedVolume> snapshots)Key-value pair representing disks ID mapped to the OCIDs of replicated or hydration server volume snapshots.MigrationAsset.BuildersourceAssetData(Map<String,Object> sourceAssetData)Key-value pair representing asset metadata keys and values scoped to a namespace.MigrationAsset.BuildersourceAssetId(String sourceAssetId)OCID that is referenced to an asset for an inventory.MigrationAsset.BuildertenancyId(String tenancyId)Tenancy identifierMigrationAsset.BuildertimeCreated(Date timeCreated)The time when the migration asset was created.MigrationAsset.BuildertimeUpdated(Date timeUpdated)The time when the migration asset was updated.MigrationAsset.Buildertype(String type)The type of asset referenced for inventory.
-
-
-
Method Detail
-
id
public MigrationAsset.Builder id(String id)
Asset ID generated by mirgration service.It is used in the mirgration service pipeline.
- Parameters:
id- the value to set- Returns:
- this builder
-
type
public MigrationAsset.Builder type(String type)
The type of asset referenced for inventory.- Parameters:
type- the value to set- Returns:
- this builder
-
displayName
public MigrationAsset.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
compartmentId
public MigrationAsset.Builder compartmentId(String compartmentId)
Compartment Identifier- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
lifecycleState
public MigrationAsset.Builder lifecycleState(MigrationAsset.LifecycleState lifecycleState)
The current state of the migration asset.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public MigrationAsset.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.For example, it can be used to provide actionable information for a resource in Failed state.
- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
timeCreated
public MigrationAsset.Builder timeCreated(Date timeCreated)
The time when the migration asset was created.An RFC3339 formatted datetime string.
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public MigrationAsset.Builder timeUpdated(Date timeUpdated)
The time when the migration asset was updated.An RFC3339 formatted datetime string.
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
migrationId
public MigrationAsset.Builder migrationId(String migrationId)
OCID of the associated migration.- Parameters:
migrationId- the value to set- Returns:
- this builder
-
snapshots
public MigrationAsset.Builder snapshots(Map<String,HydratedVolume> snapshots)
Key-value pair representing disks ID mapped to the OCIDs of replicated or hydration server volume snapshots.Example: {“bar-key”: “value”}
- Parameters:
snapshots- the value to set- Returns:
- this builder
-
parentSnapshot
public MigrationAsset.Builder parentSnapshot(String parentSnapshot)
The parent snapshot of the migration asset to be used by the replication task.- Parameters:
parentSnapshot- the value to set- Returns:
- this builder
-
sourceAssetData
public MigrationAsset.Builder sourceAssetData(Map<String,Object> sourceAssetData)
Key-value pair representing asset metadata keys and values scoped to a namespace.Example: {“bar-key”: “value”}
- Parameters:
sourceAssetData- the value to set- Returns:
- this builder
-
notifications
public MigrationAsset.Builder notifications(List<MigrationAsset.Notifications> notifications)
List of notifications- Parameters:
notifications- the value to set- Returns:
- this builder
-
sourceAssetId
public MigrationAsset.Builder sourceAssetId(String sourceAssetId)
OCID that is referenced to an asset for an inventory.- Parameters:
sourceAssetId- the value to set- Returns:
- this builder
-
replicationScheduleId
public MigrationAsset.Builder replicationScheduleId(String replicationScheduleId)
Replication schedule identifier- Parameters:
replicationScheduleId- the value to set- Returns:
- this builder
-
availabilityDomain
public MigrationAsset.Builder availabilityDomain(String availabilityDomain)
Availability domain- Parameters:
availabilityDomain- the value to set- Returns:
- this builder
-
replicationCompartmentId
public MigrationAsset.Builder replicationCompartmentId(String replicationCompartmentId)
Replication compartment identifier- Parameters:
replicationCompartmentId- the value to set- Returns:
- this builder
-
tenancyId
public MigrationAsset.Builder tenancyId(String tenancyId)
Tenancy identifier- Parameters:
tenancyId- the value to set- Returns:
- this builder
-
snapShotBucketName
public MigrationAsset.Builder snapShotBucketName(String snapShotBucketName)
Name of snapshot bucket- Parameters:
snapShotBucketName- the value to set- Returns:
- this builder
-
dependedOnBy
public MigrationAsset.Builder dependedOnBy(List<String> dependedOnBy)
List of migration assets that depend on the asset.- Parameters:
dependedOnBy- the value to set- Returns:
- this builder
-
dependsOn
public MigrationAsset.Builder dependsOn(List<String> dependsOn)
List of migration assets that depends on the asset.- Parameters:
dependsOn- the value to set- Returns:
- this builder
-
build
public MigrationAsset build()
-
copy
public MigrationAsset.Builder copy(MigrationAsset model)
-
-