com.amazonaws.services.ec2.model

## クラス CreateCustomerGatewayRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.ec2.model.CreateCustomerGatewayRequest

- すべての実装されたインタフェース:
    java.io.Serializable

      public class CreateCustomerGatewayRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `CreateCustomerGateway operation`.

  Provides information to AWS about your customer gateway device. The customer gateway is the appliance at your end of the VPN connection (compared to the VPN gateway, which is the device at the AWS side of the VPN connection). You can have a single active customer gateway per AWS account (active means that you've created a VPN connection to use with the customer gateway). AWS might delete any customer gateway that you create with this operation if you leave it inactive for an extended period of time.

  You must provide the Internet-routable IP address of the customer gateway's external interface. The IP address must be static.

  You must also provide the device's Border Gateway Protocol (BGP) Autonomous System Number (ASN). You can use an existing ASN assigned to your network. If you don't have an ASN already, you can use a private ASN (in the 64512 - 65534 range). For more information about ASNs, go to http://en.wikipedia.org/wiki/Autonomous_system_%28Internet%29 .

  関連項目:
    `AmazonEC2.createCustomerGateway(CreateCustomerGatewayRequest)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `CreateCustomerGatewayRequest()` Default constructor for a new CreateCustomerGatewayRequest object.
    `CreateCustomerGatewayRequest(java.lang.String type, java.lang.String publicIp, java.lang.Integer bgpAsn)` Constructs a new CreateCustomerGatewayRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.Integer` | `getBgpAsn()` The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
    `java.lang.String` | `getPublicIp()` The Internet-routable IP address for the customer gateway's outside interface.
    `java.lang.String` | `getType()` The type of VPN connection this customer gateway supports.
    `int` | `hashCode()`
    `void` | `setBgpAsn(java.lang.Integer bgpAsn)` The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
    `void` | `setPublicIp(java.lang.String publicIp)` The Internet-routable IP address for the customer gateway's outside interface.
    `void` | `setType(java.lang.String type)` The type of VPN connection this customer gateway supports.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `CreateCustomerGatewayRequest` | `withBgpAsn(java.lang.Integer bgpAsn)` The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
    `CreateCustomerGatewayRequest` | `withPublicIp(java.lang.String publicIp)` The Internet-routable IP address for the customer gateway's outside interface.
    `CreateCustomerGatewayRequest` | `withType(java.lang.String type)` The type of VPN connection this customer gateway supports.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### CreateCustomerGatewayRequest

          public CreateCustomerGatewayRequest()

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

    - #### CreateCustomerGatewayRequest

          public CreateCustomerGatewayRequest(java.lang.String type,
                                      java.lang.String publicIp,
                                      java.lang.Integer bgpAsn)

      Constructs a new CreateCustomerGatewayRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `type` - The type of VPN connection this customer gateway supports.
        `publicIp` - The Internet-routable IP address for the customer gateway's outside interface. The address must be static
        `bgpAsn` - The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

  - ### メソッドの詳細

    - #### getType

          public java.lang.String getType()

      The type of VPN connection this customer gateway supports.
      戻り値:
        The type of VPN connection this customer gateway supports.

    - #### setType

          public void setType(java.lang.String type)

      The type of VPN connection this customer gateway supports.
      パラメータ:
        `type` - The type of VPN connection this customer gateway supports.

    - #### withType

          public CreateCustomerGatewayRequest withType(java.lang.String type)

      The type of VPN connection this customer gateway supports.

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

      パラメータ:
        `type` - The type of VPN connection this customer gateway supports.

    - #### getPublicIp

          public java.lang.String getPublicIp()

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

    - #### setPublicIp

          public void setPublicIp(java.lang.String publicIp)

      The Internet-routable IP address for the customer gateway's outside interface. The address must be static
      パラメータ:
        `publicIp` - The Internet-routable IP address for the customer gateway's outside interface. The address must be static

    - #### withPublicIp

          public CreateCustomerGatewayRequest withPublicIp(java.lang.String publicIp)

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

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

      パラメータ:
        `publicIp` - The Internet-routable IP address for the customer gateway's outside interface. The address must be static

    - #### getBgpAsn

          public java.lang.Integer getBgpAsn()

      The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
      戻り値:
        The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

    - #### setBgpAsn

          public void setBgpAsn(java.lang.Integer bgpAsn)

      The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
      パラメータ:
        `bgpAsn` - The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

    - #### withBgpAsn

          public CreateCustomerGatewayRequest withBgpAsn(java.lang.Integer bgpAsn)

      The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

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

      パラメータ:
        `bgpAsn` - The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`