com.amazonaws.services.ec2.model

## クラス DeleteSecurityGroupRequest

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

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

      public class DeleteSecurityGroupRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `DeleteSecurityGroup operation`.

  The DeleteSecurityGroup operation deletes a security group.

  NOTE: If you attempt to delete a security group that contains instances, a fault is returned. If you attempt to delete a security group that is referenced by another security group, a fault is returned. For example, if security group B has a rule that allows access from security group A, security group A cannot be deleted until the allow rule is removed.

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

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

    コンストラクタ
    コンストラクタと説明
    `DeleteSecurityGroupRequest()` Default constructor for a new DeleteSecurityGroupRequest object.
    `DeleteSecurityGroupRequest(java.lang.String groupName)` Constructs a new DeleteSecurityGroupRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getGroupId()` The ID of the Amazon EC2 security group to delete.
    `java.lang.String` | `getGroupName()` The name of the Amazon EC2 security group to delete.
    `int` | `hashCode()`
    `void` | `setGroupId(java.lang.String groupId)` The ID of the Amazon EC2 security group to delete.
    `void` | `setGroupName(java.lang.String groupName)` The name of the Amazon EC2 security group to delete.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `DeleteSecurityGroupRequest` | `withGroupId(java.lang.String groupId)` The ID of the Amazon EC2 security group to delete.
    `DeleteSecurityGroupRequest` | `withGroupName(java.lang.String groupName)` The name of the Amazon EC2 security group to delete.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### DeleteSecurityGroupRequest

          public DeleteSecurityGroupRequest()

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

    - #### DeleteSecurityGroupRequest

          public DeleteSecurityGroupRequest(java.lang.String groupName)

      Constructs a new DeleteSecurityGroupRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `groupName` - The name of the Amazon EC2 security group to delete.

  - ### メソッドの詳細

    - #### getGroupName

          public java.lang.String getGroupName()

      The name of the Amazon EC2 security group to delete.
      戻り値:
        The name of the Amazon EC2 security group to delete.

    - #### setGroupName

          public void setGroupName(java.lang.String groupName)

      The name of the Amazon EC2 security group to delete.
      パラメータ:
        `groupName` - The name of the Amazon EC2 security group to delete.

    - #### withGroupName

          public DeleteSecurityGroupRequest withGroupName(java.lang.String groupName)

      The name of the Amazon EC2 security group to delete.

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

      パラメータ:
        `groupName` - The name of the Amazon EC2 security group to delete.

    - #### getGroupId

          public java.lang.String getGroupId()

      The ID of the Amazon EC2 security group to delete.
      戻り値:
        The ID of the Amazon EC2 security group to delete.

    - #### setGroupId

          public void setGroupId(java.lang.String groupId)

      The ID of the Amazon EC2 security group to delete.
      パラメータ:
        `groupId` - The ID of the Amazon EC2 security group to delete.

    - #### withGroupId

          public DeleteSecurityGroupRequest withGroupId(java.lang.String groupId)

      The ID of the Amazon EC2 security group to delete.

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

      パラメータ:
        `groupId` - The ID of the Amazon EC2 security group to delete.

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