Interface AssociateTransitGatewayPolicyTableResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<AssociateTransitGatewayPolicyTableResponse.Builder,,AssociateTransitGatewayPolicyTableResponse> Ec2Response.Builder,SdkBuilder<AssociateTransitGatewayPolicyTableResponse.Builder,,AssociateTransitGatewayPolicyTableResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
AssociateTransitGatewayPolicyTableResponse
@Mutable
@NotThreadSafe
public static interface AssociateTransitGatewayPolicyTableResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<AssociateTransitGatewayPolicyTableResponse.Builder,AssociateTransitGatewayPolicyTableResponse>
-
Method Summary
Modifier and TypeMethodDescriptionassociation(Consumer<TransitGatewayPolicyTableAssociation.Builder> association) Describes the association of a transit gateway and a transit gateway policy table.association(TransitGatewayPolicyTableAssociation association) Describes the association of a transit gateway and a transit gateway policy table.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
-
association
AssociateTransitGatewayPolicyTableResponse.Builder association(TransitGatewayPolicyTableAssociation association) Describes the association of a transit gateway and a transit gateway policy table.
- Parameters:
association- Describes the association of a transit gateway and a transit gateway policy table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
association
default AssociateTransitGatewayPolicyTableResponse.Builder association(Consumer<TransitGatewayPolicyTableAssociation.Builder> association) Describes the association of a transit gateway and a transit gateway policy table.
This is a convenience method that creates an instance of theTransitGatewayPolicyTableAssociation.Builderavoiding the need to create one manually viaTransitGatewayPolicyTableAssociation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toassociation(TransitGatewayPolicyTableAssociation).- Parameters:
association- a consumer that will call methods onTransitGatewayPolicyTableAssociation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-