com.amazonaws.services.ec2.model

## クラス AuthorizeSecurityGroupEgressRequest

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

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

      public class AuthorizeSecurityGroupEgressRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `AuthorizeSecurityGroupEgress operation`.

  This action applies only to security groups in a VPC; it's not supported for EC2 security groups. For information about Amazon Virtual Private Cloud and VPC security groups, go to the Amazon Virtual Private Cloud User Guide.

  The action adds one or more egress rules to a VPC security group. Specifically, this permits instances in a security group to send traffic to either one or more destination CIDR IP address ranges, or to one or more destination security groups in the same VPC.

  Each rule consists of the protocol (e.g., TCP), plus either a CIDR range, or a source group. For the TCP and UDP protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also specify the ICMP type and code. You can use `-1` as a wildcard for the ICMP type or code.

  Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

  Important: For VPC security groups: You can have up to 50 rules total per group (covering both ingress and egress).

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getCidrIp()` Deprecated.
    `java.lang.Integer` | `getFromPort()` Deprecated.
    `java.lang.String` | `getGroupId()` ID of the VPC 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 VPC 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.
    `AuthorizeSecurityGroupEgressRequest` | `withCidrIp(java.lang.String cidrIp)` Deprecated.
    `AuthorizeSecurityGroupEgressRequest` | `withFromPort(java.lang.Integer fromPort)` Deprecated.
    `AuthorizeSecurityGroupEgressRequest` | `withGroupId(java.lang.String groupId)` ID of the VPC security group to modify.
    `AuthorizeSecurityGroupEgressRequest` | `withIpPermissions(java.util.Collection<IpPermission> ipPermissions)` List of IP permissions to authorize on the specified security group.
    `AuthorizeSecurityGroupEgressRequest` | `withIpPermissions(IpPermission... ipPermissions)` List of IP permissions to authorize on the specified security group.
    `AuthorizeSecurityGroupEgressRequest` | `withIpProtocol(java.lang.String ipProtocol)` Deprecated.
    `AuthorizeSecurityGroupEgressRequest` | `withSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)` Deprecated.
    `AuthorizeSecurityGroupEgressRequest` | `withSourceSecurityGroupOwnerId(java.lang.String sourceSecurityGroupOwnerId)` Deprecated.
    `AuthorizeSecurityGroupEgressRequest` | `withToPort(java.lang.Integer toPort)` Deprecated.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### AuthorizeSecurityGroupEgressRequest

          public AuthorizeSecurityGroupEgressRequest()

  - ### メソッドの詳細

    - #### getGroupId

          public java.lang.String getGroupId()

      ID of the VPC security group to modify.
      戻り値:
        ID of the VPC security group to modify.

    - #### setGroupId

          public void setGroupId(java.lang.String groupId)

      ID of the VPC security group to modify.
      パラメータ:
        `groupId` - ID of the VPC security group to modify.

    - #### withGroupId

          public AuthorizeSecurityGroupEgressRequest withGroupId(java.lang.String groupId)

      ID of the VPC security group to modify.

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

      パラメータ:
        `groupId` - ID of the VPC security group to modify.

    - #### getSourceSecurityGroupName

          public java.lang.String getSourceSecurityGroupName()

      Deprecated.
      戻り値:
        Deprecated.

    - #### setSourceSecurityGroupName

          public void setSourceSecurityGroupName(java.lang.String sourceSecurityGroupName)

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

    - #### withSourceSecurityGroupName

          public AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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 AuthorizeSecurityGroupEgressRequest 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`