com.amazonaws.services.ec2.model

## クラス IpPermission

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

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

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

  An IP permission describing allowed incoming IP traffic to an Amazon EC2 security group.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.Integer` | `getFromPort()` Start of port range for the TCP and UDP protocols, or an ICMP type number.
    `java.lang.String` | `getIpProtocol()` The IP protocol of this permission.
    `java.util.List<java.lang.String>` | `getIpRanges()` The list of CIDR IP ranges included in this permission.
    `java.lang.Integer` | `getToPort()` End of port range for the TCP and UDP protocols, or an ICMP code.
    `java.util.List<UserIdGroupPair>` | `getUserIdGroupPairs()` The list of AWS user IDs and groups included in this permission.
    `int` | `hashCode()`
    `void` | `setFromPort(java.lang.Integer fromPort)` Start of port range for the TCP and UDP protocols, or an ICMP type number.
    `void` | `setIpProtocol(java.lang.String ipProtocol)` The IP protocol of this permission.
    `void` | `setIpRanges(java.util.Collection<java.lang.String> ipRanges)` The list of CIDR IP ranges included in this permission.
    `void` | `setToPort(java.lang.Integer toPort)` End of port range for the TCP and UDP protocols, or an ICMP code.
    `void` | `setUserIdGroupPairs(java.util.Collection<UserIdGroupPair> userIdGroupPairs)` The list of AWS user IDs and groups included in this permission.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `IpPermission` | `withFromPort(java.lang.Integer fromPort)` Start of port range for the TCP and UDP protocols, or an ICMP type number.
    `IpPermission` | `withIpProtocol(java.lang.String ipProtocol)` The IP protocol of this permission.
    `IpPermission` | `withIpRanges(java.util.Collection<java.lang.String> ipRanges)` The list of CIDR IP ranges included in this permission.
    `IpPermission` | `withIpRanges(java.lang.String... ipRanges)` The list of CIDR IP ranges included in this permission.
    `IpPermission` | `withToPort(java.lang.Integer toPort)` End of port range for the TCP and UDP protocols, or an ICMP code.
    `IpPermission` | `withUserIdGroupPairs(java.util.Collection<UserIdGroupPair> userIdGroupPairs)` The list of AWS user IDs and groups included in this permission.
    `IpPermission` | `withUserIdGroupPairs(UserIdGroupPair... userIdGroupPairs)` The list of AWS user IDs and groups included in this permission.

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

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

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

    - #### IpPermission

          public IpPermission()

  - ### メソッドの詳細

    - #### getIpProtocol

          public java.lang.String getIpProtocol()

      The IP protocol of this permission.

      Valid protocol values: `tcp`, `udp`, `icmp`

      戻り値:
        The IP protocol of this permission.

        Valid protocol values: `tcp`, `udp`, `icmp`

    - #### setIpProtocol

          public void setIpProtocol(java.lang.String ipProtocol)

      The IP protocol of this permission.

      Valid protocol values: `tcp`, `udp`, `icmp`

      パラメータ:
        `ipProtocol` - The IP protocol of this permission.

        Valid protocol values: `tcp`, `udp`, `icmp`

    - #### withIpProtocol

          public IpPermission withIpProtocol(java.lang.String ipProtocol)

      The IP protocol of this permission.

      Valid protocol values: `tcp`, `udp`, `icmp`

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

      パラメータ:
        `ipProtocol` - The IP protocol of this permission.

        Valid protocol values: `tcp`, `udp`, `icmp`

    - #### getFromPort

          public java.lang.Integer getFromPort()

      Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of `-1` indicates a wildcard (i.e., any ICMP type number).
      戻り値:
        Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of `-1` indicates a wildcard (i.e., any ICMP type number).

    - #### setFromPort

          public void setFromPort(java.lang.Integer fromPort)

      Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of `-1` indicates a wildcard (i.e., any ICMP type number).
      パラメータ:
        `fromPort` - Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of `-1` indicates a wildcard (i.e., any ICMP type number).

    - #### withFromPort

          public IpPermission withFromPort(java.lang.Integer fromPort)

      Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of `-1` indicates a wildcard (i.e., any ICMP type number).

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

      パラメータ:
        `fromPort` - Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of `-1` indicates a wildcard (i.e., any ICMP type number).

    - #### getToPort

          public java.lang.Integer getToPort()

      End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of `-1` indicates a wildcard (i.e., any ICMP code).
      戻り値:
        End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of `-1` indicates a wildcard (i.e., any ICMP code).

    - #### setToPort

          public void setToPort(java.lang.Integer toPort)

      End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of `-1` indicates a wildcard (i.e., any ICMP code).
      パラメータ:
        `toPort` - End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of `-1` indicates a wildcard (i.e., any ICMP code).

    - #### withToPort

          public IpPermission withToPort(java.lang.Integer toPort)

      End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of `-1` indicates a wildcard (i.e., any ICMP code).

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

      パラメータ:
        `toPort` - End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of `-1` indicates a wildcard (i.e., any ICMP code).

    - #### getUserIdGroupPairs

          public java.util.List<UserIdGroupPair> getUserIdGroupPairs()

      The list of AWS user IDs and groups included in this permission.
      戻り値:
        The list of AWS user IDs and groups included in this permission.

    - #### setUserIdGroupPairs

          public void setUserIdGroupPairs(java.util.Collection<UserIdGroupPair> userIdGroupPairs)

      The list of AWS user IDs and groups included in this permission.
      パラメータ:
        `userIdGroupPairs` - The list of AWS user IDs and groups included in this permission.

    - #### withUserIdGroupPairs

          public IpPermission withUserIdGroupPairs(UserIdGroupPair... userIdGroupPairs)

      The list of AWS user IDs and groups included in this permission.

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

      パラメータ:
        `userIdGroupPairs` - The list of AWS user IDs and groups included in this permission.

    - #### withUserIdGroupPairs

          public IpPermission withUserIdGroupPairs(java.util.Collection<UserIdGroupPair> userIdGroupPairs)

      The list of AWS user IDs and groups included in this permission.

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

      パラメータ:
        `userIdGroupPairs` - The list of AWS user IDs and groups included in this permission.

    - #### getIpRanges

          public java.util.List<java.lang.String> getIpRanges()

      The list of CIDR IP ranges included in this permission.
      戻り値:
        The list of CIDR IP ranges included in this permission.

    - #### setIpRanges

          public void setIpRanges(java.util.Collection<java.lang.String> ipRanges)

      The list of CIDR IP ranges included in this permission.
      パラメータ:
        `ipRanges` - The list of CIDR IP ranges included in this permission.

    - #### withIpRanges

          public IpPermission withIpRanges(java.lang.String... ipRanges)

      The list of CIDR IP ranges included in this permission.

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

      パラメータ:
        `ipRanges` - The list of CIDR IP ranges included in this permission.

    - #### withIpRanges

          public IpPermission withIpRanges(java.util.Collection<java.lang.String> ipRanges)

      The list of CIDR IP ranges included in this permission.

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

      パラメータ:
        `ipRanges` - The list of CIDR IP ranges included in this permission.

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