com.amazonaws.services.ec2.model

## クラス CreateSecurityGroupRequest

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

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

      public class CreateSecurityGroupRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `CreateSecurityGroup operation`.

  The CreateSecurityGroup operation creates a new security group.

  Every instance is launched in a security group. If no security group is specified during launch, the instances are launched in the default security group. Instances within the same security group have unrestricted network access to each other. Instances will reject network access attempts from other instances in a different security group. As the owner of instances you can grant or revoke specific permissions using the AuthorizeSecurityGroupIngress and RevokeSecurityGroupIngress operations.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getDescription()` Description of the group.
    `java.lang.String` | `getGroupName()` Name of the security group.
    `java.lang.String` | `getVpcId()` ID of the VPC.
    `int` | `hashCode()`
    `void` | `setDescription(java.lang.String description)` Description of the group.
    `void` | `setGroupName(java.lang.String groupName)` Name of the security group.
    `void` | `setVpcId(java.lang.String vpcId)` ID of the VPC.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `CreateSecurityGroupRequest` | `withDescription(java.lang.String description)` Description of the group.
    `CreateSecurityGroupRequest` | `withGroupName(java.lang.String groupName)` Name of the security group.
    `CreateSecurityGroupRequest` | `withVpcId(java.lang.String vpcId)` ID of the VPC.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### CreateSecurityGroupRequest

          public CreateSecurityGroupRequest()

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

    - #### CreateSecurityGroupRequest

          public CreateSecurityGroupRequest(java.lang.String groupName,
                                    java.lang.String description)

      Constructs a new CreateSecurityGroupRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `groupName` - Name of the security group.
        `description` - Description of the group. This is informational only.

  - ### メソッドの詳細

    - #### getGroupName

          public java.lang.String getGroupName()

      Name of the security group.
      戻り値:
        Name of the security group.

    - #### setGroupName

          public void setGroupName(java.lang.String groupName)

      Name of the security group.
      パラメータ:
        `groupName` - Name of the security group.

    - #### withGroupName

          public CreateSecurityGroupRequest withGroupName(java.lang.String groupName)

      Name of the security group.

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

      パラメータ:
        `groupName` - Name of the security group.

    - #### getDescription

          public java.lang.String getDescription()

      Description of the group. This is informational only.
      戻り値:
        Description of the group. This is informational only.

    - #### setDescription

          public void setDescription(java.lang.String description)

      Description of the group. This is informational only.
      パラメータ:
        `description` - Description of the group. This is informational only.

    - #### withDescription

          public CreateSecurityGroupRequest withDescription(java.lang.String description)

      Description of the group. This is informational only.

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

      パラメータ:
        `description` - Description of the group. This is informational only.

    - #### getVpcId

          public java.lang.String getVpcId()

      ID of the VPC.
      戻り値:
        ID of the VPC.

    - #### setVpcId

          public void setVpcId(java.lang.String vpcId)

      ID of the VPC.
      パラメータ:
        `vpcId` - ID of the VPC.

    - #### withVpcId

          public CreateSecurityGroupRequest withVpcId(java.lang.String vpcId)

      ID of the VPC.

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

      パラメータ:
        `vpcId` - ID of the VPC.

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