@Generated(value="OracleSDKGenerator", comments="API Version: 20191031") public final class CreateMigrationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
While creating a migration, specify the source and the application that you want migrate. Each migration moves a single application from a specified source to a specified Oracle Cloud Infrastructure tenancy. If required, provide the credentials of the application administrator in the source environment. Application Migration uses this information to access the application, as well as discover application artifacts, such as the complete domain configuration along with data sources and other dependencies.
You must also assign a name and provide a description for the migration. This helps you to identify the appropriate source environment when you have multiple sources defined.
*Warning:** Oracle recommends that you avoid using any confidential information when you
supply string values using the API.
Note: Objects should always be created or deserialized using the CreateMigrationDetails.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 CreateMigrationDetails.Builder
, which maintain a
set of all explicitly set fields called CreateMigrationDetails.Builder.__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and Description |
---|---|
static class |
CreateMigrationDetails.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
CreateMigrationDetails(String compartmentId,
String displayName,
String description,
String sourceId,
String applicationName,
DiscoveryDetails discoveryDetails,
TargetDatabaseTypes preCreatedTargetDatabaseType,
Boolean isSelectiveMigration,
Map<String,ConfigurationField> serviceConfig,
Map<String,ConfigurationField> applicationConfig,
Map<String,String> freeformTags,
Map<String,Map<String,Object>> definedTags)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CreateMigrationDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Map<String,ConfigurationField> |
getApplicationConfig()
Configuration required to migrate the application.
|
String |
getApplicationName()
Name of the application that you want to migrate from the source environment.
|
String |
getCompartmentId()
The OCID of
the compartment that contains the source.
|
Map<String,Map<String,Object>> |
getDefinedTags()
Defined tags for this resource.
|
String |
getDescription()
Description of the application that you are migrating.
|
DiscoveryDetails |
getDiscoveryDetails() |
String |
getDisplayName()
User-friendly name of the application.
|
Map<String,String> |
getFreeformTags()
Free-form tags for this resource.
|
Boolean |
getIsSelectiveMigration()
If set to
true , Application Migration migrates the application resources selectively
depending on the source. |
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.
|
int |
hashCode() |
CreateMigrationDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"compartmentId","displayName","description","sourceId","applicationName","discoveryDetails","preCreatedTargetDatabaseType","isSelectiveMigration","serviceConfig","applicationConfig","freeformTags","definedTags"}) public CreateMigrationDetails(String compartmentId, String displayName, String description, String sourceId, String applicationName, DiscoveryDetails discoveryDetails, TargetDatabaseTypes preCreatedTargetDatabaseType, Boolean isSelectiveMigration, Map<String,ConfigurationField> serviceConfig, Map<String,ConfigurationField> applicationConfig, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags)
public static CreateMigrationDetails.Builder builder()
Create a new builder.
public CreateMigrationDetails.Builder toBuilder()
public String getCompartmentId()
The OCID of the compartment that contains the source.
public String getDisplayName()
User-friendly name of the application. This will be the name of the migrated application in Oracle Cloud Infrastructure.
public String getDescription()
Description of the application that you are migrating.
public String getApplicationName()
Name of the application that you want to migrate from the source environment.
public DiscoveryDetails getDiscoveryDetails()
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 the application resources selectively
depending on the source.
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 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"}}
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2023. All rights reserved.