Class MigrationAssetSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudmigrations.model.MigrationAssetSummary.Builder
-
- Enclosing class:
- MigrationAssetSummary
public static class MigrationAssetSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MigrationAssetSummarybuild()MigrationAssetSummary.BuildercompartmentId(String compartmentId)Compartment identifierMigrationAssetSummary.Buildercopy(MigrationAssetSummary model)MigrationAssetSummary.BuilderdependedOnBy(List<String> dependedOnBy)List of migration assets that depend on this asset.MigrationAssetSummary.BuilderdependsOn(List<String> dependsOn)List of migration assets that depend on this asset.MigrationAssetSummary.BuilderdisplayName(String displayName)A user-friendly name.MigrationAssetSummary.Builderid(String id)The asset ID generated by the mirgration service.MigrationAssetSummary.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.MigrationAssetSummary.BuilderlifecycleState(MigrationAsset.LifecycleState lifecycleState)The current state of the migration asset.MigrationAssetSummary.BuildermigrationId(String migrationId)OCID of the associated migration.MigrationAssetSummary.Buildernotifications(List<MigrationAssetSummary.Notifications> notifications)List of notifications.MigrationAssetSummary.BuilderparentSnapshot(String parentSnapshot)The parent snapshot of the mgration asset to be used by the replication task.MigrationAssetSummary.BuilderreplicationScheduleId(String replicationScheduleId)Replication schedule identifierMigrationAssetSummary.BuildersnapshotInfo(String snapshotInfo)The snapshot information.MigrationAssetSummary.Buildersnapshots(Map<String,HydratedVolume> snapshots)Key-value pair representing disk’s ID that is mapped to the OCIDs of replicated/hydration server volume snapshots.MigrationAssetSummary.BuildersourceAssetData(Map<String,Object> sourceAssetData)Key-value pair representing asset metadata keys and values scoped to a namespace.MigrationAssetSummary.BuildersourceAssetId(String sourceAssetId)OCID that is referenced to an asset, for an inventory.MigrationAssetSummary.BuildertenancyId(String tenancyId)Tenancy IdentifierMigrationAssetSummary.BuildertimeCreated(Date timeCreated)The time when the migration asset was created.MigrationAssetSummary.BuildertimeUpdated(Date timeUpdated)The time when the migration asset was updated.MigrationAssetSummary.Buildertype(String type)The type of asset referenced for an inventory.
-
-
-
Method Detail
-
id
public MigrationAssetSummary.Builder id(String id)
The asset ID generated by the mirgration service.It is used in the migration service pipeline.
- Parameters:
id- the value to set- Returns:
- this builder
-
type
public MigrationAssetSummary.Builder type(String type)
The type of asset referenced for an inventory.- Parameters:
type- the value to set- Returns:
- this builder
-
displayName
public MigrationAssetSummary.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 MigrationAssetSummary.Builder compartmentId(String compartmentId)
Compartment identifier- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
lifecycleState
public MigrationAssetSummary.Builder lifecycleState(MigrationAsset.LifecycleState lifecycleState)
The current state of the migration asset.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public MigrationAssetSummary.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 MigrationAssetSummary.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 MigrationAssetSummary.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 MigrationAssetSummary.Builder migrationId(String migrationId)
OCID of the associated migration.- Parameters:
migrationId- the value to set- Returns:
- this builder
-
snapshots
public MigrationAssetSummary.Builder snapshots(Map<String,HydratedVolume> snapshots)
Key-value pair representing disk’s ID that is mapped to the OCIDs of replicated/hydration server volume snapshots.Example: {“bar-key”: “value”}
- Parameters:
snapshots- the value to set- Returns:
- this builder
-
parentSnapshot
public MigrationAssetSummary.Builder parentSnapshot(String parentSnapshot)
The parent snapshot of the mgration asset to be used by the replication task.- Parameters:
parentSnapshot- the value to set- Returns:
- this builder
-
snapshotInfo
public MigrationAssetSummary.Builder snapshotInfo(String snapshotInfo)
The snapshot information.- Parameters:
snapshotInfo- the value to set- Returns:
- this builder
-
sourceAssetData
public MigrationAssetSummary.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 MigrationAssetSummary.Builder notifications(List<MigrationAssetSummary.Notifications> notifications)
List of notifications.- Parameters:
notifications- the value to set- Returns:
- this builder
-
sourceAssetId
public MigrationAssetSummary.Builder sourceAssetId(String sourceAssetId)
OCID that is referenced to an asset, for an inventory.- Parameters:
sourceAssetId- the value to set- Returns:
- this builder
-
dependedOnBy
public MigrationAssetSummary.Builder dependedOnBy(List<String> dependedOnBy)
List of migration assets that depend on this asset.- Parameters:
dependedOnBy- the value to set- Returns:
- this builder
-
dependsOn
public MigrationAssetSummary.Builder dependsOn(List<String> dependsOn)
List of migration assets that depend on this asset.- Parameters:
dependsOn- the value to set- Returns:
- this builder
-
replicationScheduleId
public MigrationAssetSummary.Builder replicationScheduleId(String replicationScheduleId)
Replication schedule identifier- Parameters:
replicationScheduleId- the value to set- Returns:
- this builder
-
tenancyId
public MigrationAssetSummary.Builder tenancyId(String tenancyId)
Tenancy Identifier- Parameters:
tenancyId- the value to set- Returns:
- this builder
-
build
public MigrationAssetSummary build()
-
copy
public MigrationAssetSummary.Builder copy(MigrationAssetSummary model)
-
-