com.amazonaws.services.ec2.model

## クラス SecurityGroup

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

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

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

  An Amazon EC2 security group, describing how EC2 instances in this group can receive network traffic.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getDescription()` The description of this security group.
    `java.lang.String` | `getGroupId()` Returns the value of the GroupId property for this object.
    `java.lang.String` | `getGroupName()` The name of this security group.
    `java.util.List<IpPermission>` | `getIpPermissions()` The permissions enabled for this security group.
    `java.util.List<IpPermission>` | `getIpPermissionsEgress()` Returns the value of the IpPermissionsEgress property for this object.
    `java.lang.String` | `getOwnerId()` The AWS Access Key ID of the owner of the security group.
    `java.util.List<Tag>` | `getTags()` Returns the value of the Tags property for this object.
    `java.lang.String` | `getVpcId()` Returns the value of the VpcId property for this object.
    `int` | `hashCode()`
    `void` | `setDescription(java.lang.String description)` The description of this security group.
    `void` | `setGroupId(java.lang.String groupId)` Sets the value of the GroupId property for this object.
    `void` | `setGroupName(java.lang.String groupName)` The name of this security group.
    `void` | `setIpPermissions(java.util.Collection<IpPermission> ipPermissions)` The permissions enabled for this security group.
    `void` | `setIpPermissionsEgress(java.util.Collection<IpPermission> ipPermissionsEgress)` Sets the value of the IpPermissionsEgress property for this object.
    `void` | `setOwnerId(java.lang.String ownerId)` The AWS Access Key ID of the owner of the security group.
    `void` | `setTags(java.util.Collection<Tag> tags)` Sets the value of the Tags property for this object.
    `void` | `setVpcId(java.lang.String vpcId)` Sets the value of the VpcId property for this object.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `SecurityGroup` | `withDescription(java.lang.String description)` The description of this security group.
    `SecurityGroup` | `withGroupId(java.lang.String groupId)` Sets the value of the GroupId property for this object.
    `SecurityGroup` | `withGroupName(java.lang.String groupName)` The name of this security group.
    `SecurityGroup` | `withIpPermissions(java.util.Collection<IpPermission> ipPermissions)` The permissions enabled for this security group.
    `SecurityGroup` | `withIpPermissions(IpPermission... ipPermissions)` The permissions enabled for this security group.
    `SecurityGroup` | `withIpPermissionsEgress(java.util.Collection<IpPermission> ipPermissionsEgress)` Sets the value of the IpPermissionsEgress property for this object.
    `SecurityGroup` | `withIpPermissionsEgress(IpPermission... ipPermissionsEgress)` Sets the value of the IpPermissionsEgress property for this object.
    `SecurityGroup` | `withOwnerId(java.lang.String ownerId)` The AWS Access Key ID of the owner of the security group.
    `SecurityGroup` | `withTags(java.util.Collection<Tag> tags)` Sets the value of the Tags property for this object.
    `SecurityGroup` | `withTags(Tag... tags)` Sets the value of the Tags property for this object.
    `SecurityGroup` | `withVpcId(java.lang.String vpcId)` Sets the value of the VpcId property for this object.

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

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

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

    - #### SecurityGroup

          public SecurityGroup()

  - ### メソッドの詳細

    - #### getOwnerId

          public java.lang.String getOwnerId()

      The AWS Access Key ID of the owner of the security group.
      戻り値:
        The AWS Access Key ID of the owner of the security group.

    - #### setOwnerId

          public void setOwnerId(java.lang.String ownerId)

      The AWS Access Key ID of the owner of the security group.
      パラメータ:
        `ownerId` - The AWS Access Key ID of the owner of the security group.

    - #### withOwnerId

          public SecurityGroup withOwnerId(java.lang.String ownerId)

      The AWS Access Key ID of the owner of the security group.

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

      パラメータ:
        `ownerId` - The AWS Access Key ID of the owner of the security group.

    - #### getGroupName

          public java.lang.String getGroupName()

      The name of this security group.
      戻り値:
        The name of this security group.

    - #### setGroupName

          public void setGroupName(java.lang.String groupName)

      The name of this security group.
      パラメータ:
        `groupName` - The name of this security group.

    - #### withGroupName

          public SecurityGroup withGroupName(java.lang.String groupName)

      The name of this security group.

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

      パラメータ:
        `groupName` - The name of this security group.

    - #### getGroupId

          public java.lang.String getGroupId()

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

    - #### setGroupId

          public void setGroupId(java.lang.String groupId)

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

    - #### withGroupId

          public SecurityGroup withGroupId(java.lang.String groupId)

      Sets the value of the GroupId property for this object.

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

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

    - #### getDescription

          public java.lang.String getDescription()

      The description of this security group.
      戻り値:
        The description of this security group.

    - #### setDescription

          public void setDescription(java.lang.String description)

      The description of this security group.
      パラメータ:
        `description` - The description of this security group.

    - #### withDescription

          public SecurityGroup withDescription(java.lang.String description)

      The description of this security group.

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

      パラメータ:
        `description` - The description of this security group.

    - #### getIpPermissions

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

      The permissions enabled for this security group.
      戻り値:
        The permissions enabled for this security group.

    - #### setIpPermissions

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

      The permissions enabled for this security group.
      パラメータ:
        `ipPermissions` - The permissions enabled for this security group.

    - #### withIpPermissions

          public SecurityGroup withIpPermissions(IpPermission... ipPermissions)

      The permissions enabled for this security group.

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

      パラメータ:
        `ipPermissions` - The permissions enabled for this security group.

    - #### withIpPermissions

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

      The permissions enabled for this security group.

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

      パラメータ:
        `ipPermissions` - The permissions enabled for this security group.

    - #### getIpPermissionsEgress

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

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

    - #### setIpPermissionsEgress

          public void setIpPermissionsEgress(java.util.Collection<IpPermission> ipPermissionsEgress)

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

    - #### withIpPermissionsEgress

          public SecurityGroup withIpPermissionsEgress(IpPermission... ipPermissionsEgress)

      Sets the value of the IpPermissionsEgress property for this object.

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

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

    - #### withIpPermissionsEgress

          public SecurityGroup withIpPermissionsEgress(java.util.Collection<IpPermission> ipPermissionsEgress)

      Sets the value of the IpPermissionsEgress property for this object.

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

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

    - #### getVpcId

          public java.lang.String getVpcId()

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

    - #### setVpcId

          public void setVpcId(java.lang.String vpcId)

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

    - #### withVpcId

          public SecurityGroup withVpcId(java.lang.String vpcId)

      Sets the value of the VpcId property for this object.

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

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

    - #### getTags

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

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

    - #### setTags

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

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

    - #### withTags

          public SecurityGroup withTags(Tag... tags)

      Sets the value of the Tags property for this object.

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

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

    - #### withTags

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

      Sets the value of the Tags property for this object.

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

      パラメータ:
        `tags` - The new value for the Tags 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`