Interface ModifyTransitGatewayVpcAttachmentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ModifyTransitGatewayVpcAttachmentResponse.Builder,,ModifyTransitGatewayVpcAttachmentResponse> Ec2Response.Builder,SdkBuilder<ModifyTransitGatewayVpcAttachmentResponse.Builder,,ModifyTransitGatewayVpcAttachmentResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ModifyTransitGatewayVpcAttachmentResponse
public static interface ModifyTransitGatewayVpcAttachmentResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<ModifyTransitGatewayVpcAttachmentResponse.Builder,ModifyTransitGatewayVpcAttachmentResponse>
-
Method Summary
Modifier and TypeMethodDescriptiontransitGatewayVpcAttachment(Consumer<TransitGatewayVpcAttachment.Builder> transitGatewayVpcAttachment) Information about the modified attachment.transitGatewayVpcAttachment(TransitGatewayVpcAttachment transitGatewayVpcAttachment) Information about the modified attachment.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
-
transitGatewayVpcAttachment
ModifyTransitGatewayVpcAttachmentResponse.Builder transitGatewayVpcAttachment(TransitGatewayVpcAttachment transitGatewayVpcAttachment) Information about the modified attachment.
- Parameters:
transitGatewayVpcAttachment- Information about the modified attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transitGatewayVpcAttachment
default ModifyTransitGatewayVpcAttachmentResponse.Builder transitGatewayVpcAttachment(Consumer<TransitGatewayVpcAttachment.Builder> transitGatewayVpcAttachment) Information about the modified attachment.
This is a convenience method that creates an instance of theTransitGatewayVpcAttachment.Builderavoiding the need to create one manually viaTransitGatewayVpcAttachment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totransitGatewayVpcAttachment(TransitGatewayVpcAttachment).- Parameters:
transitGatewayVpcAttachment- a consumer that will call methods onTransitGatewayVpcAttachment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-