Class CreateCustomerGatewayRequest

    • Constructor Detail

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

      • 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:
        GatewayType
      • 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:
        GatewayType
      • 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:
        GatewayType
      • 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:
        GatewayType
      • 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:
        GatewayType
      • 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.
      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object