Interface VpnGateway.Builder

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

        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:
        VpnState, VpnState
      • state

        VpnGateway.Builder state​(VpnState 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:
        VpnState, VpnState
      • 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.
      • 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 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).

        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:
        #tags(java.util.Collection)