Interface BackupGatewayAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any
SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may
perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
call.
Backup gateway connects Backup to your hypervisor, so you can create, store, and restore backups of your virtual machines (VMs) anywhere, whether on-premises or in the VMware Cloud (VMC) on Amazon Web Services.
Add on-premises resources by connecting to a hypervisor through a gateway. Backup will automatically discover the resources in your hypervisor.
Use Backup to assign virtual or on-premises resources to a backup plan, or run on-demand backups. Once you have backed up your resources, you can view them and restore them like any resource supported by Backup.
To download the Amazon Web Services software to get started, navigate to the Backup console, choose Gateways, then choose Create gateway.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionassociateGatewayToServer
(Consumer<AssociateGatewayToServerRequest.Builder> associateGatewayToServerRequest) Associates a backup gateway with your server.associateGatewayToServer
(AssociateGatewayToServerRequest associateGatewayToServerRequest) Associates a backup gateway with your server.builder()
Create a builder that can be used to configure and create aBackupGatewayAsyncClient
.static BackupGatewayAsyncClient
create()
Create aBackupGatewayAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CompletableFuture
<CreateGatewayResponse> createGateway
(Consumer<CreateGatewayRequest.Builder> createGatewayRequest) Creates a backup gateway.default CompletableFuture
<CreateGatewayResponse> createGateway
(CreateGatewayRequest createGatewayRequest) Creates a backup gateway.default CompletableFuture
<DeleteGatewayResponse> deleteGateway
(Consumer<DeleteGatewayRequest.Builder> deleteGatewayRequest) Deletes a backup gateway.default CompletableFuture
<DeleteGatewayResponse> deleteGateway
(DeleteGatewayRequest deleteGatewayRequest) Deletes a backup gateway.deleteHypervisor
(Consumer<DeleteHypervisorRequest.Builder> deleteHypervisorRequest) Deletes a hypervisor.deleteHypervisor
(DeleteHypervisorRequest deleteHypervisorRequest) Deletes a hypervisor.disassociateGatewayFromServer
(Consumer<DisassociateGatewayFromServerRequest.Builder> disassociateGatewayFromServerRequest) Disassociates a backup gateway from the specified server.disassociateGatewayFromServer
(DisassociateGatewayFromServerRequest disassociateGatewayFromServerRequest) Disassociates a backup gateway from the specified server.getBandwidthRateLimitSchedule
(Consumer<GetBandwidthRateLimitScheduleRequest.Builder> getBandwidthRateLimitScheduleRequest) Retrieves the bandwidth rate limit schedule for a specified gateway.getBandwidthRateLimitSchedule
(GetBandwidthRateLimitScheduleRequest getBandwidthRateLimitScheduleRequest) Retrieves the bandwidth rate limit schedule for a specified gateway.default CompletableFuture
<GetGatewayResponse> getGateway
(Consumer<GetGatewayRequest.Builder> getGatewayRequest) By providing the ARN (Amazon Resource Name), this API returns the gateway.default CompletableFuture
<GetGatewayResponse> getGateway
(GetGatewayRequest getGatewayRequest) By providing the ARN (Amazon Resource Name), this API returns the gateway.default CompletableFuture
<GetHypervisorResponse> getHypervisor
(Consumer<GetHypervisorRequest.Builder> getHypervisorRequest) This action requests information about the specified hypervisor to which the gateway will connect.default CompletableFuture
<GetHypervisorResponse> getHypervisor
(GetHypervisorRequest getHypervisorRequest) This action requests information about the specified hypervisor to which the gateway will connect.getHypervisorPropertyMappings
(Consumer<GetHypervisorPropertyMappingsRequest.Builder> getHypervisorPropertyMappingsRequest) This action retrieves the property mappings for the specified hypervisor.getHypervisorPropertyMappings
(GetHypervisorPropertyMappingsRequest getHypervisorPropertyMappingsRequest) This action retrieves the property mappings for the specified hypervisor.getVirtualMachine
(Consumer<GetVirtualMachineRequest.Builder> getVirtualMachineRequest) By providing the ARN (Amazon Resource Name), this API returns the virtual machine.getVirtualMachine
(GetVirtualMachineRequest getVirtualMachineRequest) By providing the ARN (Amazon Resource Name), this API returns the virtual machine.importHypervisorConfiguration
(Consumer<ImportHypervisorConfigurationRequest.Builder> importHypervisorConfigurationRequest) Connect to a hypervisor by importing its configuration.importHypervisorConfiguration
(ImportHypervisorConfigurationRequest importHypervisorConfigurationRequest) Connect to a hypervisor by importing its configuration.default CompletableFuture
<ListGatewaysResponse> listGateways
(Consumer<ListGatewaysRequest.Builder> listGatewaysRequest) Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services Region.default CompletableFuture
<ListGatewaysResponse> listGateways
(ListGatewaysRequest listGatewaysRequest) Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services Region.default ListGatewaysPublisher
listGatewaysPaginator
(Consumer<ListGatewaysRequest.Builder> listGatewaysRequest) This is a variant oflistGateways(software.amazon.awssdk.services.backupgateway.model.ListGatewaysRequest)
operation.default ListGatewaysPublisher
listGatewaysPaginator
(ListGatewaysRequest listGatewaysRequest) This is a variant oflistGateways(software.amazon.awssdk.services.backupgateway.model.ListGatewaysRequest)
operation.default CompletableFuture
<ListHypervisorsResponse> listHypervisors
(Consumer<ListHypervisorsRequest.Builder> listHypervisorsRequest) Lists your hypervisors.default CompletableFuture
<ListHypervisorsResponse> listHypervisors
(ListHypervisorsRequest listHypervisorsRequest) Lists your hypervisors.default ListHypervisorsPublisher
listHypervisorsPaginator
(Consumer<ListHypervisorsRequest.Builder> listHypervisorsRequest) This is a variant oflistHypervisors(software.amazon.awssdk.services.backupgateway.model.ListHypervisorsRequest)
operation.default ListHypervisorsPublisher
listHypervisorsPaginator
(ListHypervisorsRequest listHypervisorsRequest) This is a variant oflistHypervisors(software.amazon.awssdk.services.backupgateway.model.ListHypervisorsRequest)
operation.listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags applied to the resource identified by its Amazon Resource Name (ARN).listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags applied to the resource identified by its Amazon Resource Name (ARN).listVirtualMachines
(Consumer<ListVirtualMachinesRequest.Builder> listVirtualMachinesRequest) Lists your virtual machines.listVirtualMachines
(ListVirtualMachinesRequest listVirtualMachinesRequest) Lists your virtual machines.default ListVirtualMachinesPublisher
listVirtualMachinesPaginator
(Consumer<ListVirtualMachinesRequest.Builder> listVirtualMachinesRequest) This is a variant oflistVirtualMachines(software.amazon.awssdk.services.backupgateway.model.ListVirtualMachinesRequest)
operation.default ListVirtualMachinesPublisher
listVirtualMachinesPaginator
(ListVirtualMachinesRequest listVirtualMachinesRequest) This is a variant oflistVirtualMachines(software.amazon.awssdk.services.backupgateway.model.ListVirtualMachinesRequest)
operation.putBandwidthRateLimitSchedule
(Consumer<PutBandwidthRateLimitScheduleRequest.Builder> putBandwidthRateLimitScheduleRequest) This action sets the bandwidth rate limit schedule for a specified gateway.putBandwidthRateLimitSchedule
(PutBandwidthRateLimitScheduleRequest putBandwidthRateLimitScheduleRequest) This action sets the bandwidth rate limit schedule for a specified gateway.putHypervisorPropertyMappings
(Consumer<PutHypervisorPropertyMappingsRequest.Builder> putHypervisorPropertyMappingsRequest) This action sets the property mappings for the specified hypervisor.putHypervisorPropertyMappings
(PutHypervisorPropertyMappingsRequest putHypervisorPropertyMappingsRequest) This action sets the property mappings for the specified hypervisor.putMaintenanceStartTime
(Consumer<PutMaintenanceStartTimeRequest.Builder> putMaintenanceStartTimeRequest) Set the maintenance start time for a gateway.putMaintenanceStartTime
(PutMaintenanceStartTimeRequest putMaintenanceStartTimeRequest) Set the maintenance start time for a gateway.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstartVirtualMachinesMetadataSync
(Consumer<StartVirtualMachinesMetadataSyncRequest.Builder> startVirtualMachinesMetadataSyncRequest) This action sends a request to sync metadata across the specified virtual machines.startVirtualMachinesMetadataSync
(StartVirtualMachinesMetadataSyncRequest startVirtualMachinesMetadataSyncRequest) This action sends a request to sync metadata across the specified virtual machines.default CompletableFuture
<TagResourceResponse> tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Tag the resource.default CompletableFuture
<TagResourceResponse> tagResource
(TagResourceRequest tagResourceRequest) Tag the resource.testHypervisorConfiguration
(Consumer<TestHypervisorConfigurationRequest.Builder> testHypervisorConfigurationRequest) Tests your hypervisor configuration to validate that backup gateway can connect with the hypervisor and its resources.testHypervisorConfiguration
(TestHypervisorConfigurationRequest testHypervisorConfigurationRequest) Tests your hypervisor configuration to validate that backup gateway can connect with the hypervisor and its resources.default CompletableFuture
<UntagResourceResponse> untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from the resource.default CompletableFuture
<UntagResourceResponse> untagResource
(UntagResourceRequest untagResourceRequest) Removes tags from the resource.updateGatewayInformation
(Consumer<UpdateGatewayInformationRequest.Builder> updateGatewayInformationRequest) Updates a gateway's name.updateGatewayInformation
(UpdateGatewayInformationRequest updateGatewayInformationRequest) Updates a gateway's name.updateGatewaySoftwareNow
(Consumer<UpdateGatewaySoftwareNowRequest.Builder> updateGatewaySoftwareNowRequest) Updates the gateway virtual machine (VM) software.updateGatewaySoftwareNow
(UpdateGatewaySoftwareNowRequest updateGatewaySoftwareNowRequest) Updates the gateway virtual machine (VM) software.updateHypervisor
(Consumer<UpdateHypervisorRequest.Builder> updateHypervisorRequest) Updates a hypervisor metadata, including its host, username, and password.updateHypervisor
(UpdateHypervisorRequest updateHypervisorRequest) Updates a hypervisor metadata, including its host, username, and password.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
associateGatewayToServer
default CompletableFuture<AssociateGatewayToServerResponse> associateGatewayToServer(AssociateGatewayToServerRequest associateGatewayToServerRequest) Associates a backup gateway with your server. After you complete the association process, you can back up and restore your VMs through the gateway.
- Parameters:
associateGatewayToServerRequest
-- Returns:
- A Java Future containing the result of the AssociateGatewayToServer operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
associateGatewayToServer
default CompletableFuture<AssociateGatewayToServerResponse> associateGatewayToServer(Consumer<AssociateGatewayToServerRequest.Builder> associateGatewayToServerRequest) Associates a backup gateway with your server. After you complete the association process, you can back up and restore your VMs through the gateway.
This is a convenience which creates an instance of the
AssociateGatewayToServerRequest.Builder
avoiding the need to create one manually viaAssociateGatewayToServerRequest.builder()
- Parameters:
associateGatewayToServerRequest
- AConsumer
that will call methods onAssociateGatewayToServerRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the AssociateGatewayToServer operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createGateway
default CompletableFuture<CreateGatewayResponse> createGateway(CreateGatewayRequest createGatewayRequest) Creates a backup gateway. After you create a gateway, you can associate it with a server using the
AssociateGatewayToServer
operation.- Parameters:
createGatewayRequest
-- Returns:
- A Java Future containing the result of the CreateGateway operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createGateway
default CompletableFuture<CreateGatewayResponse> createGateway(Consumer<CreateGatewayRequest.Builder> createGatewayRequest) Creates a backup gateway. After you create a gateway, you can associate it with a server using the
AssociateGatewayToServer
operation.
This is a convenience which creates an instance of the
CreateGatewayRequest.Builder
avoiding the need to create one manually viaCreateGatewayRequest.builder()
- Parameters:
createGatewayRequest
- AConsumer
that will call methods onCreateGatewayRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateGateway operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteGateway
default CompletableFuture<DeleteGatewayResponse> deleteGateway(DeleteGatewayRequest deleteGatewayRequest) Deletes a backup gateway.
- Parameters:
deleteGatewayRequest
-- Returns:
- A Java Future containing the result of the DeleteGateway operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteGateway
default CompletableFuture<DeleteGatewayResponse> deleteGateway(Consumer<DeleteGatewayRequest.Builder> deleteGatewayRequest) Deletes a backup gateway.
This is a convenience which creates an instance of the
DeleteGatewayRequest.Builder
avoiding the need to create one manually viaDeleteGatewayRequest.builder()
- Parameters:
deleteGatewayRequest
- AConsumer
that will call methods onDeleteGatewayRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteGateway operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteHypervisor
default CompletableFuture<DeleteHypervisorResponse> deleteHypervisor(DeleteHypervisorRequest deleteHypervisorRequest) Deletes a hypervisor.
- Parameters:
deleteHypervisorRequest
-- Returns:
- A Java Future containing the result of the DeleteHypervisor operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- AccessDeniedException The operation cannot proceed because you have insufficient permissions.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteHypervisor
default CompletableFuture<DeleteHypervisorResponse> deleteHypervisor(Consumer<DeleteHypervisorRequest.Builder> deleteHypervisorRequest) Deletes a hypervisor.
This is a convenience which creates an instance of the
DeleteHypervisorRequest.Builder
avoiding the need to create one manually viaDeleteHypervisorRequest.builder()
- Parameters:
deleteHypervisorRequest
- AConsumer
that will call methods onDeleteHypervisorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteHypervisor operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- AccessDeniedException The operation cannot proceed because you have insufficient permissions.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateGatewayFromServer
default CompletableFuture<DisassociateGatewayFromServerResponse> disassociateGatewayFromServer(DisassociateGatewayFromServerRequest disassociateGatewayFromServerRequest) Disassociates a backup gateway from the specified server. After the disassociation process finishes, the gateway can no longer access the virtual machines on the server.
- Parameters:
disassociateGatewayFromServerRequest
-- Returns:
- A Java Future containing the result of the DisassociateGatewayFromServer operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateGatewayFromServer
default CompletableFuture<DisassociateGatewayFromServerResponse> disassociateGatewayFromServer(Consumer<DisassociateGatewayFromServerRequest.Builder> disassociateGatewayFromServerRequest) Disassociates a backup gateway from the specified server. After the disassociation process finishes, the gateway can no longer access the virtual machines on the server.
This is a convenience which creates an instance of the
DisassociateGatewayFromServerRequest.Builder
avoiding the need to create one manually viaDisassociateGatewayFromServerRequest.builder()
- Parameters:
disassociateGatewayFromServerRequest
- AConsumer
that will call methods onDisassociateGatewayFromServerRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DisassociateGatewayFromServer operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getBandwidthRateLimitSchedule
default CompletableFuture<GetBandwidthRateLimitScheduleResponse> getBandwidthRateLimitSchedule(GetBandwidthRateLimitScheduleRequest getBandwidthRateLimitScheduleRequest) Retrieves the bandwidth rate limit schedule for a specified gateway. By default, gateways do not have bandwidth rate limit schedules, which means no bandwidth rate limiting is in effect. Use this to get a gateway's bandwidth rate limit schedule.
- Parameters:
getBandwidthRateLimitScheduleRequest
-- Returns:
- A Java Future containing the result of the GetBandwidthRateLimitSchedule operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getBandwidthRateLimitSchedule
default CompletableFuture<GetBandwidthRateLimitScheduleResponse> getBandwidthRateLimitSchedule(Consumer<GetBandwidthRateLimitScheduleRequest.Builder> getBandwidthRateLimitScheduleRequest) Retrieves the bandwidth rate limit schedule for a specified gateway. By default, gateways do not have bandwidth rate limit schedules, which means no bandwidth rate limiting is in effect. Use this to get a gateway's bandwidth rate limit schedule.
This is a convenience which creates an instance of the
GetBandwidthRateLimitScheduleRequest.Builder
avoiding the need to create one manually viaGetBandwidthRateLimitScheduleRequest.builder()
- Parameters:
getBandwidthRateLimitScheduleRequest
- AConsumer
that will call methods onGetBandwidthRateLimitScheduleRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetBandwidthRateLimitSchedule operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getGateway
By providing the ARN (Amazon Resource Name), this API returns the gateway.
- Parameters:
getGatewayRequest
-- Returns:
- A Java Future containing the result of the GetGateway operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getGateway
default CompletableFuture<GetGatewayResponse> getGateway(Consumer<GetGatewayRequest.Builder> getGatewayRequest) By providing the ARN (Amazon Resource Name), this API returns the gateway.
This is a convenience which creates an instance of the
GetGatewayRequest.Builder
avoiding the need to create one manually viaGetGatewayRequest.builder()
- Parameters:
getGatewayRequest
- AConsumer
that will call methods onGetGatewayRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetGateway operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getHypervisor
default CompletableFuture<GetHypervisorResponse> getHypervisor(GetHypervisorRequest getHypervisorRequest) This action requests information about the specified hypervisor to which the gateway will connect. A hypervisor is hardware, software, or firmware that creates and manages virtual machines, and allocates resources to them.
- Parameters:
getHypervisorRequest
-- Returns:
- A Java Future containing the result of the GetHypervisor operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getHypervisor
default CompletableFuture<GetHypervisorResponse> getHypervisor(Consumer<GetHypervisorRequest.Builder> getHypervisorRequest) This action requests information about the specified hypervisor to which the gateway will connect. A hypervisor is hardware, software, or firmware that creates and manages virtual machines, and allocates resources to them.
This is a convenience which creates an instance of the
GetHypervisorRequest.Builder
avoiding the need to create one manually viaGetHypervisorRequest.builder()
- Parameters:
getHypervisorRequest
- AConsumer
that will call methods onGetHypervisorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetHypervisor operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getHypervisorPropertyMappings
default CompletableFuture<GetHypervisorPropertyMappingsResponse> getHypervisorPropertyMappings(GetHypervisorPropertyMappingsRequest getHypervisorPropertyMappingsRequest) This action retrieves the property mappings for the specified hypervisor. A hypervisor property mapping displays the relationship of entity properties available from the on-premises hypervisor to the properties available in Amazon Web Services.
- Parameters:
getHypervisorPropertyMappingsRequest
-- Returns:
- A Java Future containing the result of the GetHypervisorPropertyMappings operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getHypervisorPropertyMappings
default CompletableFuture<GetHypervisorPropertyMappingsResponse> getHypervisorPropertyMappings(Consumer<GetHypervisorPropertyMappingsRequest.Builder> getHypervisorPropertyMappingsRequest) This action retrieves the property mappings for the specified hypervisor. A hypervisor property mapping displays the relationship of entity properties available from the on-premises hypervisor to the properties available in Amazon Web Services.
This is a convenience which creates an instance of the
GetHypervisorPropertyMappingsRequest.Builder
avoiding the need to create one manually viaGetHypervisorPropertyMappingsRequest.builder()
- Parameters:
getHypervisorPropertyMappingsRequest
- AConsumer
that will call methods onGetHypervisorPropertyMappingsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetHypervisorPropertyMappings operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getVirtualMachine
default CompletableFuture<GetVirtualMachineResponse> getVirtualMachine(GetVirtualMachineRequest getVirtualMachineRequest) By providing the ARN (Amazon Resource Name), this API returns the virtual machine.
- Parameters:
getVirtualMachineRequest
-- Returns:
- A Java Future containing the result of the GetVirtualMachine operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getVirtualMachine
default CompletableFuture<GetVirtualMachineResponse> getVirtualMachine(Consumer<GetVirtualMachineRequest.Builder> getVirtualMachineRequest) By providing the ARN (Amazon Resource Name), this API returns the virtual machine.
This is a convenience which creates an instance of the
GetVirtualMachineRequest.Builder
avoiding the need to create one manually viaGetVirtualMachineRequest.builder()
- Parameters:
getVirtualMachineRequest
- AConsumer
that will call methods onGetVirtualMachineRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetVirtualMachine operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
importHypervisorConfiguration
default CompletableFuture<ImportHypervisorConfigurationResponse> importHypervisorConfiguration(ImportHypervisorConfigurationRequest importHypervisorConfigurationRequest) Connect to a hypervisor by importing its configuration.
- Parameters:
importHypervisorConfigurationRequest
-- Returns:
- A Java Future containing the result of the ImportHypervisorConfiguration operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- AccessDeniedException The operation cannot proceed because you have insufficient permissions.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
importHypervisorConfiguration
default CompletableFuture<ImportHypervisorConfigurationResponse> importHypervisorConfiguration(Consumer<ImportHypervisorConfigurationRequest.Builder> importHypervisorConfigurationRequest) Connect to a hypervisor by importing its configuration.
This is a convenience which creates an instance of the
ImportHypervisorConfigurationRequest.Builder
avoiding the need to create one manually viaImportHypervisorConfigurationRequest.builder()
- Parameters:
importHypervisorConfigurationRequest
- AConsumer
that will call methods onImportHypervisorConfigurationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ImportHypervisorConfiguration operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- AccessDeniedException The operation cannot proceed because you have insufficient permissions.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listGateways
default CompletableFuture<ListGatewaysResponse> listGateways(ListGatewaysRequest listGatewaysRequest) Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services Region. The returned list is ordered by gateway Amazon Resource Name (ARN).
- Parameters:
listGatewaysRequest
-- Returns:
- A Java Future containing the result of the ListGateways operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listGateways
default CompletableFuture<ListGatewaysResponse> listGateways(Consumer<ListGatewaysRequest.Builder> listGatewaysRequest) Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services Region. The returned list is ordered by gateway Amazon Resource Name (ARN).
This is a convenience which creates an instance of the
ListGatewaysRequest.Builder
avoiding the need to create one manually viaListGatewaysRequest.builder()
- Parameters:
listGatewaysRequest
- AConsumer
that will call methods onListGatewaysRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListGateways operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listGatewaysPaginator
This is a variant of
listGateways(software.amazon.awssdk.services.backupgateway.model.ListGatewaysRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.backupgateway.paginators.ListGatewaysPublisher publisher = client.listGatewaysPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.backupgateway.paginators.ListGatewaysPublisher publisher = client.listGatewaysPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.backupgateway.model.ListGatewaysResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.backupgateway.model.ListGatewaysResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listGateways(software.amazon.awssdk.services.backupgateway.model.ListGatewaysRequest)
operation.- Parameters:
listGatewaysRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listGatewaysPaginator
default ListGatewaysPublisher listGatewaysPaginator(Consumer<ListGatewaysRequest.Builder> listGatewaysRequest) This is a variant of
listGateways(software.amazon.awssdk.services.backupgateway.model.ListGatewaysRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.backupgateway.paginators.ListGatewaysPublisher publisher = client.listGatewaysPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.backupgateway.paginators.ListGatewaysPublisher publisher = client.listGatewaysPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.backupgateway.model.ListGatewaysResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.backupgateway.model.ListGatewaysResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listGateways(software.amazon.awssdk.services.backupgateway.model.ListGatewaysRequest)
operation.
This is a convenience which creates an instance of the
ListGatewaysRequest.Builder
avoiding the need to create one manually viaListGatewaysRequest.builder()
- Parameters:
listGatewaysRequest
- AConsumer
that will call methods onListGatewaysRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listHypervisors
default CompletableFuture<ListHypervisorsResponse> listHypervisors(ListHypervisorsRequest listHypervisorsRequest) Lists your hypervisors.
- Parameters:
listHypervisorsRequest
-- Returns:
- A Java Future containing the result of the ListHypervisors operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listHypervisors
default CompletableFuture<ListHypervisorsResponse> listHypervisors(Consumer<ListHypervisorsRequest.Builder> listHypervisorsRequest) Lists your hypervisors.
This is a convenience which creates an instance of the
ListHypervisorsRequest.Builder
avoiding the need to create one manually viaListHypervisorsRequest.builder()
- Parameters:
listHypervisorsRequest
- AConsumer
that will call methods onListHypervisorsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListHypervisors operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listHypervisorsPaginator
default ListHypervisorsPublisher listHypervisorsPaginator(ListHypervisorsRequest listHypervisorsRequest) This is a variant of
listHypervisors(software.amazon.awssdk.services.backupgateway.model.ListHypervisorsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.backupgateway.paginators.ListHypervisorsPublisher publisher = client.listHypervisorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.backupgateway.paginators.ListHypervisorsPublisher publisher = client.listHypervisorsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.backupgateway.model.ListHypervisorsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.backupgateway.model.ListHypervisorsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listHypervisors(software.amazon.awssdk.services.backupgateway.model.ListHypervisorsRequest)
operation.- Parameters:
listHypervisorsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listHypervisorsPaginator
default ListHypervisorsPublisher listHypervisorsPaginator(Consumer<ListHypervisorsRequest.Builder> listHypervisorsRequest) This is a variant of
listHypervisors(software.amazon.awssdk.services.backupgateway.model.ListHypervisorsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.backupgateway.paginators.ListHypervisorsPublisher publisher = client.listHypervisorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.backupgateway.paginators.ListHypervisorsPublisher publisher = client.listHypervisorsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.backupgateway.model.ListHypervisorsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.backupgateway.model.ListHypervisorsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listHypervisors(software.amazon.awssdk.services.backupgateway.model.ListHypervisorsRequest)
operation.
This is a convenience which creates an instance of the
ListHypervisorsRequest.Builder
avoiding the need to create one manually viaListHypervisorsRequest.builder()
- Parameters:
listHypervisorsRequest
- AConsumer
that will call methods onListHypervisorsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags applied to the resource identified by its Amazon Resource Name (ARN).
- Parameters:
listTagsForResourceRequest
-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags applied to the resource identified by its Amazon Resource Name (ARN).
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listVirtualMachines
default CompletableFuture<ListVirtualMachinesResponse> listVirtualMachines(ListVirtualMachinesRequest listVirtualMachinesRequest) Lists your virtual machines.
- Parameters:
listVirtualMachinesRequest
-- Returns:
- A Java Future containing the result of the ListVirtualMachines operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listVirtualMachines
default CompletableFuture<ListVirtualMachinesResponse> listVirtualMachines(Consumer<ListVirtualMachinesRequest.Builder> listVirtualMachinesRequest) Lists your virtual machines.
This is a convenience which creates an instance of the
ListVirtualMachinesRequest.Builder
avoiding the need to create one manually viaListVirtualMachinesRequest.builder()
- Parameters:
listVirtualMachinesRequest
- AConsumer
that will call methods onListVirtualMachinesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListVirtualMachines operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listVirtualMachinesPaginator
default ListVirtualMachinesPublisher listVirtualMachinesPaginator(ListVirtualMachinesRequest listVirtualMachinesRequest) This is a variant of
listVirtualMachines(software.amazon.awssdk.services.backupgateway.model.ListVirtualMachinesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.backupgateway.paginators.ListVirtualMachinesPublisher publisher = client.listVirtualMachinesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.backupgateway.paginators.ListVirtualMachinesPublisher publisher = client.listVirtualMachinesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.backupgateway.model.ListVirtualMachinesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.backupgateway.model.ListVirtualMachinesResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listVirtualMachines(software.amazon.awssdk.services.backupgateway.model.ListVirtualMachinesRequest)
operation.- Parameters:
listVirtualMachinesRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listVirtualMachinesPaginator
default ListVirtualMachinesPublisher listVirtualMachinesPaginator(Consumer<ListVirtualMachinesRequest.Builder> listVirtualMachinesRequest) This is a variant of
listVirtualMachines(software.amazon.awssdk.services.backupgateway.model.ListVirtualMachinesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.backupgateway.paginators.ListVirtualMachinesPublisher publisher = client.listVirtualMachinesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.backupgateway.paginators.ListVirtualMachinesPublisher publisher = client.listVirtualMachinesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.backupgateway.model.ListVirtualMachinesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.backupgateway.model.ListVirtualMachinesResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listVirtualMachines(software.amazon.awssdk.services.backupgateway.model.ListVirtualMachinesRequest)
operation.
This is a convenience which creates an instance of the
ListVirtualMachinesRequest.Builder
avoiding the need to create one manually viaListVirtualMachinesRequest.builder()
- Parameters:
listVirtualMachinesRequest
- AConsumer
that will call methods onListVirtualMachinesRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putBandwidthRateLimitSchedule
default CompletableFuture<PutBandwidthRateLimitScheduleResponse> putBandwidthRateLimitSchedule(PutBandwidthRateLimitScheduleRequest putBandwidthRateLimitScheduleRequest) This action sets the bandwidth rate limit schedule for a specified gateway. By default, gateways do not have a bandwidth rate limit schedule, which means no bandwidth rate limiting is in effect. Use this to initiate a gateway's bandwidth rate limit schedule.
- Parameters:
putBandwidthRateLimitScheduleRequest
-- Returns:
- A Java Future containing the result of the PutBandwidthRateLimitSchedule operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putBandwidthRateLimitSchedule
default CompletableFuture<PutBandwidthRateLimitScheduleResponse> putBandwidthRateLimitSchedule(Consumer<PutBandwidthRateLimitScheduleRequest.Builder> putBandwidthRateLimitScheduleRequest) This action sets the bandwidth rate limit schedule for a specified gateway. By default, gateways do not have a bandwidth rate limit schedule, which means no bandwidth rate limiting is in effect. Use this to initiate a gateway's bandwidth rate limit schedule.
This is a convenience which creates an instance of the
PutBandwidthRateLimitScheduleRequest.Builder
avoiding the need to create one manually viaPutBandwidthRateLimitScheduleRequest.builder()
- Parameters:
putBandwidthRateLimitScheduleRequest
- AConsumer
that will call methods onPutBandwidthRateLimitScheduleRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the PutBandwidthRateLimitSchedule operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putHypervisorPropertyMappings
default CompletableFuture<PutHypervisorPropertyMappingsResponse> putHypervisorPropertyMappings(PutHypervisorPropertyMappingsRequest putHypervisorPropertyMappingsRequest) This action sets the property mappings for the specified hypervisor. A hypervisor property mapping displays the relationship of entity properties available from the on-premises hypervisor to the properties available in Amazon Web Services.
- Parameters:
putHypervisorPropertyMappingsRequest
-- Returns:
- A Java Future containing the result of the PutHypervisorPropertyMappings operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- AccessDeniedException The operation cannot proceed because you have insufficient permissions.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putHypervisorPropertyMappings
default CompletableFuture<PutHypervisorPropertyMappingsResponse> putHypervisorPropertyMappings(Consumer<PutHypervisorPropertyMappingsRequest.Builder> putHypervisorPropertyMappingsRequest) This action sets the property mappings for the specified hypervisor. A hypervisor property mapping displays the relationship of entity properties available from the on-premises hypervisor to the properties available in Amazon Web Services.
This is a convenience which creates an instance of the
PutHypervisorPropertyMappingsRequest.Builder
avoiding the need to create one manually viaPutHypervisorPropertyMappingsRequest.builder()
- Parameters:
putHypervisorPropertyMappingsRequest
- AConsumer
that will call methods onPutHypervisorPropertyMappingsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the PutHypervisorPropertyMappings operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- AccessDeniedException The operation cannot proceed because you have insufficient permissions.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putMaintenanceStartTime
default CompletableFuture<PutMaintenanceStartTimeResponse> putMaintenanceStartTime(PutMaintenanceStartTimeRequest putMaintenanceStartTimeRequest) Set the maintenance start time for a gateway.
- Parameters:
putMaintenanceStartTimeRequest
-- Returns:
- A Java Future containing the result of the PutMaintenanceStartTime operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putMaintenanceStartTime
default CompletableFuture<PutMaintenanceStartTimeResponse> putMaintenanceStartTime(Consumer<PutMaintenanceStartTimeRequest.Builder> putMaintenanceStartTimeRequest) Set the maintenance start time for a gateway.
This is a convenience which creates an instance of the
PutMaintenanceStartTimeRequest.Builder
avoiding the need to create one manually viaPutMaintenanceStartTimeRequest.builder()
- Parameters:
putMaintenanceStartTimeRequest
- AConsumer
that will call methods onPutMaintenanceStartTimeRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the PutMaintenanceStartTime operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startVirtualMachinesMetadataSync
default CompletableFuture<StartVirtualMachinesMetadataSyncResponse> startVirtualMachinesMetadataSync(StartVirtualMachinesMetadataSyncRequest startVirtualMachinesMetadataSyncRequest) This action sends a request to sync metadata across the specified virtual machines.
- Parameters:
startVirtualMachinesMetadataSyncRequest
-- Returns:
- A Java Future containing the result of the StartVirtualMachinesMetadataSync operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- AccessDeniedException The operation cannot proceed because you have insufficient permissions.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startVirtualMachinesMetadataSync
default CompletableFuture<StartVirtualMachinesMetadataSyncResponse> startVirtualMachinesMetadataSync(Consumer<StartVirtualMachinesMetadataSyncRequest.Builder> startVirtualMachinesMetadataSyncRequest) This action sends a request to sync metadata across the specified virtual machines.
This is a convenience which creates an instance of the
StartVirtualMachinesMetadataSyncRequest.Builder
avoiding the need to create one manually viaStartVirtualMachinesMetadataSyncRequest.builder()
- Parameters:
startVirtualMachinesMetadataSyncRequest
- AConsumer
that will call methods onStartVirtualMachinesMetadataSyncRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StartVirtualMachinesMetadataSync operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- AccessDeniedException The operation cannot proceed because you have insufficient permissions.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Tag the resource.
- Parameters:
tagResourceRequest
-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Tag the resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
testHypervisorConfiguration
default CompletableFuture<TestHypervisorConfigurationResponse> testHypervisorConfiguration(TestHypervisorConfigurationRequest testHypervisorConfigurationRequest) Tests your hypervisor configuration to validate that backup gateway can connect with the hypervisor and its resources.
- Parameters:
testHypervisorConfigurationRequest
-- Returns:
- A Java Future containing the result of the TestHypervisorConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
testHypervisorConfiguration
default CompletableFuture<TestHypervisorConfigurationResponse> testHypervisorConfiguration(Consumer<TestHypervisorConfigurationRequest.Builder> testHypervisorConfigurationRequest) Tests your hypervisor configuration to validate that backup gateway can connect with the hypervisor and its resources.
This is a convenience which creates an instance of the
TestHypervisorConfigurationRequest.Builder
avoiding the need to create one manually viaTestHypervisorConfigurationRequest.builder()
- Parameters:
testHypervisorConfigurationRequest
- AConsumer
that will call methods onTestHypervisorConfigurationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the TestHypervisorConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from the resource.
- Parameters:
untagResourceRequest
-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from the resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateGatewayInformation
default CompletableFuture<UpdateGatewayInformationResponse> updateGatewayInformation(UpdateGatewayInformationRequest updateGatewayInformationRequest) Updates a gateway's name. Specify which gateway to update using the Amazon Resource Name (ARN) of the gateway in your request.
- Parameters:
updateGatewayInformationRequest
-- Returns:
- A Java Future containing the result of the UpdateGatewayInformation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateGatewayInformation
default CompletableFuture<UpdateGatewayInformationResponse> updateGatewayInformation(Consumer<UpdateGatewayInformationRequest.Builder> updateGatewayInformationRequest) Updates a gateway's name. Specify which gateway to update using the Amazon Resource Name (ARN) of the gateway in your request.
This is a convenience which creates an instance of the
UpdateGatewayInformationRequest.Builder
avoiding the need to create one manually viaUpdateGatewayInformationRequest.builder()
- Parameters:
updateGatewayInformationRequest
- AConsumer
that will call methods onUpdateGatewayInformationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateGatewayInformation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateGatewaySoftwareNow
default CompletableFuture<UpdateGatewaySoftwareNowResponse> updateGatewaySoftwareNow(UpdateGatewaySoftwareNowRequest updateGatewaySoftwareNowRequest) Updates the gateway virtual machine (VM) software. The request immediately triggers the software update.
When you make this request, you get a
200 OK
success response immediately. However, it might take some time for the update to complete.- Parameters:
updateGatewaySoftwareNowRequest
-- Returns:
- A Java Future containing the result of the UpdateGatewaySoftwareNow operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateGatewaySoftwareNow
default CompletableFuture<UpdateGatewaySoftwareNowResponse> updateGatewaySoftwareNow(Consumer<UpdateGatewaySoftwareNowRequest.Builder> updateGatewaySoftwareNowRequest) Updates the gateway virtual machine (VM) software. The request immediately triggers the software update.
When you make this request, you get a
200 OK
success response immediately. However, it might take some time for the update to complete.
This is a convenience which creates an instance of the
UpdateGatewaySoftwareNowRequest.Builder
avoiding the need to create one manually viaUpdateGatewaySoftwareNowRequest.builder()
- Parameters:
updateGatewaySoftwareNowRequest
- AConsumer
that will call methods onUpdateGatewaySoftwareNowRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateGatewaySoftwareNow operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateHypervisor
default CompletableFuture<UpdateHypervisorResponse> updateHypervisor(UpdateHypervisorRequest updateHypervisorRequest) Updates a hypervisor metadata, including its host, username, and password. Specify which hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor in your request.
- Parameters:
updateHypervisorRequest
-- Returns:
- A Java Future containing the result of the UpdateHypervisor operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- AccessDeniedException The operation cannot proceed because you have insufficient permissions.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateHypervisor
default CompletableFuture<UpdateHypervisorResponse> updateHypervisor(Consumer<UpdateHypervisorRequest.Builder> updateHypervisorRequest) Updates a hypervisor metadata, including its host, username, and password. Specify which hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor in your request.
This is a convenience which creates an instance of the
UpdateHypervisorRequest.Builder
avoiding the need to create one manually viaUpdateHypervisorRequest.builder()
- Parameters:
updateHypervisorRequest
- AConsumer
that will call methods onUpdateHypervisorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateHypervisor operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The operation did not succeed because a validation error occurred.
- ConflictException The operation cannot proceed because it is not supported.
- InternalServerException The operation did not succeed because an internal error occurred. Try again later.
- AccessDeniedException The operation cannot proceed because you have insufficient permissions.
- ResourceNotFoundException A resource that is required for the action wasn't found.
- ThrottlingException TPS has been limited to protect against intentional or unintentional high request volumes.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BackupGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aBackupGatewayAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aBackupGatewayAsyncClient
.
-