Interface ReplaceRouteTableAssociationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ReplaceRouteTableAssociationResponse.Builder,,ReplaceRouteTableAssociationResponse> Ec2Response.Builder,SdkBuilder<ReplaceRouteTableAssociationResponse.Builder,,ReplaceRouteTableAssociationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ReplaceRouteTableAssociationResponse
public static interface ReplaceRouteTableAssociationResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<ReplaceRouteTableAssociationResponse.Builder,ReplaceRouteTableAssociationResponse>
-
Method Summary
Modifier and TypeMethodDescriptionassociationState(Consumer<RouteTableAssociationState.Builder> associationState) The state of the association.associationState(RouteTableAssociationState associationState) The state of the association.newAssociationId(String newAssociationId) The ID of the new association.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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
newAssociationId
The ID of the new association.
- Parameters:
newAssociationId- The ID of the new association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associationState
ReplaceRouteTableAssociationResponse.Builder associationState(RouteTableAssociationState associationState) The state of the association.
- Parameters:
associationState- The state of the association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associationState
default ReplaceRouteTableAssociationResponse.Builder associationState(Consumer<RouteTableAssociationState.Builder> associationState) The state of the association.
This is a convenience method that creates an instance of theRouteTableAssociationState.Builderavoiding the need to create one manually viaRouteTableAssociationState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toassociationState(RouteTableAssociationState).- Parameters:
associationState- a consumer that will call methods onRouteTableAssociationState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-