@Generated(value="OracleSDKGenerator", comments="API Version: 20191031") public final class Migration extends Object
The properties that define a migration. A migration represents the end-to-end workflow of moving an application from a source environment to Oracle Cloud Infrastructure. Each migration moves a single application to Oracle Cloud Infrastructure. For more information, see Manage Migrations.
To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator.
If you're an administrator who needs to write policies to give users access, see
[Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
Note: Objects should always be created or deserialized using the Migration.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 the Migration.Builder
, which maintain a set of all explicitly set fields called
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
Migration.Builder |
Constructor and Description |
---|
Migration(String id,
String compartmentId,
String displayName,
String description,
Date timeCreated,
String sourceId,
String applicationName,
MigrationTypes applicationType,
TargetDatabaseTypes preCreatedTargetDatabaseType,
Boolean isSelectiveMigration,
Map<String,ConfigurationField> serviceConfig,
Map<String,ConfigurationField> applicationConfig,
MigrationLifecycleStates lifecycleState,
String lifecycleDetails,
MigrationStates migrationState,
Map<String,String> freeformTags,
Map<String,Map<String,Object>> definedTags)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Migration.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
Map<String,ConfigurationField> |
getApplicationConfig()
Configuration required to migrate the application.
|
String |
getApplicationName()
Name of the application which is being migrated.
|
MigrationTypes |
getApplicationType()
The type of application being migrated.
|
String |
getCompartmentId()
The OCID of the compartment that contains the migration.
|
Map<String,Map<String,Object>> |
getDefinedTags()
Defined tags for this resource.
|
String |
getDescription()
Description of the migration.
|
String |
getDisplayName()
User-friendly name of the migration.
|
Map<String,String> |
getFreeformTags()
Free-form tags for this resource.
|
String |
getId()
The OCID of the migration.
|
Boolean |
getIsSelectiveMigration()
If set to
true , Application Migration migrates only the application resources that you specify. |
String |
getLifecycleDetails()
Details about the current lifecycle state of the migration.
|
MigrationLifecycleStates |
getLifecycleState()
The current state of the migration.
|
MigrationStates |
getMigrationState()
The current state of the overall migration process.
|
TargetDatabaseTypes |
getPreCreatedTargetDatabaseType()
The pre-existing database type to be used in this migration.
|
Map<String,ConfigurationField> |
getServiceConfig()
Configuration required to migrate the application.
|
String |
getSourceId()
The OCID of the source with which this migration is associated.
|
Date |
getTimeCreated()
The date and time at which the migration was created, in the format defined by RFC3339.
|
int |
hashCode() |
Migration.Builder |
toBuilder() |
String |
toString() |
@Deprecated @ConstructorProperties(value={"id","compartmentId","displayName","description","timeCreated","sourceId","applicationName","applicationType","preCreatedTargetDatabaseType","isSelectiveMigration","serviceConfig","applicationConfig","lifecycleState","lifecycleDetails","migrationState","freeformTags","definedTags"}) public Migration(String id, String compartmentId, String displayName, String description, Date timeCreated, String sourceId, String applicationName, MigrationTypes applicationType, TargetDatabaseTypes preCreatedTargetDatabaseType, Boolean isSelectiveMigration, Map<String,ConfigurationField> serviceConfig, Map<String,ConfigurationField> applicationConfig, MigrationLifecycleStates lifecycleState, String lifecycleDetails, MigrationStates migrationState, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags)
public static Migration.Builder builder()
Create a new builder.
public Migration.Builder toBuilder()
public String getCompartmentId()
The OCID of the compartment that contains the migration.
public String getDisplayName()
User-friendly name of the migration.
public String getDescription()
Description of the migration.
public Date getTimeCreated()
The date and time at which the migration was created, in the format defined by RFC3339.
public String getSourceId()
The OCID of the source with which this migration is associated.
public String getApplicationName()
Name of the application which is being migrated. This is the name of the application in the source environment.
public MigrationTypes getApplicationType()
The type of application being migrated.
public TargetDatabaseTypes getPreCreatedTargetDatabaseType()
The pre-existing database type to be used in this migration. Currently, Application migration only supports Oracle Cloud
Infrastructure databases and this option is currently available only for JAVA_CLOUD_SERVICE
and WEBLOGIC_CLOUD_SERVICE
target instance types.
public Boolean getIsSelectiveMigration()
If set to true
, Application Migration migrates only the application resources that you specify. If set to false
, Application Migration migrates the entire application. When you migrate the entire application, all the application resources are migrated to the target environment. You can selectively migrate resources only for the Oracle Integration Cloud and Oracle Integration Cloud Service applications.
public Map<String,ConfigurationField> getServiceConfig()
Configuration required to migrate the application. In addition to the key and value, additional fields are provided to describe type type and purpose of each field. Only the value for each key is required when passing configuration to the CreateMigration operation.
public Map<String,ConfigurationField> getApplicationConfig()
Configuration required to migrate the application. In addition to the key and value, additional fields are provided to describe type type and purpose of each field. Only the value for each key is required when passing configuration to the CreateMigration operation.
public MigrationLifecycleStates getLifecycleState()
The current state of the migration.
public String getLifecycleDetails()
Details about the current lifecycle state of the migration.
public MigrationStates getMigrationState()
The current state of the overall migration process.
public Map<String,String> getFreeformTags()
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
For more information, see Resource Tags. Example: {"Department": "Finance"}
public Map<String,Map<String,Object>> getDefinedTags()
Defined tags for this resource. Each key is predefined and scoped to a namespace.
For more information, see Resource Tags. Example: {"Operations": {"CostCenter": "42"}}
Copyright © 2016–2022. All rights reserved.