Interface FailoverVolumesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<FailoverVolumesRequest.Builder,,FailoverVolumesRequest> Ec2Request.Builder,SdkBuilder<FailoverVolumesRequest.Builder,,FailoverVolumesRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
FailoverVolumesRequest
-
Method Summary
Modifier and TypeMethodDescriptionChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.instanceId(String instanceId) The ID of the instance.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sourceActiveAvailabilityZone(String sourceActiveAvailabilityZone) The name of the Availability Zone that the volume's active replica is in, or that the instance is in.sourceActiveAvailabilityZoneId(String sourceActiveAvailabilityZoneId) The ID of the Availability Zone that the volume's active replica is in, or that the instance is in.The ID of the Multi-AZ volume to fail over.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
volumeId
The ID of the Multi-AZ volume to fail over. The Multi-AZ volume's active replica must be in the Availability Zone specified by
SourceActiveAvailabilityZoneorSourceActiveAvailabilityZoneId.Either
VolumeIdorInstanceIdmust be specified, but not both.- Parameters:
volumeId- The ID of the Multi-AZ volume to fail over. The Multi-AZ volume's active replica must be in the Availability Zone specified bySourceActiveAvailabilityZoneorSourceActiveAvailabilityZoneId.Either
VolumeIdorInstanceIdmust be specified, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceId
The ID of the instance. The instance must be in the Availability Zone specified by
SourceActiveAvailabilityZoneorSourceActiveAvailabilityZoneId. EBS fails over all Multi-AZ volumes that are attached to the instance and have their active replica in the specified Availability Zone.Either
VolumeIdorInstanceIdmust be specified, but not both.- Parameters:
instanceId- The ID of the instance. The instance must be in the Availability Zone specified bySourceActiveAvailabilityZoneorSourceActiveAvailabilityZoneId. EBS fails over all Multi-AZ volumes that are attached to the instance and have their active replica in the specified Availability Zone.Either
VolumeIdorInstanceIdmust be specified, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceActiveAvailabilityZone
The name of the Availability Zone that the volume's active replica is in, or that the instance is in. For example,
us-east-1a.Either
SourceActiveAvailabilityZoneorSourceActiveAvailabilityZoneIdmust be specified, but not both.- Parameters:
sourceActiveAvailabilityZone- The name of the Availability Zone that the volume's active replica is in, or that the instance is in. For example,us-east-1a.Either
SourceActiveAvailabilityZoneorSourceActiveAvailabilityZoneIdmust be specified, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceActiveAvailabilityZoneId
FailoverVolumesRequest.Builder sourceActiveAvailabilityZoneId(String sourceActiveAvailabilityZoneId) The ID of the Availability Zone that the volume's active replica is in, or that the instance is in. For example,
use1-az1.Either
SourceActiveAvailabilityZoneorSourceActiveAvailabilityZoneIdmust be specified, but not both.- Parameters:
sourceActiveAvailabilityZoneId- The ID of the Availability Zone that the volume's active replica is in, or that the instance is in. For example,use1-az1.Either
SourceActiveAvailabilityZoneorSourceActiveAvailabilityZoneIdmust be specified, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.- Parameters:
dryRun- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation. Otherwise, it isUnauthorizedOperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
FailoverVolumesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
FailoverVolumesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-