Class CreateCustomerGatewayRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.CreateCustomerGatewayRequest
All Implemented Interfaces:
ReadLimitInfo, DryRunSupportedRequest<CreateCustomerGatewayRequest>, Serializable, Cloneable

public class CreateCustomerGatewayRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateCustomerGatewayRequest>

Contains the parameters for CreateCustomerGateway.

See Also:
  • Constructor Details

    • CreateCustomerGatewayRequest

      public CreateCustomerGatewayRequest()
      Default constructor for CreateCustomerGatewayRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
    • CreateCustomerGatewayRequest

      public CreateCustomerGatewayRequest(String type, String publicIp, Integer bgpAsn)
      Constructs a new CreateCustomerGatewayRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      type - The type of VPN connection that this customer gateway supports ( ipsec.1).
      publicIp - The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
      bgpAsn - For devices that support BGP, the customer gateway's BGP ASN.

      Default: 65000

    • CreateCustomerGatewayRequest

      public CreateCustomerGatewayRequest(GatewayType type, String publicIp, Integer bgpAsn)
      Constructs a new CreateCustomerGatewayRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      type - The type of VPN connection that this customer gateway supports ( ipsec.1).
      publicIp - The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
      bgpAsn - For devices that support BGP, the customer gateway's BGP ASN.

      Default: 65000

  • Method Details

    • setType

      public void setType(String 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).
      See Also:
    • getType

      public String getType()

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

      Returns:
      The type of VPN connection that this customer gateway supports ( ipsec.1).
      See Also:
    • withType

      public CreateCustomerGatewayRequest withType(String 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:
    • setType

      public void setType(GatewayType 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).
      See Also:
    • withType

      public CreateCustomerGatewayRequest withType(GatewayType 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:
    • setPublicIp

      public void setPublicIp(String publicIp)

      The Internet-routable IP address for the customer gateway's outside interface. The address must be static.

      Parameters:
      publicIp - The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
    • getPublicIp

      public String getPublicIp()

      The Internet-routable IP address for the customer gateway's outside interface. The address must be static.

      Returns:
      The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
    • withPublicIp

      public CreateCustomerGatewayRequest withPublicIp(String publicIp)

      The Internet-routable IP address for the customer gateway's outside interface. The address must be static.

      Parameters:
      publicIp - 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.
    • setBgpAsn

      public void setBgpAsn(Integer bgpAsn)

      For devices that support BGP, the customer gateway's BGP ASN.

      Default: 65000

      Parameters:
      bgpAsn - For devices that support BGP, the customer gateway's BGP ASN.

      Default: 65000

    • getBgpAsn

      public Integer getBgpAsn()

      For devices that support BGP, the customer gateway's BGP ASN.

      Default: 65000

      Returns:
      For devices that support BGP, the customer gateway's BGP ASN.

      Default: 65000

    • withBgpAsn

      public CreateCustomerGatewayRequest withBgpAsn(Integer bgpAsn)

      For devices that support BGP, the customer gateway's BGP ASN.

      Default: 65000

      Parameters:
      bgpAsn - For devices that support BGP, the customer gateway's BGP ASN.

      Default: 65000

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

      public Request<CreateCustomerGatewayRequest> getDryRunRequest()
      This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.
      Specified by:
      getDryRunRequest in interface DryRunSupportedRequest<CreateCustomerGatewayRequest>
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: