Interface FailoverVolumesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<FailoverVolumesResponse.Builder,,FailoverVolumesResponse> Ec2Response.Builder,SdkBuilder<FailoverVolumesResponse.Builder,,FailoverVolumesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
FailoverVolumesResponse
@Mutable
@NotThreadSafe
public static interface FailoverVolumesResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<FailoverVolumesResponse.Builder,FailoverVolumesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionvolumeFailovers(Collection<VolumeFailoverInfo> volumeFailovers) The failover details for each volume that was failed over, including its volume ID and the Availability Zones that it failed over from and to.volumeFailovers(Consumer<VolumeFailoverInfo.Builder>... volumeFailovers) The failover details for each volume that was failed over, including its volume ID and the Availability Zones that it failed over from and to.volumeFailovers(VolumeFailoverInfo... volumeFailovers) The failover details for each volume that was failed over, including its volume ID and the Availability Zones that it failed over from and to.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
volumeFailovers
The failover details for each volume that was failed over, including its volume ID and the Availability Zones that it failed over from and to.
- Parameters:
volumeFailovers- The failover details for each volume that was failed over, including its volume ID and the Availability Zones that it failed over from and to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeFailovers
The failover details for each volume that was failed over, including its volume ID and the Availability Zones that it failed over from and to.
- Parameters:
volumeFailovers- The failover details for each volume that was failed over, including its volume ID and the Availability Zones that it failed over from and to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeFailovers
FailoverVolumesResponse.Builder volumeFailovers(Consumer<VolumeFailoverInfo.Builder>... volumeFailovers) The failover details for each volume that was failed over, including its volume ID and the Availability Zones that it failed over from and to.
This is a convenience method that creates an instance of theVolumeFailoverInfo.Builderavoiding the need to create one manually viaVolumeFailoverInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovolumeFailovers(List<VolumeFailoverInfo>).- Parameters:
volumeFailovers- a consumer that will call methods onVolumeFailoverInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-