public class CreateSecurityGroupRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
| コンストラクタと説明 |
|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic CreateSecurityGroupRequest()
public CreateSecurityGroupRequest(java.lang.String groupName,
java.lang.String description)
groupName - Name of the security group.description - Description of the group. This is informational
only.public java.lang.String getGroupName()
public void setGroupName(java.lang.String groupName)
groupName - Name of the security group.public CreateSecurityGroupRequest withGroupName(java.lang.String groupName)
Returns a reference to this object so that method calls can be chained together.
groupName - Name of the security group.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - Description of the group. This is informational only.public CreateSecurityGroupRequest withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description - Description of the group. This is informational only.public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId - ID of the VPC.public CreateSecurityGroupRequest withVpcId(java.lang.String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId - ID of the VPC.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object