Package com.amazonaws.services.ec2.model
Class DeleteSecurityGroupRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.DeleteSecurityGroupRequest
-
- All Implemented Interfaces:
ReadLimitInfo,DryRunSupportedRequest<DeleteSecurityGroupRequest>,Serializable,Cloneable
public class DeleteSecurityGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DeleteSecurityGroupRequest>
Contains the parameters for DeleteSecurityGroup.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DeleteSecurityGroupRequest()Default constructor for DeleteSecurityGroupRequest object.DeleteSecurityGroupRequest(String groupName)Constructs a new DeleteSecurityGroupRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteSecurityGroupRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)Request<DeleteSecurityGroupRequest>getDryRunRequest()This method is intended for internal use only.StringgetGroupId()The ID of the security group.StringgetGroupName()[EC2-Classic, default VPC] The name of the security group.inthashCode()voidsetGroupId(String groupId)The ID of the security group.voidsetGroupName(String groupName)[EC2-Classic, default VPC] The name of the security group.StringtoString()Returns a string representation of this object; useful for testing and debugging.DeleteSecurityGroupRequestwithGroupId(String groupId)The ID of the security group.DeleteSecurityGroupRequestwithGroupName(String groupName)[EC2-Classic, default VPC] The name of the security group.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Constructor Detail
-
DeleteSecurityGroupRequest
public DeleteSecurityGroupRequest()
Default constructor for DeleteSecurityGroupRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the 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- [EC2-Classic, default VPC] The name of the security group. You can specify either the security group name or the security group ID.
-
-
Method Detail
-
setGroupName
public void setGroupName(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.
- Parameters:
groupName- [EC2-Classic, default VPC] The name of the security group. You can specify either the security group name or the security group ID.
-
getGroupName
public 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.
- Returns:
- [EC2-Classic, default VPC] The name of the security group. You can specify either the security group name or the security group ID.
-
withGroupName
public DeleteSecurityGroupRequest withGroupName(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.
- Parameters:
groupName- [EC2-Classic, default VPC] The name of the security group. You can specify either the security group name or the security group ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGroupId
public void setGroupId(String groupId)
The ID of the security group. Required for a nondefault VPC.
- Parameters:
groupId- The ID of the security group. Required for a nondefault VPC.
-
getGroupId
public String getGroupId()
The ID of the security group. Required for a nondefault VPC.
- Returns:
- The ID of the security group. Required for a nondefault VPC.
-
withGroupId
public DeleteSecurityGroupRequest withGroupId(String groupId)
The ID of the security group. Required for a nondefault VPC.
- Parameters:
groupId- The ID of the security group. Required for a nondefault VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<DeleteSecurityGroupRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequestin interfaceDryRunSupportedRequest<DeleteSecurityGroupRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DeleteSecurityGroupRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-