Interface VpnGateway.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<VpnGateway.Builder,VpnGateway>
,SdkBuilder<VpnGateway.Builder,VpnGateway>
,SdkPojo
- Enclosing class:
- VpnGateway
public static interface VpnGateway.Builder extends SdkPojo, CopyableBuilder<VpnGateway.Builder,VpnGateway>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VpnGateway.Builder
amazonSideAsn(Long amazonSideAsn)
The private Autonomous System Number (ASN) for the Amazon side of a BGP session.VpnGateway.Builder
availabilityZone(String availabilityZone)
The Availability Zone where the virtual private gateway was created, if applicable.VpnGateway.Builder
state(String state)
The current state of the virtual private gateway.VpnGateway.Builder
state(VpnState state)
The current state of the virtual private gateway.VpnGateway.Builder
tags(Collection<Tag> tags)
Any tags assigned to the virtual private gateway.VpnGateway.Builder
tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the virtual private gateway.VpnGateway.Builder
tags(Tag... tags)
Any tags assigned to the virtual private gateway.VpnGateway.Builder
type(String type)
The type of VPN connection the virtual private gateway supports.VpnGateway.Builder
type(GatewayType type)
The type of VPN connection the virtual private gateway supports.VpnGateway.Builder
vpcAttachments(Collection<VpcAttachment> vpcAttachments)
Any VPCs attached to the virtual private gateway.VpnGateway.Builder
vpcAttachments(Consumer<VpcAttachment.Builder>... vpcAttachments)
Any VPCs attached to the virtual private gateway.VpnGateway.Builder
vpcAttachments(VpcAttachment... vpcAttachments)
Any VPCs attached to the virtual private gateway.VpnGateway.Builder
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 Detail
-
availabilityZone
VpnGateway.Builder availabilityZone(String 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
VpnGateway.Builder state(String state)
The current state of the virtual private gateway.
-
state
VpnGateway.Builder state(VpnState state)
The current state of the virtual private gateway.
-
type
VpnGateway.Builder type(String 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:
GatewayType
,GatewayType
-
type
VpnGateway.Builder type(GatewayType 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:
GatewayType
,GatewayType
-
vpcAttachments
VpnGateway.Builder vpcAttachments(Collection<VpcAttachment> 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
VpnGateway.Builder vpcAttachments(VpcAttachment... 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
VpnGateway.Builder vpcAttachments(Consumer<VpcAttachment.Builder>... 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 to#vpcAttachments(List
.) - 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:
#vpcAttachments(java.util.Collection
)
-
vpnGatewayId
VpnGateway.Builder vpnGatewayId(String 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
VpnGateway.Builder amazonSideAsn(Long 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
VpnGateway.Builder tags(Collection<Tag> 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
VpnGateway.Builder tags(Tag... 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
VpnGateway.Builder tags(Consumer<Tag.Builder>... 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 to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
-