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:
  • Constructor Details

    • 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 Details

    • 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:
      getDryRunRequest in interface DryRunSupportedRequest<DeleteSecurityGroupRequest>
    • 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:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: