com.amazonaws.services.ec2.model

## クラス PortRange

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

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

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

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.Integer` | `getFrom()` The first port in the range.
    `java.lang.Integer` | `getTo()` The last port in the range.
    `int` | `hashCode()`
    `void` | `setFrom(java.lang.Integer from)` The first port in the range.
    `void` | `setTo(java.lang.Integer to)` The last port in the range.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `PortRange` | `withFrom(java.lang.Integer from)` The first port in the range.
    `PortRange` | `withTo(java.lang.Integer to)` The last port in the range.

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

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

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

    - #### PortRange

          public PortRange()

  - ### メソッドの詳細

    - #### getFrom

          public java.lang.Integer getFrom()

      The first port in the range. Required if specifying `tcp` or `udp` for the protocol.
      戻り値:
        The first port in the range. Required if specifying `tcp` or `udp` for the protocol.

    - #### setFrom

          public void setFrom(java.lang.Integer from)

      The first port in the range. Required if specifying `tcp` or `udp` for the protocol.
      パラメータ:
        `from` - The first port in the range. Required if specifying `tcp` or `udp` for the protocol.

    - #### withFrom

          public PortRange withFrom(java.lang.Integer from)

      The first port in the range. Required if specifying `tcp` or `udp` for the protocol.

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

      パラメータ:
        `from` - The first port in the range. Required if specifying `tcp` or `udp` for the protocol.

    - #### getTo

          public java.lang.Integer getTo()

      The last port in the range. Required if specifying `tcp` or `udp` for the protocol.
      戻り値:
        The last port in the range. Required if specifying `tcp` or `udp` for the protocol.

    - #### setTo

          public void setTo(java.lang.Integer to)

      The last port in the range. Required if specifying `tcp` or `udp` for the protocol.
      パラメータ:
        `to` - The last port in the range. Required if specifying `tcp` or `udp` for the protocol.

    - #### withTo

          public PortRange withTo(java.lang.Integer to)

      The last port in the range. Required if specifying `tcp` or `udp` for the protocol.

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

      パラメータ:
        `to` - The last port in the range. Required if specifying `tcp` or `udp` for the protocol.

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