public class DeleteSecurityGroupRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
| コンストラクタと説明 |
|---|
DeleteSecurityGroupRequest()
Default constructor for a new DeleteSecurityGroupRequest object.
|
DeleteSecurityGroupRequest(java.lang.String groupName)
Constructs a new DeleteSecurityGroupRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGroupId()
The ID of the Amazon EC2 security group to delete.
|
java.lang.String |
getGroupName()
The name of the Amazon EC2 security group to delete.
|
int |
hashCode() |
void |
setGroupId(java.lang.String groupId)
The ID of the Amazon EC2 security group to delete.
|
void |
setGroupName(java.lang.String groupName)
The name of the Amazon EC2 security group to delete.
|
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 Amazon EC2 security group to delete.
|
DeleteSecurityGroupRequest |
withGroupName(java.lang.String groupName)
The name of the Amazon EC2 security group to delete.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic DeleteSecurityGroupRequest()
public DeleteSecurityGroupRequest(java.lang.String groupName)
groupName - The name of the Amazon EC2 security group to delete.public java.lang.String getGroupName()
public void setGroupName(java.lang.String groupName)
groupName - The name of the Amazon EC2 security group to delete.public DeleteSecurityGroupRequest withGroupName(java.lang.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 java.lang.String getGroupId()
public void setGroupId(java.lang.String groupId)
groupId - The ID of the Amazon EC2 security group to delete.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 Amazon EC2 security group to delete.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object