public class DeleteSecurityGroupRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<DeleteSecurityGroupRequest>
Contains the parameters for DeleteSecurityGroup.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
groupId
The ID of the security group.
|
private java.lang.String |
groupName
[EC2-Classic, default VPC] The name of the security group.
|
NOOP
Constructor and Description |
---|
DeleteSecurityGroupRequest()
Default constructor for DeleteSecurityGroupRequest object.
|
DeleteSecurityGroupRequest(java.lang.String groupName)
Constructs a new DeleteSecurityGroupRequest object.
|
Modifier and Type | Method and Description |
---|---|
DeleteSecurityGroupRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
Request<DeleteSecurityGroupRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getGroupId()
The ID of the security group.
|
java.lang.String |
getGroupName()
[EC2-Classic, default VPC] The name of the security group.
|
int |
hashCode() |
void |
setGroupId(java.lang.String groupId)
The ID of the security group.
|
void |
setGroupName(java.lang.String groupName)
[EC2-Classic, default VPC] The name of the security group.
|
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 security group.
|
DeleteSecurityGroupRequest |
withGroupName(java.lang.String groupName)
[EC2-Classic, default VPC] The name of the security group.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String groupName
[EC2-Classic, default VPC] The name of the security group. You can specify either the security group name or the security group ID.
private java.lang.String groupId
The ID of the security group. Required for a nondefault VPC.
public DeleteSecurityGroupRequest()
public DeleteSecurityGroupRequest(java.lang.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 void setGroupName(java.lang.String groupName)
[EC2-Classic, default VPC] The name of the security group. You can specify either the security group name or the security group ID.
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 java.lang.String getGroupName()
[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(java.lang.String groupName)
[EC2-Classic, default VPC] The name of the security group. You can specify either the security group name or the security group ID.
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 void setGroupId(java.lang.String groupId)
The ID of the security group. Required for a nondefault VPC.
groupId
- The ID of the security group. Required for a nondefault VPC.public java.lang.String getGroupId()
The ID of the security group. Required for a nondefault VPC.
public DeleteSecurityGroupRequest withGroupId(java.lang.String groupId)
The ID of the security group. Required for a nondefault VPC.
groupId
- The ID of the security group. Required for a nondefault VPC.public Request<DeleteSecurityGroupRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DeleteSecurityGroupRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DeleteSecurityGroupRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()