@Generated(value="OracleSDKGenerator", comments="API Version: 20191031") public class ApplicationMigrationClient extends Object implements ApplicationMigration
| Modifier and Type | Class and Description |
|---|---|
static class |
ApplicationMigrationClient.Builder
Builder class for this client.
|
| Modifier and Type | Field and Description |
|---|---|
static Service |
SERVICE
Service instance for ApplicationMigration.
|
| Modifier | Constructor and Description |
|---|---|
|
ApplicationMigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Creates a new service instance using the given authentication provider and client configuration.
|
|
ApplicationMigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Creates a new service instance using the given authentication provider and client configuration.
|
|
ApplicationMigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Creates a new service instance using the given authentication provider and client configuration.
|
|
ApplicationMigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Creates a new service instance using the given authentication provider and client configuration.
|
|
ApplicationMigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService)
Creates a new service instance using the given authentication provider and client configuration.
|
protected |
ApplicationMigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService,
com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder)
Creates a new service instance using the given authentication provider and client configuration.
|
|
ApplicationMigrationClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
|
|
ApplicationMigrationClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Creates a new service instance using the given authentication provider and client configuration.
|
|
ApplicationMigrationClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Creates a new service instance using the given authentication provider and client configuration.
|
| Modifier and Type | Method and Description |
|---|---|
static ApplicationMigrationClient.Builder |
builder()
Create a builder for this client.
|
CancelWorkRequestResponse |
cancelWorkRequest(CancelWorkRequestRequest request)
Cancels the specified work request
|
ChangeMigrationCompartmentResponse |
changeMigrationCompartment(ChangeMigrationCompartmentRequest request)
Moves a Migration into a different compartment.
|
ChangeSourceCompartmentResponse |
changeSourceCompartment(ChangeSourceCompartmentRequest request)
Moves a Source into a different compartment.
|
void |
close() |
CreateMigrationResponse |
createMigration(CreateMigrationRequest request)
Creates an application migration in the specified compartment.
|
CreateSourceResponse |
createSource(CreateSourceRequest request)
Creates a migration source in the specified compartment.
|
DeleteMigrationResponse |
deleteMigration(DeleteMigrationRequest request)
Deletes the specified Application object.
|
DeleteSourceResponse |
deleteSource(DeleteSourceRequest request)
Deletes the specified Source object.
|
String |
getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
|
GetMigrationResponse |
getMigration(GetMigrationRequest request)
Gets an application migration using the ID.
|
ApplicationMigrationPaginators |
getPaginators()
Gets the pre-configured paginators available for list operations in this service which may return multiple
pages of data.
|
GetSourceResponse |
getSource(GetSourceRequest request)
Gets a migration source using the source ID.
|
ApplicationMigrationWaiters |
getWaiters()
Gets the pre-configured waiters available for resources for this service.
|
GetWorkRequestResponse |
getWorkRequest(GetWorkRequestRequest request)
Gets the details of a work request.
|
ListMigrationsResponse |
listMigrations(ListMigrationsRequest request)
Returns a list of migrations in a given compartment.
|
ListSourceApplicationsResponse |
listSourceApplications(ListSourceApplicationsRequest request)
Returns a list of applications running in the source environment.
|
ListSourcesResponse |
listSources(ListSourcesRequest request)
Returns a list of migration sources in a specified compartment.
|
ListWorkRequestErrorsResponse |
listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Gets the errors for a work request.
|
ListWorkRequestLogsResponse |
listWorkRequestLogs(ListWorkRequestLogsRequest request)
Gets the logs for a work request.
|
ListWorkRequestsResponse |
listWorkRequests(ListWorkRequestsRequest request)
Lists the work requests in a compartment or for a specified resource.
|
MigrateApplicationResponse |
migrateApplication(MigrateApplicationRequest request)
Validates target configuration and migrates a PaaS application running in a Source environment into the customers Oracle Cloud Infrastructure tenancy.
|
void |
setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
|
void |
setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
|
void |
setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
|
UpdateMigrationResponse |
updateMigration(UpdateMigrationRequest request)
Update the configuration for an application migration.
|
UpdateSourceResponse |
updateSource(UpdateSourceRequest request)
Update source details.
|
public static final Service SERVICE
Service instance for ApplicationMigration.
public ApplicationMigrationClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
authenticationDetailsProvider - The authentication details provider, required.public ApplicationMigrationClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Creates a new service instance using the given authentication provider and client configuration.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.public ApplicationMigrationClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.public ApplicationMigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.public ApplicationMigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.additionalClientConfigurators - Additional client configurators to be run after the primary configurator.public ApplicationMigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.additionalClientConfigurators - Additional client configurators to be run after the primary configurator.endpoint - Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider)public ApplicationMigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories - The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators - Additional client configurators to be run after the primary configurator.endpoint - Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider)public ApplicationMigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories - The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators - Additional client configurators to be run after the primary configurator.endpoint - Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider)executorService - ExecutorService used by the client, or null to use the default configured ThreadPoolExecutorprotected ApplicationMigrationClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService, com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
Use the ApplicationMigrationClient.Builder to get access to all these parameters.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories - The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators - Additional client configurators to be run after the primary configurator.endpoint - Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider)executorService - ExecutorService used by the client, or null to use the default configured ThreadPoolExecutorrestClientFactoryBuilder - the builder for the RestClientFactorypublic static ApplicationMigrationClient.Builder builder()
Create a builder for this client.
public void setEndpoint(String endpoint)
ApplicationMigrationSets the endpoint to call (ex, https://www.example.com).
setEndpoint in interface ApplicationMigrationendpoint - The endpoint of the service.public String getEndpoint()
ApplicationMigrationGets the set endpoint for REST call (ex, https://www.example.com)
getEndpoint in interface ApplicationMigrationpublic void setRegion(Region region)
ApplicationMigrationSets 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.
setRegion in interface ApplicationMigrationregion - The region of the service.public void setRegion(String regionId)
ApplicationMigrationSets 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.
setRegion in interface ApplicationMigrationregionId - The public region ID.public void close()
close in interface AutoCloseablepublic CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request)
ApplicationMigrationCancels the specified work request
cancelWorkRequest in interface ApplicationMigrationrequest - The request object containing the details to sendpublic ChangeMigrationCompartmentResponse changeMigrationCompartment(ChangeMigrationCompartmentRequest request)
ApplicationMigrationMoves a Migration into a different compartment.
changeMigrationCompartment in interface ApplicationMigrationrequest - The request object containing the details to sendpublic ChangeSourceCompartmentResponse changeSourceCompartment(ChangeSourceCompartmentRequest request)
ApplicationMigrationMoves a Source into a different compartment.
changeSourceCompartment in interface ApplicationMigrationrequest - The request object containing the details to sendpublic CreateMigrationResponse createMigration(CreateMigrationRequest request)
ApplicationMigrationCreates an application migration in the specified compartment. Specify the compartment using the compartment ID.
createMigration in interface ApplicationMigrationrequest - The request object containing the details to sendpublic CreateSourceResponse createSource(CreateSourceRequest request)
ApplicationMigrationCreates a migration source in the specified compartment. Specify the compartment using the compartment ID.
createSource in interface ApplicationMigrationrequest - The request object containing the details to sendpublic DeleteMigrationResponse deleteMigration(DeleteMigrationRequest request)
ApplicationMigrationDeletes the specified Application object.
deleteMigration in interface ApplicationMigrationrequest - The request object containing the details to sendpublic DeleteSourceResponse deleteSource(DeleteSourceRequest request)
ApplicationMigrationDeletes the specified Source object.
deleteSource in interface ApplicationMigrationrequest - The request object containing the details to sendpublic GetMigrationResponse getMigration(GetMigrationRequest request)
ApplicationMigrationGets an application migration using the ID.
getMigration in interface ApplicationMigrationrequest - The request object containing the details to sendpublic GetSourceResponse getSource(GetSourceRequest request)
ApplicationMigrationGets a migration source using the source ID.
getSource in interface ApplicationMigrationrequest - The request object containing the details to sendpublic GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
ApplicationMigrationGets the details of a work request.
getWorkRequest in interface ApplicationMigrationrequest - The request object containing the details to sendpublic ListMigrationsResponse listMigrations(ListMigrationsRequest request)
ApplicationMigrationReturns a list of migrations in a given compartment.
listMigrations in interface ApplicationMigrationrequest - The request object containing the details to sendpublic ListSourceApplicationsResponse listSourceApplications(ListSourceApplicationsRequest request)
ApplicationMigrationReturns 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.
listSourceApplications in interface ApplicationMigrationrequest - The request object containing the details to sendpublic ListSourcesResponse listSources(ListSourcesRequest request)
ApplicationMigrationReturns a list of migration sources in a specified compartment.
listSources in interface ApplicationMigrationrequest - The request object containing the details to sendpublic ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
ApplicationMigrationGets the errors for a work request.
listWorkRequestErrors in interface ApplicationMigrationrequest - The request object containing the details to sendpublic ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
ApplicationMigrationGets the logs for a work request.
listWorkRequestLogs in interface ApplicationMigrationrequest - The request object containing the details to sendpublic ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
ApplicationMigrationLists the work requests in a compartment or for a specified resource.
listWorkRequests in interface ApplicationMigrationrequest - The request object containing the details to sendpublic MigrateApplicationResponse migrateApplication(MigrateApplicationRequest request)
ApplicationMigrationValidates 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.
migrateApplication in interface ApplicationMigrationrequest - The request object containing the details to sendpublic UpdateMigrationResponse updateMigration(UpdateMigrationRequest request)
ApplicationMigrationUpdate the configuration for an application migration.
updateMigration in interface ApplicationMigrationrequest - The request object containing the details to sendpublic UpdateSourceResponse updateSource(UpdateSourceRequest request)
ApplicationMigrationUpdate source details.
updateSource in interface ApplicationMigrationrequest - The request object containing the details to sendpublic ApplicationMigrationWaiters getWaiters()
ApplicationMigrationGets the pre-configured waiters available for resources for this service.
getWaiters in interface ApplicationMigrationpublic ApplicationMigrationPaginators getPaginators()
ApplicationMigrationGets the pre-configured paginators available for list operations in this service which may return multiple
pages of data. These paginators provide an Iterable interface so that service responses, or
resources/records, can be iterated through without having to manually deal with pagination and page tokens.
getPaginators in interface ApplicationMigrationCopyright © 2016–2020. All rights reserved.