public class DeleteSecurityGroupRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DeleteSecurityGroupRequest>
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.
| Constructor and Description |
|---|
DeleteSecurityGroupRequest()
Default constructor for a new DeleteSecurityGroupRequest object.
|
DeleteSecurityGroupRequest(String groupName)
Constructs a new DeleteSecurityGroupRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Request<DeleteSecurityGroupRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getGroupId()
The ID of the security group.
|
String |
getGroupName()
[EC2-Classic, default VPC] The name of the security group.
|
int |
hashCode() |
void |
setGroupId(String groupId)
The ID of the security group.
|
void |
setGroupName(String groupName)
[EC2-Classic, default VPC] The name of the security group.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteSecurityGroupRequest |
withGroupId(String groupId)
The ID of the security group.
|
DeleteSecurityGroupRequest |
withGroupName(String groupName)
[EC2-Classic, default VPC] The name of the security group.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic DeleteSecurityGroupRequest()
public DeleteSecurityGroupRequest(String groupName)
groupName - [EC2-Classic, default VPC] The name of the security
group.public String getGroupName()
public void setGroupName(String groupName)
groupName - [EC2-Classic, default VPC] The name of the security group.public DeleteSecurityGroupRequest withGroupName(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 String getGroupId()
public void setGroupId(String groupId)
groupId - The ID of the security group.public DeleteSecurityGroupRequest withGroupId(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 String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.