public class DeleteSecurityGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, 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.
NOOP| 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 |
|---|---|
DeleteSecurityGroupRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic DeleteSecurityGroupRequest()
public DeleteSecurityGroupRequest(String groupName)
groupName - [EC2-Classic, default VPC] The name of the security
group. You can specify either the security group name or the security
group ID.public String getGroupName()
public void setGroupName(String groupName)
groupName - [EC2-Classic, default VPC] The name of the security group. You can
specify either the security group name or the security group ID.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. You can
specify either the security group name or the security group ID.public String getGroupId()
public void setGroupId(String groupId)
groupId - The ID of the security group. Required for a nondefault VPC.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. Required for a nondefault VPC.public Request<DeleteSecurityGroupRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<DeleteSecurityGroupRequest>public String toString()
toString in class ObjectObject.toString()public DeleteSecurityGroupRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.