Interface InternetGateway.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InternetGateway.Builder,
,InternetGateway> SdkBuilder<InternetGateway.Builder,
,InternetGateway> SdkPojo
- Enclosing class:
InternetGateway
public static interface InternetGateway.Builder
extends SdkPojo, CopyableBuilder<InternetGateway.Builder,InternetGateway>
-
Method Summary
Modifier and TypeMethodDescriptionattachments
(Collection<InternetGatewayAttachment> attachments) Any VPCs attached to the internet gateway.attachments
(Consumer<InternetGatewayAttachment.Builder>... attachments) Any VPCs attached to the internet gateway.attachments
(InternetGatewayAttachment... attachments) Any VPCs attached to the internet gateway.internetGatewayId
(String internetGatewayId) The ID of the internet gateway.The ID of the Amazon Web Services account that owns the internet gateway.tags
(Collection<Tag> tags) Any tags assigned to the internet gateway.tags
(Consumer<Tag.Builder>... tags) Any tags assigned to the internet gateway.Any tags assigned to the internet gateway.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
attachments
Any VPCs attached to the internet gateway.
- Parameters:
attachments
- Any VPCs attached to the internet gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
Any VPCs attached to the internet gateway.
- Parameters:
attachments
- Any VPCs attached to the internet gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
Any VPCs attached to the internet gateway.
This is a convenience method that creates an instance of theInternetGatewayAttachment.Builder
avoiding the need to create one manually viaInternetGatewayAttachment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattachments(List<InternetGatewayAttachment>)
.- Parameters:
attachments
- a consumer that will call methods onInternetGatewayAttachment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
internetGatewayId
The ID of the internet gateway.
- Parameters:
internetGatewayId
- The ID of the internet gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerId
The ID of the Amazon Web Services account that owns the internet gateway.
- Parameters:
ownerId
- The ID of the Amazon Web Services account that owns the internet gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the internet gateway.
- Parameters:
tags
- Any tags assigned to the internet gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the internet gateway.
- Parameters:
tags
- Any tags assigned to the internet gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the internet gateway.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-