@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public interface ComputeManagementAsync extends AutoCloseable
close
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.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<AttachLoadBalancerResponse> attachLoadBalancer(AttachLoadBalancerRequest request, AsyncHandler<AttachLoadBalancerRequest,AttachLoadBalancerResponse> handler)
Attach a load balancer to the instance pool.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateInstanceConfigurationResponse> createInstanceConfiguration(CreateInstanceConfigurationRequest request, AsyncHandler<CreateInstanceConfigurationRequest,CreateInstanceConfigurationResponse> handler)
Creates an instance configuration
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateInstancePoolResponse> createInstancePool(CreateInstancePoolRequest request, AsyncHandler<CreateInstancePoolRequest,CreateInstancePoolResponse> handler)
Create an instance pool.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteInstanceConfigurationResponse> deleteInstanceConfiguration(DeleteInstanceConfigurationRequest request, AsyncHandler<DeleteInstanceConfigurationRequest,DeleteInstanceConfigurationResponse> handler)
Deletes an instance configuration.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DetachLoadBalancerResponse> detachLoadBalancer(DetachLoadBalancerRequest request, AsyncHandler<DetachLoadBalancerRequest,DetachLoadBalancerResponse> handler)
Detach a load balancer from the instance pool.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetInstanceConfigurationResponse> getInstanceConfiguration(GetInstanceConfigurationRequest request, AsyncHandler<GetInstanceConfigurationRequest,GetInstanceConfigurationResponse> handler)
Gets the specified instance configuration
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetInstancePoolResponse> getInstancePool(GetInstancePoolRequest request, AsyncHandler<GetInstancePoolRequest,GetInstancePoolResponse> handler)
Gets the specified instance pool
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<LaunchInstanceConfigurationResponse> launchInstanceConfiguration(LaunchInstanceConfigurationRequest request, AsyncHandler<LaunchInstanceConfigurationRequest,LaunchInstanceConfigurationResponse> handler)
Launch an instance from an instance configuration
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListInstanceConfigurationsResponse> listInstanceConfigurations(ListInstanceConfigurationsRequest request, AsyncHandler<ListInstanceConfigurationsRequest,ListInstanceConfigurationsResponse> handler)
Lists the available instanceConfigurations in the specific compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListInstancePoolInstancesResponse> listInstancePoolInstances(ListInstancePoolInstancesRequest request, AsyncHandler<ListInstancePoolInstancesRequest,ListInstancePoolInstancesResponse> handler)
List the instances in the specified instance pool.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListInstancePoolsResponse> listInstancePools(ListInstancePoolsRequest request, AsyncHandler<ListInstancePoolsRequest,ListInstancePoolsResponse> handler)
Lists the instance pools in the specified compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ResetInstancePoolResponse> resetInstancePool(ResetInstancePoolRequest request, AsyncHandler<ResetInstancePoolRequest,ResetInstancePoolResponse> handler)
Performs the reset (power off and power on) action on the specified instance pool, which performs the action on all the instances in the pool.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SoftresetInstancePoolResponse> softresetInstancePool(SoftresetInstancePoolRequest request, AsyncHandler<SoftresetInstancePoolRequest,SoftresetInstancePoolResponse> handler)
Performs the softreset (ACPI shutdown and power on) action on the specified instance pool, which performs the action on all the instances in the pool.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<StartInstancePoolResponse> startInstancePool(StartInstancePoolRequest request, AsyncHandler<StartInstancePoolRequest,StartInstancePoolResponse> handler)
Performs the start (power on) action on the specified instance pool, which performs the action on all the instances in the pool.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<StopInstancePoolResponse> stopInstancePool(StopInstancePoolRequest request, AsyncHandler<StopInstancePoolRequest,StopInstancePoolResponse> handler)
Performs the stop (power off) action on the specified instance pool, which performs the action on all the instances in the pool.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<TerminateInstancePoolResponse> terminateInstancePool(TerminateInstancePoolRequest request, AsyncHandler<TerminateInstancePoolRequest,TerminateInstancePoolResponse> handler)
Terminate the specified instance pool.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateInstanceConfigurationResponse> updateInstanceConfiguration(UpdateInstanceConfigurationRequest request, AsyncHandler<UpdateInstanceConfigurationRequest,UpdateInstanceConfigurationResponse> handler)
Updates the freeFormTags, definedTags, and display name of an instance configuration.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateInstancePoolResponse> updateInstancePool(UpdateInstancePoolRequest request, AsyncHandler<UpdateInstancePoolRequest,UpdateInstancePoolResponse> handler)
Update the specified instance pool. The OCID of the instance pool remains the same.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2019. All rights reserved.