@Generated(value="OracleSDKGenerator", comments="API Version: 20191031") public interface ApplicationMigrationAsync extends AutoCloseable
API for the Application Migration service. Use this API to migrate applications from Oracle Cloud Infrastructure - Classic to Oracle Cloud Infrastructure.
closevoid setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint - The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint after resolving the endpoint. If the service is not available in this region, however, an IllegalArgumentException will be raised.
region - The region of the service.void setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call
setRegion.
If no known Region could be determined, it will create an endpoint based on the
default endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint.
regionId - The public region ID.Future<CancelWorkRequestResponse> cancelWorkRequest(CancelWorkRequestRequest request, AsyncHandler<CancelWorkRequestRequest,CancelWorkRequestResponse> handler)
Cancels the specified work request
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ChangeMigrationCompartmentResponse> changeMigrationCompartment(ChangeMigrationCompartmentRequest request, AsyncHandler<ChangeMigrationCompartmentRequest,ChangeMigrationCompartmentResponse> handler)
Moves a Migration into a different compartment.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ChangeSourceCompartmentResponse> changeSourceCompartment(ChangeSourceCompartmentRequest request, AsyncHandler<ChangeSourceCompartmentRequest,ChangeSourceCompartmentResponse> handler)
Moves a Source into a different compartment.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<CreateMigrationResponse> createMigration(CreateMigrationRequest request, AsyncHandler<CreateMigrationRequest,CreateMigrationResponse> handler)
Creates an application migration in the specified compartment. Specify the compartment using the compartment ID.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<CreateSourceResponse> createSource(CreateSourceRequest request, AsyncHandler<CreateSourceRequest,CreateSourceResponse> handler)
Creates a migration source in the specified compartment. Specify the compartment using the compartment ID.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<DeleteMigrationResponse> deleteMigration(DeleteMigrationRequest request, AsyncHandler<DeleteMigrationRequest,DeleteMigrationResponse> handler)
Deletes the specified Application object.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<DeleteSourceResponse> deleteSource(DeleteSourceRequest request, AsyncHandler<DeleteSourceRequest,DeleteSourceResponse> handler)
Deletes the specified Source object.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<GetMigrationResponse> getMigration(GetMigrationRequest request, AsyncHandler<GetMigrationRequest,GetMigrationResponse> handler)
Gets an application migration using the ID.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<GetSourceResponse> getSource(GetSourceRequest request, AsyncHandler<GetSourceRequest,GetSourceResponse> handler)
Gets a migration source using the source ID.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
Gets the details of a work request.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListMigrationsResponse> listMigrations(ListMigrationsRequest request, AsyncHandler<ListMigrationsRequest,ListMigrationsResponse> handler)
Returns a list of migrations in a given compartment.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListSourceApplicationsResponse> listSourceApplications(ListSourceApplicationsRequest request, AsyncHandler<ListSourceApplicationsRequest,ListSourceApplicationsResponse> handler)
Returns a list of applications running in the source environment. This list is generated dynamically by interrogating the source and changes as applications are started or stopped in that environment.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListSourcesResponse> listSources(ListSourcesRequest request, AsyncHandler<ListSourcesRequest,ListSourcesResponse> handler)
Returns a list of migration sources in a specified compartment.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
Gets the errors for a work request.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
Gets the logs for a work request.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
Lists the work requests in a compartment or for a specified resource.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<MigrateApplicationResponse> migrateApplication(MigrateApplicationRequest request, AsyncHandler<MigrateApplicationRequest,MigrateApplicationResponse> handler)
Validates target configuration and migrates a PaaS application running in a Source environment into the customers Oracle Cloud Infrastructure tenancy. This an optional action and only required if automatic start of migration was not selected when creating the migration.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<UpdateMigrationResponse> updateMigration(UpdateMigrationRequest request, AsyncHandler<UpdateMigrationRequest,UpdateMigrationResponse> handler)
Update the configuration for an application migration.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<UpdateSourceResponse> updateSource(UpdateSourceRequest request, AsyncHandler<UpdateSourceRequest,UpdateSourceResponse> handler)
Update source details.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Copyright © 2016–2020. All rights reserved.