Interface VpnGateway.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<VpnGateway.Builder,
,VpnGateway> SdkBuilder<VpnGateway.Builder,
,VpnGateway> SdkPojo
- Enclosing class:
VpnGateway
-
Method Summary
Modifier and TypeMethodDescriptionamazonSideAsn
(Long amazonSideAsn) The private Autonomous System Number (ASN) for the Amazon side of a BGP session.availabilityZone
(String availabilityZone) The Availability Zone where the virtual private gateway was created, if applicable.The current state of the virtual private gateway.The current state of the virtual private gateway.tags
(Collection<Tag> tags) Any tags assigned to the virtual private gateway.tags
(Consumer<Tag.Builder>... tags) Any tags assigned to the virtual private gateway.Any tags assigned to the virtual private gateway.The type of VPN connection the virtual private gateway supports.type
(GatewayType type) The type of VPN connection the virtual private gateway supports.vpcAttachments
(Collection<VpcAttachment> vpcAttachments) Any VPCs attached to the virtual private gateway.vpcAttachments
(Consumer<VpcAttachment.Builder>... vpcAttachments) Any VPCs attached to the virtual private gateway.vpcAttachments
(VpcAttachment... vpcAttachments) Any VPCs attached to the virtual private gateway.vpnGatewayId
(String vpnGatewayId) The ID of the virtual private 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
-
availabilityZone
The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.
- Parameters:
availabilityZone
- The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The current state of the virtual private gateway.
- Parameters:
state
- The current state of the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current state of the virtual private gateway.
- Parameters:
state
- The current state of the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of VPN connection the virtual private gateway supports.
- Parameters:
type
- The type of VPN connection the virtual private gateway supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of VPN connection the virtual private gateway supports.
- Parameters:
type
- The type of VPN connection the virtual private gateway supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vpcAttachments
Any VPCs attached to the virtual private gateway.
- Parameters:
vpcAttachments
- Any VPCs attached to the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcAttachments
Any VPCs attached to the virtual private gateway.
- Parameters:
vpcAttachments
- Any VPCs attached to the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcAttachments
Any VPCs attached to the virtual private gateway.
This is a convenience method that creates an instance of theVpcAttachment.Builder
avoiding the need to create one manually viaVpcAttachment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpcAttachments(List<VpcAttachment>)
.- Parameters:
vpcAttachments
- a consumer that will call methods onVpcAttachment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vpnGatewayId
The ID of the virtual private gateway.
- Parameters:
vpnGatewayId
- The ID of the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amazonSideAsn
The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
- Parameters:
amazonSideAsn
- The private Autonomous System Number (ASN) for the Amazon side of a BGP session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the virtual private gateway.
- Parameters:
tags
- Any tags assigned to the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the virtual private gateway.
- Parameters:
tags
- Any tags assigned to the virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the virtual private 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:
-