Class MigrationAsset
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.cloudmigrations.model.MigrationAsset
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20220919") public final class MigrationAsset extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelDescription of the migration asset.
Note: Objects should always be created or deserialized using theMigrationAsset.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theMigrationAsset.Builder, which maintain a set of all explicitly set fields calledMigrationAsset.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMigrationAsset.Builderstatic classMigrationAsset.LifecycleStateThe current state of the migration asset.static classMigrationAsset.Notifications
-
Constructor Summary
Constructors Constructor Description MigrationAsset(String id, String type, String displayName, String compartmentId, MigrationAsset.LifecycleState lifecycleState, String lifecycleDetails, Date timeCreated, Date timeUpdated, String migrationId, Map<String,HydratedVolume> snapshots, String parentSnapshot, Map<String,Object> sourceAssetData, List<MigrationAsset.Notifications> notifications, String sourceAssetId, String replicationScheduleId, String availabilityDomain, String replicationCompartmentId, String tenancyId, String snapShotBucketName, List<String> dependedOnBy, List<String> dependsOn)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MigrationAsset.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetAvailabilityDomain()Availability domainStringgetCompartmentId()Compartment IdentifierList<String>getDependedOnBy()List of migration assets that depend on the asset.List<String>getDependsOn()List of migration assets that depends on the asset.StringgetDisplayName()A user-friendly name.StringgetId()Asset ID generated by mirgration service.StringgetLifecycleDetails()A message describing the current state in more detail.MigrationAsset.LifecycleStategetLifecycleState()The current state of the migration asset.StringgetMigrationId()OCID of the associated migration.List<MigrationAsset.Notifications>getNotifications()List of notificationsStringgetParentSnapshot()The parent snapshot of the migration asset to be used by the replication task.StringgetReplicationCompartmentId()Replication compartment identifierStringgetReplicationScheduleId()Replication schedule identifierStringgetSnapShotBucketName()Name of snapshot bucketMap<String,HydratedVolume>getSnapshots()Key-value pair representing disks ID mapped to the OCIDs of replicated or hydration server volume snapshots.Map<String,Object>getSourceAssetData()Key-value pair representing asset metadata keys and values scoped to a namespace.StringgetSourceAssetId()OCID that is referenced to an asset for an inventory.StringgetTenancyId()Tenancy identifierDategetTimeCreated()The time when the migration asset was created.DategetTimeUpdated()The time when the migration asset was updated.StringgetType()The type of asset referenced for inventory.inthashCode()MigrationAsset.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
MigrationAsset
@Deprecated @ConstructorProperties({"id","type","displayName","compartmentId","lifecycleState","lifecycleDetails","timeCreated","timeUpdated","migrationId","snapshots","parentSnapshot","sourceAssetData","notifications","sourceAssetId","replicationScheduleId","availabilityDomain","replicationCompartmentId","tenancyId","snapShotBucketName","dependedOnBy","dependsOn"}) public MigrationAsset(String id, String type, String displayName, String compartmentId, MigrationAsset.LifecycleState lifecycleState, String lifecycleDetails, Date timeCreated, Date timeUpdated, String migrationId, Map<String,HydratedVolume> snapshots, String parentSnapshot, Map<String,Object> sourceAssetData, List<MigrationAsset.Notifications> notifications, String sourceAssetId, String replicationScheduleId, String availabilityDomain, String replicationCompartmentId, String tenancyId, String snapShotBucketName, List<String> dependedOnBy, List<String> dependsOn)
Deprecated.
-
-
Method Detail
-
builder
public static MigrationAsset.Builder builder()
Create a new builder.
-
toBuilder
public MigrationAsset.Builder toBuilder()
-
getId
public String getId()
Asset ID generated by mirgration service.It is used in the mirgration service pipeline.
- Returns:
- the value
-
getType
public String getType()
The type of asset referenced for inventory.- Returns:
- the value
-
getDisplayName
public String getDisplayName()
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Returns:
- the value
-
getCompartmentId
public String getCompartmentId()
Compartment Identifier- Returns:
- the value
-
getLifecycleState
public MigrationAsset.LifecycleState getLifecycleState()
The current state of the migration asset.- Returns:
- the value
-
getLifecycleDetails
public String getLifecycleDetails()
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.
- Returns:
- the value
-
getTimeCreated
public Date getTimeCreated()
The time when the migration asset was created.An RFC3339 formatted datetime string.
- Returns:
- the value
-
getTimeUpdated
public Date getTimeUpdated()
The time when the migration asset was updated.An RFC3339 formatted datetime string.
- Returns:
- the value
-
getMigrationId
public String getMigrationId()
OCID of the associated migration.- Returns:
- the value
-
getSnapshots
public Map<String,HydratedVolume> getSnapshots()
Key-value pair representing disks ID mapped to the OCIDs of replicated or hydration server volume snapshots.Example: {“bar-key”: “value”}
- Returns:
- the value
-
getParentSnapshot
public String getParentSnapshot()
The parent snapshot of the migration asset to be used by the replication task.- Returns:
- the value
-
getSourceAssetData
public Map<String,Object> getSourceAssetData()
Key-value pair representing asset metadata keys and values scoped to a namespace.Example: {“bar-key”: “value”}
- Returns:
- the value
-
getNotifications
public List<MigrationAsset.Notifications> getNotifications()
List of notifications- Returns:
- the value
-
getSourceAssetId
public String getSourceAssetId()
OCID that is referenced to an asset for an inventory.- Returns:
- the value
-
getReplicationScheduleId
public String getReplicationScheduleId()
Replication schedule identifier- Returns:
- the value
-
getAvailabilityDomain
public String getAvailabilityDomain()
Availability domain- Returns:
- the value
-
getReplicationCompartmentId
public String getReplicationCompartmentId()
Replication compartment identifier- Returns:
- the value
-
getTenancyId
public String getTenancyId()
Tenancy identifier- Returns:
- the value
-
getSnapShotBucketName
public String getSnapShotBucketName()
Name of snapshot bucket- Returns:
- the value
-
getDependedOnBy
public List<String> getDependedOnBy()
List of migration assets that depend on the asset.- Returns:
- the value
-
getDependsOn
public List<String> getDependsOn()
List of migration assets that depends on the asset.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-