|
|||||||
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
.
Deletes a security group.
If you attempt to delete a security group that is associated with an
instance, or is referenced by another security group, the operation
fails with InvalidGroup.InUse
in EC2-Classic or
DependencyViolation
in EC2-VPC.
AmazonEC2.deleteSecurityGroup(DeleteSecurityGroupRequest)
,
Serialized FormConstructor Summary | |
---|---|
DeleteSecurityGroupRequest()
Default constructor for a new DeleteSecurityGroupRequest object. |
|
DeleteSecurityGroupRequest(java.lang.String groupName)
Constructs a new DeleteSecurityGroupRequest object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
Request<DeleteSecurityGroupRequest> |
getDryRunRequest()
This method is intended for internal use only. |
java.lang.String |
getGroupId()
The ID of the security group. |
java.lang.String |
getGroupName()
[EC2-Classic, default VPC] The name of the security group. |
int |
hashCode()
|
void |
setGroupId(java.lang.String groupId)
The ID of the security group. |
void |
setGroupName(java.lang.String groupName)
[EC2-Classic, default VPC] The name of the security group. |
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 security group. |
DeleteSecurityGroupRequest |
withGroupName(java.lang.String groupName)
[EC2-Classic, default VPC] The name of the security group. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeleteSecurityGroupRequest()
public DeleteSecurityGroupRequest(java.lang.String groupName)
groupName
- [EC2-Classic, default VPC] The name of the security
group.Method Detail |
---|
public java.lang.String getGroupName()
public void setGroupName(java.lang.String groupName)
groupName
- [EC2-Classic, default VPC] The name of the security group.public DeleteSecurityGroupRequest withGroupName(java.lang.String groupName)
Returns a reference to this object so that method calls can be chained together.
groupName
- [EC2-Classic, default VPC] The name of the security group.
public java.lang.String getGroupId()
public void setGroupId(java.lang.String groupId)
groupId
- The ID of the security group.public DeleteSecurityGroupRequest withGroupId(java.lang.String groupId)
Returns a reference to this object so that method calls can be chained together.
groupId
- The ID of the security group.
public Request<DeleteSecurityGroupRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DeleteSecurityGroupRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |