com.amazonaws.services.ec2.model

## クラス AuthorizeSecurityGroupIngressRequest

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

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

      public class AuthorizeSecurityGroupIngressRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `AuthorizeSecurityGroupIngress operation`.

  The AuthorizeSecurityGroupIngress operation adds permissions to a security group.

  Permissions are specified by the IP protocol (TCP, UDP or ICMP), the source of the request (by IP range or an Amazon EC2 user-group pair), the source and destination port ranges (for TCP and UDP), and the ICMP codes and types (for ICMP). When authorizing ICMP, `-1` can be used as a wildcard in the type and code fields.

  Permission changes are propagated to instances within the security group as quickly as possible. However, depending on the number of instances, a small delay might occur.

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

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

    コンストラクタ
    コンストラクタと説明
    `AuthorizeSecurityGroupIngressRequest()` Default constructor for a new AuthorizeSecurityGroupIngressRequest object.
    `AuthorizeSecurityGroupIngressRequest(java.lang.String groupName, java.util.List<IpPermission> ipPermissions)` Constructs a new AuthorizeSecurityGroupIngressRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getCidrIp()` Deprecated
    `java.lang.Integer` | `getFromPort()` Deprecated
    `java.lang.String` | `getGroupId()` ID of the standard (EC2) or VPC security group to modify.
    `java.lang.String` | `getGroupName()` Name of the standard (EC2) security group to modify.
    `java.util.List<IpPermission>` | `getIpPermissions()` List of IP permissions to authorize on the specified security group.
    `java.lang.String` | `getIpProtocol()` Deprecated
    `java.lang.String` | `getSourceSecurityGroupName()` Deprecated
    `java.lang.String` | `getSourceSecurityGroupOwnerId()` Deprecated
    `java.lang.Integer` | `getToPort()` Deprecated
    `int` | `hashCode()`
    `void` | `setCidrIp(java.lang.String cidrIp)` Deprecated
    `void` | `setFromPort(java.lang.Integer fromPort)` Deprecated
    `void` | `setGroupId(java.lang.String groupId)` ID of the standard (EC2) or VPC security group to modify.
    `void` | `setGroupName(java.lang.String groupName)` Name of the standard (EC2) security group to modify.
    `void` | `setIpPermissions(java.util.Collection<IpPermission> ipPermissions)` List of IP permissions to authorize on the specified security group.
    `void` | `setIpProtocol(java.lang.String ipProtocol)` Deprecated
    `void` | `setSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)` Deprecated
    `void` | `setSourceSecurityGroupOwnerId(java.lang.String sourceSecurityGroupOwnerId)` Deprecated
    `void` | `setToPort(java.lang.Integer toPort)` Deprecated
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `AuthorizeSecurityGroupIngressRequest` | `withCidrIp(java.lang.String cidrIp)` Deprecated Returns a reference to this object so that method calls can be chained together.
    `AuthorizeSecurityGroupIngressRequest` | `withFromPort(java.lang.Integer fromPort)` Deprecated Returns a reference to this object so that method calls can be chained together.
    `AuthorizeSecurityGroupIngressRequest` | `withGroupId(java.lang.String groupId)` ID of the standard (EC2) or VPC security group to modify.
    `AuthorizeSecurityGroupIngressRequest` | `withGroupName(java.lang.String groupName)` Name of the standard (EC2) security group to modify.
    `AuthorizeSecurityGroupIngressRequest` | `withIpPermissions(java.util.Collection<IpPermission> ipPermissions)` List of IP permissions to authorize on the specified security group.
    `AuthorizeSecurityGroupIngressRequest` | `withIpPermissions(IpPermission... ipPermissions)` List of IP permissions to authorize on the specified security group.
    `AuthorizeSecurityGroupIngressRequest` | `withIpProtocol(java.lang.String ipProtocol)` Deprecated Returns a reference to this object so that method calls can be chained together.
    `AuthorizeSecurityGroupIngressRequest` | `withSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)` Deprecated Returns a reference to this object so that method calls can be chained together.
    `AuthorizeSecurityGroupIngressRequest` | `withSourceSecurityGroupOwnerId(java.lang.String sourceSecurityGroupOwnerId)` Deprecated Returns a reference to this object so that method calls can be chained together.
    `AuthorizeSecurityGroupIngressRequest` | `withToPort(java.lang.Integer toPort)` Deprecated Returns a reference to this object so that method calls can be chained together.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### AuthorizeSecurityGroupIngressRequest

          public AuthorizeSecurityGroupIngressRequest()

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

    - #### AuthorizeSecurityGroupIngressRequest

          public AuthorizeSecurityGroupIngressRequest(java.lang.String groupName,
                                              java.util.List<IpPermission> ipPermissions)

      Constructs a new AuthorizeSecurityGroupIngressRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `groupName` - Name of the standard (EC2) security group to modify. The group must belong to your account. Can be used instead of GroupID for standard (EC2) security groups.
        `ipPermissions` - List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.

  - ### メソッドの詳細

    - #### getGroupName

          public java.lang.String getGroupName()

      Name of the standard (EC2) security group to modify. The group must belong to your account. Can be used instead of GroupID for standard (EC2) security groups.
      戻り値:
        Name of the standard (EC2) security group to modify. The group must belong to your account. Can be used instead of GroupID for standard (EC2) security groups.

    - #### setGroupName

          public void setGroupName(java.lang.String groupName)

      Name of the standard (EC2) security group to modify. The group must belong to your account. Can be used instead of GroupID for standard (EC2) security groups.
      パラメータ:
        `groupName` - Name of the standard (EC2) security group to modify. The group must belong to your account. Can be used instead of GroupID for standard (EC2) security groups.

    - #### withGroupName

          public AuthorizeSecurityGroupIngressRequest withGroupName(java.lang.String groupName)

      Name of the standard (EC2) security group to modify. The group must belong to your account. Can be used instead of GroupID for standard (EC2) security groups.

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

      パラメータ:
        `groupName` - Name of the standard (EC2) security group to modify. The group must belong to your account. Can be used instead of GroupID for standard (EC2) security groups.

    - #### getGroupId

          public java.lang.String getGroupId()

      ID of the standard (EC2) or VPC security group to modify. The group must belong to your account. Required for VPC security groups; can be used instead of GroupName for standard (EC2) security groups.
      戻り値:
        ID of the standard (EC2) or VPC security group to modify. The group must belong to your account. Required for VPC security groups; can be used instead of GroupName for standard (EC2) security groups.

    - #### setGroupId

          public void setGroupId(java.lang.String groupId)

      ID of the standard (EC2) or VPC security group to modify. The group must belong to your account. Required for VPC security groups; can be used instead of GroupName for standard (EC2) security groups.
      パラメータ:
        `groupId` - ID of the standard (EC2) or VPC security group to modify. The group must belong to your account. Required for VPC security groups; can be used instead of GroupName for standard (EC2) security groups.

    - #### withGroupId

          public AuthorizeSecurityGroupIngressRequest withGroupId(java.lang.String groupId)

      ID of the standard (EC2) or VPC security group to modify. The group must belong to your account. Required for VPC security groups; can be used instead of GroupName for standard (EC2) security groups.

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

      パラメータ:
        `groupId` - ID of the standard (EC2) or VPC security group to modify. The group must belong to your account. Required for VPC security groups; can be used instead of GroupName for standard (EC2) security groups.

    - #### getSourceSecurityGroupName

          public java.lang.String getSourceSecurityGroupName()

      Deprecated
      戻り値:
        Deprecated

    - #### setSourceSecurityGroupName

          public void setSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)

      Deprecated
      パラメータ:
        `sourceSecurityGroupName` - Deprecated

    - #### withSourceSecurityGroupName

          public AuthorizeSecurityGroupIngressRequest withSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)

      Deprecated

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

      パラメータ:
        `sourceSecurityGroupName` - Deprecated

    - #### getSourceSecurityGroupOwnerId

          public java.lang.String getSourceSecurityGroupOwnerId()

      Deprecated
      戻り値:
        Deprecated

    - #### setSourceSecurityGroupOwnerId

          public void setSourceSecurityGroupOwnerId(java.lang.String sourceSecurityGroupOwnerId)

      Deprecated
      パラメータ:
        `sourceSecurityGroupOwnerId` - Deprecated

    - #### withSourceSecurityGroupOwnerId

          public AuthorizeSecurityGroupIngressRequest withSourceSecurityGroupOwnerId(java.lang.String sourceSecurityGroupOwnerId)

      Deprecated

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

      パラメータ:
        `sourceSecurityGroupOwnerId` - Deprecated

    - #### getIpProtocol

          public java.lang.String getIpProtocol()

      Deprecated
      戻り値:
        Deprecated

    - #### setIpProtocol

          public void setIpProtocol(java.lang.String ipProtocol)

      Deprecated
      パラメータ:
        `ipProtocol` - Deprecated

    - #### withIpProtocol

          public AuthorizeSecurityGroupIngressRequest withIpProtocol(java.lang.String ipProtocol)

      Deprecated

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

      パラメータ:
        `ipProtocol` - Deprecated

    - #### getFromPort

          public java.lang.Integer getFromPort()

      Deprecated
      戻り値:
        Deprecated

    - #### setFromPort

          public void setFromPort(java.lang.Integer fromPort)

      Deprecated
      パラメータ:
        `fromPort` - Deprecated

    - #### withFromPort

          public AuthorizeSecurityGroupIngressRequest withFromPort(java.lang.Integer fromPort)

      Deprecated

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

      パラメータ:
        `fromPort` - Deprecated

    - #### getToPort

          public java.lang.Integer getToPort()

      Deprecated
      戻り値:
        Deprecated

    - #### setToPort

          public void setToPort(java.lang.Integer toPort)

      Deprecated
      パラメータ:
        `toPort` - Deprecated

    - #### withToPort

          public AuthorizeSecurityGroupIngressRequest withToPort(java.lang.Integer toPort)

      Deprecated

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

      パラメータ:
        `toPort` - Deprecated

    - #### getCidrIp

          public java.lang.String getCidrIp()

      Deprecated
      戻り値:
        Deprecated

    - #### setCidrIp

          public void setCidrIp(java.lang.String cidrIp)

      Deprecated
      パラメータ:
        `cidrIp` - Deprecated

    - #### withCidrIp

          public AuthorizeSecurityGroupIngressRequest withCidrIp(java.lang.String cidrIp)

      Deprecated

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

      パラメータ:
        `cidrIp` - Deprecated

    - #### getIpPermissions

          public java.util.List<IpPermission> getIpPermissions()

      List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.
      戻り値:
        List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.

    - #### setIpPermissions

          public void setIpPermissions(java.util.Collection<IpPermission> ipPermissions)

      List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.
      パラメータ:
        `ipPermissions` - List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.

    - #### withIpPermissions

          public AuthorizeSecurityGroupIngressRequest withIpPermissions(IpPermission... ipPermissions)

      List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.

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

      パラメータ:
        `ipPermissions` - List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.

    - #### withIpPermissions

          public AuthorizeSecurityGroupIngressRequest withIpPermissions(java.util.Collection<IpPermission> ipPermissions)

      List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.

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

      パラメータ:
        `ipPermissions` - List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.

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