public class DeleteSecurityGroupRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DeleteSecurityGroupRequest>
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.
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 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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public DeleteSecurityGroupRequest()
public DeleteSecurityGroupRequest(String groupName)
groupName
- The name of the Amazon EC2 security group to delete.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 Request<DeleteSecurityGroupRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DeleteSecurityGroupRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.