|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.CreateSecurityGroupRequest
public class CreateSecurityGroupRequest
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)
Constructor Summary | |
---|---|
CreateSecurityGroupRequest()
Default constructor for a new CreateSecurityGroupRequest object. |
|
CreateSecurityGroupRequest(String groupName,
String description)
Constructs a new CreateSecurityGroupRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getDescription()
Description of the group. |
String |
getGroupName()
Name of the security group. |
String |
getVpcId()
ID of the VPC. |
int |
hashCode()
|
void |
setDescription(String description)
Description of the group. |
void |
setGroupName(String groupName)
Name of the security group. |
void |
setVpcId(String vpcId)
ID of the VPC. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateSecurityGroupRequest |
withDescription(String description)
Description of the group. |
CreateSecurityGroupRequest |
withGroupName(String groupName)
Name of the security group. |
CreateSecurityGroupRequest |
withVpcId(String vpcId)
ID of the VPC. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateSecurityGroupRequest()
public CreateSecurityGroupRequest(String groupName, String description)
groupName
- Name of the security group.description
- Description of the group. This is informational
only.Method Detail |
---|
public String getGroupName()
public void setGroupName(String groupName)
groupName
- Name of the security group.public CreateSecurityGroupRequest withGroupName(String groupName)
Returns a reference to this object so that method calls can be chained together.
groupName
- Name of the security group.
public String getDescription()
public void setDescription(String description)
description
- Description of the group. This is informational only.public CreateSecurityGroupRequest withDescription(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 String getVpcId()
public void setVpcId(String vpcId)
vpcId
- ID of the VPC.public CreateSecurityGroupRequest withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- ID of the VPC.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |