com.amazonaws.services.ec2.model

## クラス VpnConnection

- java.lang.Object
- - com.amazonaws.services.ec2.model.VpnConnection

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

      public class VpnConnection
      extends java.lang.Object
      implements java.io.Serializable

  The VpnConnection data type.

  関連項目:
    直列化された形式

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

    コンストラクタ
    コンストラクタと説明
    `VpnConnection()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getCustomerGatewayConfiguration()` Contains configuration information in the native XML format for the VPN connection's customer gateway.
    `java.lang.String` | `getCustomerGatewayId()` Specifies ID of the customer gateway at the end of the VPN connection.
    `VpnConnectionOptions` | `getOptions()` Returns the value of the Options property for this object.
    `java.util.List<VpnStaticRoute>` | `getRoutes()` Returns the value of the Routes property for this object.
    `java.lang.String` | `getState()` Describes the current state of the VPN connection.
    `java.util.List<Tag>` | `getTags()` A list of tags for the VpnConnection.
    `java.lang.String` | `getType()` Specifies the type of VPN connection.
    `java.util.List<VgwTelemetry>` | `getVgwTelemetry()` Returns the value of the VgwTelemetry property for this object.
    `java.lang.String` | `getVpnConnectionId()` Specifies the ID of the VPN gateway at the VPC end of the VPN connection.
    `java.lang.String` | `getVpnGatewayId()` Specfies the ID of the VPN gateway at the VPC end of the VPN connection.
    `int` | `hashCode()`
    `void` | `setCustomerGatewayConfiguration(java.lang.String customerGatewayConfiguration)` Contains configuration information in the native XML format for the VPN connection's customer gateway.
    `void` | `setCustomerGatewayId(java.lang.String customerGatewayId)` Specifies ID of the customer gateway at the end of the VPN connection.
    `void` | `setOptions(VpnConnectionOptions options)` Sets the value of the Options property for this object.
    `void` | `setRoutes(java.util.Collection<VpnStaticRoute> routes)` Sets the value of the Routes property for this object.
    `void` | `setState(java.lang.String state)` Describes the current state of the VPN connection.
    `void` | `setTags(java.util.Collection<Tag> tags)` A list of tags for the VpnConnection.
    `void` | `setType(java.lang.String type)` Specifies the type of VPN connection.
    `void` | `setVgwTelemetry(java.util.Collection<VgwTelemetry> vgwTelemetry)` Sets the value of the VgwTelemetry property for this object.
    `void` | `setVpnConnectionId(java.lang.String vpnConnectionId)` Specifies the ID of the VPN gateway at the VPC end of the VPN connection.
    `void` | `setVpnGatewayId(java.lang.String vpnGatewayId)` Specfies the ID of the VPN gateway at the VPC end of the VPN connection.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `VpnConnection` | `withCustomerGatewayConfiguration(java.lang.String customerGatewayConfiguration)` Contains configuration information in the native XML format for the VPN connection's customer gateway.
    `VpnConnection` | `withCustomerGatewayId(java.lang.String customerGatewayId)` Specifies ID of the customer gateway at the end of the VPN connection.
    `VpnConnection` | `withOptions(VpnConnectionOptions options)` Sets the value of the Options property for this object.
    `VpnConnection` | `withRoutes(java.util.Collection<VpnStaticRoute> routes)` Sets the value of the Routes property for this object.
    `VpnConnection` | `withRoutes(VpnStaticRoute... routes)` Sets the value of the Routes property for this object.
    `VpnConnection` | `withState(java.lang.String state)` Describes the current state of the VPN connection.
    `VpnConnection` | `withTags(java.util.Collection<Tag> tags)` A list of tags for the VpnConnection.
    `VpnConnection` | `withTags(Tag... tags)` A list of tags for the VpnConnection.
    `VpnConnection` | `withType(java.lang.String type)` Specifies the type of VPN connection.
    `VpnConnection` | `withVgwTelemetry(java.util.Collection<VgwTelemetry> vgwTelemetry)` Sets the value of the VgwTelemetry property for this object.
    `VpnConnection` | `withVgwTelemetry(VgwTelemetry... vgwTelemetry)` Sets the value of the VgwTelemetry property for this object.
    `VpnConnection` | `withVpnConnectionId(java.lang.String vpnConnectionId)` Specifies the ID of the VPN gateway at the VPC end of the VPN connection.
    `VpnConnection` | `withVpnGatewayId(java.lang.String vpnGatewayId)` Specfies the ID of the VPN gateway at the VPC end of the VPN connection.

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

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

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

    - #### VpnConnection

          public VpnConnection()

  - ### メソッドの詳細

    - #### getVpnConnectionId

          public java.lang.String getVpnConnectionId()

      Specifies the ID of the VPN gateway at the VPC end of the VPN connection.
      戻り値:
        Specifies the ID of the VPN gateway at the VPC end of the VPN connection.

    - #### setVpnConnectionId

          public void setVpnConnectionId(java.lang.String vpnConnectionId)

      Specifies the ID of the VPN gateway at the VPC end of the VPN connection.
      パラメータ:
        `vpnConnectionId` - Specifies the ID of the VPN gateway at the VPC end of the VPN connection.

    - #### withVpnConnectionId

          public VpnConnection withVpnConnectionId(java.lang.String vpnConnectionId)

      Specifies the ID of the VPN gateway at the VPC end of the VPN connection.

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

      パラメータ:
        `vpnConnectionId` - Specifies the ID of the VPN gateway at the VPC end of the VPN connection.

    - #### getState

          public java.lang.String getState()

      Describes the current state of the VPN connection. Valid values are `pending`, `available`, `deleting`, and `deleted`.
      戻り値:
        Describes the current state of the VPN connection. Valid values are `pending`, `available`, `deleting`, and `deleted`.

    - #### setState

          public void setState(java.lang.String state)

      Describes the current state of the VPN connection. Valid values are `pending`, `available`, `deleting`, and `deleted`.
      パラメータ:
        `state` - Describes the current state of the VPN connection. Valid values are `pending`, `available`, `deleting`, and `deleted`.

    - #### withState

          public VpnConnection withState(java.lang.String state)

      Describes the current state of the VPN connection. Valid values are `pending`, `available`, `deleting`, and `deleted`.

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

      パラメータ:
        `state` - Describes the current state of the VPN connection. Valid values are `pending`, `available`, `deleting`, and `deleted`.

    - #### getCustomerGatewayConfiguration

          public java.lang.String getCustomerGatewayConfiguration()

      Contains configuration information in the native XML format for the VPN connection's customer gateway.

      This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in the `pending` or `available` state.

      戻り値:
        Contains configuration information in the native XML format for the VPN connection's customer gateway.

        This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in the `pending` or `available` state.

    - #### setCustomerGatewayConfiguration

          public void setCustomerGatewayConfiguration(java.lang.String customerGatewayConfiguration)

      Contains configuration information in the native XML format for the VPN connection's customer gateway.

      This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in the `pending` or `available` state.

      パラメータ:
        `customerGatewayConfiguration` - Contains configuration information in the native XML format for the VPN connection's customer gateway.

        This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in the `pending` or `available` state.

    - #### withCustomerGatewayConfiguration

          public VpnConnection withCustomerGatewayConfiguration(java.lang.String customerGatewayConfiguration)

      Contains configuration information in the native XML format for the VPN connection's customer gateway.

      This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in the `pending` or `available` state.

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

      パラメータ:
        `customerGatewayConfiguration` - Contains configuration information in the native XML format for the VPN connection's customer gateway.

        This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in the `pending` or `available` state.

    - #### getType

          public java.lang.String getType()

      Specifies the type of VPN connection.
      戻り値:
        Specifies the type of VPN connection.

    - #### setType

          public void setType(java.lang.String type)

      Specifies the type of VPN connection.
      パラメータ:
        `type` - Specifies the type of VPN connection.

    - #### withType

          public VpnConnection withType(java.lang.String type)

      Specifies the type of VPN connection.

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

      パラメータ:
        `type` - Specifies the type of VPN connection.

    - #### getCustomerGatewayId

          public java.lang.String getCustomerGatewayId()

      Specifies ID of the customer gateway at the end of the VPN connection.
      戻り値:
        Specifies ID of the customer gateway at the end of the VPN connection.

    - #### setCustomerGatewayId

          public void setCustomerGatewayId(java.lang.String customerGatewayId)

      Specifies ID of the customer gateway at the end of the VPN connection.
      パラメータ:
        `customerGatewayId` - Specifies ID of the customer gateway at the end of the VPN connection.

    - #### withCustomerGatewayId

          public VpnConnection withCustomerGatewayId(java.lang.String customerGatewayId)

      Specifies ID of the customer gateway at the end of the VPN connection.

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

      パラメータ:
        `customerGatewayId` - Specifies ID of the customer gateway at the end of the VPN connection.

    - #### getVpnGatewayId

          public java.lang.String getVpnGatewayId()

      Specfies the ID of the VPN gateway at the VPC end of the VPN connection.
      戻り値:
        Specfies the ID of the VPN gateway at the VPC end of the VPN connection.

    - #### setVpnGatewayId

          public void setVpnGatewayId(java.lang.String vpnGatewayId)

      Specfies the ID of the VPN gateway at the VPC end of the VPN connection.
      パラメータ:
        `vpnGatewayId` - Specfies the ID of the VPN gateway at the VPC end of the VPN connection.

    - #### withVpnGatewayId

          public VpnConnection withVpnGatewayId(java.lang.String vpnGatewayId)

      Specfies the ID of the VPN gateway at the VPC end of the VPN connection.

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

      パラメータ:
        `vpnGatewayId` - Specfies the ID of the VPN gateway at the VPC end of the VPN connection.

    - #### getTags

          public java.util.List<Tag> getTags()

      A list of tags for the VpnConnection.
      戻り値:
        A list of tags for the VpnConnection.

    - #### setTags

          public void setTags(java.util.Collection<Tag> tags)

      A list of tags for the VpnConnection.
      パラメータ:
        `tags` - A list of tags for the VpnConnection.

    - #### withTags

          public VpnConnection withTags(Tag... tags)

      A list of tags for the VpnConnection.

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

      パラメータ:
        `tags` - A list of tags for the VpnConnection.

    - #### withTags

          public VpnConnection withTags(java.util.Collection<Tag> tags)

      A list of tags for the VpnConnection.

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

      パラメータ:
        `tags` - A list of tags for the VpnConnection.

    - #### getVgwTelemetry

          public java.util.List<VgwTelemetry> getVgwTelemetry()

      Returns the value of the VgwTelemetry property for this object.
      戻り値:
        The value of the VgwTelemetry property for this object.

    - #### setVgwTelemetry

          public void setVgwTelemetry(java.util.Collection<VgwTelemetry> vgwTelemetry)

      Sets the value of the VgwTelemetry property for this object.
      パラメータ:
        `vgwTelemetry` - The new value for the VgwTelemetry property for this object.

    - #### withVgwTelemetry

          public VpnConnection withVgwTelemetry(VgwTelemetry... vgwTelemetry)

      Sets the value of the VgwTelemetry property for this object.

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

      パラメータ:
        `vgwTelemetry` - The new value for the VgwTelemetry property for this object.

    - #### withVgwTelemetry

          public VpnConnection withVgwTelemetry(java.util.Collection<VgwTelemetry> vgwTelemetry)

      Sets the value of the VgwTelemetry property for this object.

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

      パラメータ:
        `vgwTelemetry` - The new value for the VgwTelemetry property for this object.

    - #### getOptions

          public VpnConnectionOptions getOptions()

      Returns the value of the Options property for this object.
      戻り値:
        The value of the Options property for this object.

    - #### setOptions

          public void setOptions(VpnConnectionOptions options)

      Sets the value of the Options property for this object.
      パラメータ:
        `options` - The new value for the Options property for this object.

    - #### withOptions

          public VpnConnection withOptions(VpnConnectionOptions options)

      Sets the value of the Options property for this object.

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

      パラメータ:
        `options` - The new value for the Options property for this object.

    - #### getRoutes

          public java.util.List<VpnStaticRoute> getRoutes()

      Returns the value of the Routes property for this object.
      戻り値:
        The value of the Routes property for this object.

    - #### setRoutes

          public void setRoutes(java.util.Collection<VpnStaticRoute> routes)

      Sets the value of the Routes property for this object.
      パラメータ:
        `routes` - The new value for the Routes property for this object.

    - #### withRoutes

          public VpnConnection withRoutes(VpnStaticRoute... routes)

      Sets the value of the Routes property for this object.

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

      パラメータ:
        `routes` - The new value for the Routes property for this object.

    - #### withRoutes

          public VpnConnection withRoutes(java.util.Collection<VpnStaticRoute> routes)

      Sets the value of the Routes property for this object.

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

      パラメータ:
        `routes` - The new value for the Routes property for this object.

    - #### 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`