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 Details

    • 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.

      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

      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 the VpcAttachment.Builder avoiding the need to create one manually via VpcAttachment.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to vpcAttachments(List<VpcAttachment>).

      Parameters:
      vpcAttachments - a consumer that will call methods on VpcAttachment.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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

      Any tags assigned to the virtual private gateway.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: