|
|||||||
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.DeleteSecurityGroupRequest
public class DeleteSecurityGroupRequest
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)
Constructor Summary | |
---|---|
DeleteSecurityGroupRequest()
Default constructor for a new DeleteSecurityGroupRequest object. |
|
DeleteSecurityGroupRequest(String groupName)
Constructs a new DeleteSecurityGroupRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getGroupId()
The ID of the Amazon EC2 security group to delete. |
String |
getGroupName()
The name of the Amazon EC2 security group to delete. |
int |
hashCode()
|
void |
setGroupId(String groupId)
The ID of the Amazon EC2 security group to delete. |
void |
setGroupName(String groupName)
The name of the Amazon EC2 security group to delete. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
DeleteSecurityGroupRequest |
withGroupId(String groupId)
The ID of the Amazon EC2 security group to delete. |
DeleteSecurityGroupRequest |
withGroupName(String groupName)
The name of the Amazon EC2 security group to delete. |
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 DeleteSecurityGroupRequest()
public DeleteSecurityGroupRequest(String groupName)
groupName
- The name of the Amazon EC2 security group to delete.Method Detail |
---|
public String getGroupName()
public void setGroupName(String groupName)
groupName
- The name of the Amazon EC2 security group to delete.public DeleteSecurityGroupRequest withGroupName(String groupName)
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.
public String getGroupId()
public void setGroupId(String groupId)
groupId
- The ID of the Amazon EC2 security group to delete.public DeleteSecurityGroupRequest withGroupId(String groupId)
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.
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 |