com.amazonaws.services.ec2.model
Class DeleteSecurityGroupRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DeleteSecurityGroupRequest

public class DeleteSecurityGroupRequest
extends AmazonWebServiceRequest

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.

See Also:
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

DeleteSecurityGroupRequest

public DeleteSecurityGroupRequest()
Default constructor for a new DeleteSecurityGroupRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


DeleteSecurityGroupRequest

public DeleteSecurityGroupRequest(String groupName)
Constructs a new DeleteSecurityGroupRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
groupName - The name of the Amazon EC2 security group to delete.
Method Detail

getGroupName

public String getGroupName()
The name of the Amazon EC2 security group to delete.

Returns:
The name of the Amazon EC2 security group to delete.

setGroupName

public void setGroupName(String groupName)
The name of the Amazon EC2 security group to delete.

Parameters:
groupName - The name of the Amazon EC2 security group to delete.

withGroupName

public DeleteSecurityGroupRequest withGroupName(String groupName)
The name of the Amazon EC2 security group to delete.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groupName - The name of the Amazon EC2 security group to delete.
Returns:
A reference to this updated object so that method calls can be chained together.

getGroupId

public String getGroupId()
The ID of the Amazon EC2 security group to delete.

Returns:
The ID of the Amazon EC2 security group to delete.

setGroupId

public void setGroupId(String groupId)
The ID of the Amazon EC2 security group to delete.

Parameters:
groupId - The ID of the Amazon EC2 security group to delete.

withGroupId

public DeleteSecurityGroupRequest withGroupId(String groupId)
The ID of the Amazon EC2 security group to delete.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groupId - The ID of the Amazon EC2 security group to delete.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.