Interface RejectTransitGatewayVpcAttachmentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<RejectTransitGatewayVpcAttachmentResponse.Builder,
,RejectTransitGatewayVpcAttachmentResponse> Ec2Response.Builder
,SdkBuilder<RejectTransitGatewayVpcAttachmentResponse.Builder,
,RejectTransitGatewayVpcAttachmentResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
RejectTransitGatewayVpcAttachmentResponse
public static interface RejectTransitGatewayVpcAttachmentResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<RejectTransitGatewayVpcAttachmentResponse.Builder,RejectTransitGatewayVpcAttachmentResponse>
-
Method Summary
Modifier and TypeMethodDescriptiontransitGatewayVpcAttachment
(Consumer<TransitGatewayVpcAttachment.Builder> transitGatewayVpcAttachment) Information about the attachment.transitGatewayVpcAttachment
(TransitGatewayVpcAttachment transitGatewayVpcAttachment) Information about the attachment.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
transitGatewayVpcAttachment
RejectTransitGatewayVpcAttachmentResponse.Builder transitGatewayVpcAttachment(TransitGatewayVpcAttachment transitGatewayVpcAttachment) Information about the attachment.
- Parameters:
transitGatewayVpcAttachment
- Information about the attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transitGatewayVpcAttachment
default RejectTransitGatewayVpcAttachmentResponse.Builder transitGatewayVpcAttachment(Consumer<TransitGatewayVpcAttachment.Builder> transitGatewayVpcAttachment) Information about the attachment.
This is a convenience method that creates an instance of theTransitGatewayVpcAttachment.Builder
avoiding the need to create one manually viaTransitGatewayVpcAttachment.builder()
.When the
Consumer
completes,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:
-