Interface CreateCustomerGatewayRequest.Builder

  • Method Details

    • bgpAsn

      For customer gateway devices that support BGP, specify the device's ASN. You must specify either BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is larger than 2,147,483,647, you must use BgpAsnExtended.

      Default: 65000

      Valid values: 1 to 2,147,483,647

      Parameters:
      bgpAsn - For customer gateway devices that support BGP, specify the device's ASN. You must specify either BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is larger than 2,147,483,647, you must use BgpAsnExtended.

      Default: 65000

      Valid values: 1 to 2,147,483,647

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • publicIp

      This member has been deprecated. The Internet-routable IP address for the customer gateway's outside interface. The address must be static.

      Parameters:
      publicIp - This member has been deprecated. The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • certificateArn

      CreateCustomerGatewayRequest.Builder certificateArn(String certificateArn)

      The Amazon Resource Name (ARN) for the customer gateway certificate.

      Parameters:
      certificateArn - The Amazon Resource Name (ARN) for the customer gateway certificate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The type of VPN connection that this customer gateway supports (ipsec.1).

      Parameters:
      type - The type of VPN connection that this customer gateway supports (ipsec.1).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of VPN connection that this customer gateway supports (ipsec.1).

      Parameters:
      type - The type of VPN connection that this customer gateway supports (ipsec.1).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • tagSpecifications

      CreateCustomerGatewayRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications)

      The tags to apply to the customer gateway.

      Parameters:
      tagSpecifications - The tags to apply to the customer gateway.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tagSpecifications

      CreateCustomerGatewayRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)

      The tags to apply to the customer gateway.

      Parameters:
      tagSpecifications - The tags to apply to the customer gateway.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tagSpecifications

      The tags to apply to the customer gateway.

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

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

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

      A name for the customer gateway device.

      Length Constraints: Up to 255 characters.

      Parameters:
      deviceName - A name for the customer gateway device.

      Length Constraints: Up to 255 characters.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipAddress

      IPv4 address for the customer gateway device's outside interface. The address must be static. If OutsideIpAddressType in your VPN connection options is set to PrivateIpv4, you can use an RFC6598 or RFC1918 private IPv4 address. If OutsideIpAddressType is set to PublicIpv4, you can use a public IPv4 address.

      Parameters:
      ipAddress - IPv4 address for the customer gateway device's outside interface. The address must be static. If OutsideIpAddressType in your VPN connection options is set to PrivateIpv4, you can use an RFC6598 or RFC1918 private IPv4 address. If OutsideIpAddressType is set to PublicIpv4, you can use a public IPv4 address.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bgpAsnExtended

      CreateCustomerGatewayRequest.Builder bgpAsnExtended(Long bgpAsnExtended)

      For customer gateway devices that support BGP, specify the device's ASN. You must specify either BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is larger than 2,147,483,647, you must use BgpAsnExtended.

      Valid values: 2,147,483,648 to 4,294,967,295

      Parameters:
      bgpAsnExtended - For customer gateway devices that support BGP, specify the device's ASN. You must specify either BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is larger than 2,147,483,647, you must use BgpAsnExtended.

      Valid values: 2,147,483,648 to 4,294,967,295

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dryRun

      Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

      Parameters:
      dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CreateCustomerGatewayRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.