Class StaleSecurityGroup

java.lang.Object
com.amazonaws.services.ec2.model.StaleSecurityGroup
All Implemented Interfaces:
Serializable, Cloneable

public class StaleSecurityGroup extends Object implements Serializable, Cloneable

Describes a stale security group (a security group that contains stale rules).

See Also:
  • Constructor Details

    • StaleSecurityGroup

      public StaleSecurityGroup()
  • Method Details

    • setGroupId

      public void setGroupId(String groupId)

      The ID of the security group.

      Parameters:
      groupId - The ID of the security group.
    • getGroupId

      public String getGroupId()

      The ID of the security group.

      Returns:
      The ID of the security group.
    • withGroupId

      public StaleSecurityGroup withGroupId(String groupId)

      The ID of the security group.

      Parameters:
      groupId - The ID of the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setGroupName

      public void setGroupName(String groupName)

      The name of the security group.

      Parameters:
      groupName - The name of the security group.
    • getGroupName

      public String getGroupName()

      The name of the security group.

      Returns:
      The name of the security group.
    • withGroupName

      public StaleSecurityGroup withGroupName(String groupName)

      The name of the security group.

      Parameters:
      groupName - The name of the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDescription

      public void setDescription(String description)

      The description of the security group.

      Parameters:
      description - The description of the security group.
    • getDescription

      public String getDescription()

      The description of the security group.

      Returns:
      The description of the security group.
    • withDescription

      public StaleSecurityGroup withDescription(String description)

      The description of the security group.

      Parameters:
      description - The description of the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setVpcId

      public void setVpcId(String vpcId)

      The ID of the VPC for the security group.

      Parameters:
      vpcId - The ID of the VPC for the security group.
    • getVpcId

      public String getVpcId()

      The ID of the VPC for the security group.

      Returns:
      The ID of the VPC for the security group.
    • withVpcId

      public StaleSecurityGroup withVpcId(String vpcId)

      The ID of the VPC for the security group.

      Parameters:
      vpcId - The ID of the VPC for the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getStaleIpPermissions

      public List<StaleIpPermission> getStaleIpPermissions()

      Information about the stale inbound rules in the security group.

      Returns:
      Information about the stale inbound rules in the security group.
    • setStaleIpPermissions

      public void setStaleIpPermissions(Collection<StaleIpPermission> staleIpPermissions)

      Information about the stale inbound rules in the security group.

      Parameters:
      staleIpPermissions - Information about the stale inbound rules in the security group.
    • withStaleIpPermissions

      public StaleSecurityGroup withStaleIpPermissions(StaleIpPermission... staleIpPermissions)

      Information about the stale inbound rules in the security group.

      NOTE: This method appends the values to the existing list (if any). Use setStaleIpPermissions(java.util.Collection) or withStaleIpPermissions(java.util.Collection) if you want to override the existing values.

      Parameters:
      staleIpPermissions - Information about the stale inbound rules in the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withStaleIpPermissions

      public StaleSecurityGroup withStaleIpPermissions(Collection<StaleIpPermission> staleIpPermissions)

      Information about the stale inbound rules in the security group.

      Parameters:
      staleIpPermissions - Information about the stale inbound rules in the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getStaleIpPermissionsEgress

      public List<StaleIpPermission> getStaleIpPermissionsEgress()

      Information about the stale outbound rules in the security group.

      Returns:
      Information about the stale outbound rules in the security group.
    • setStaleIpPermissionsEgress

      public void setStaleIpPermissionsEgress(Collection<StaleIpPermission> staleIpPermissionsEgress)

      Information about the stale outbound rules in the security group.

      Parameters:
      staleIpPermissionsEgress - Information about the stale outbound rules in the security group.
    • withStaleIpPermissionsEgress

      public StaleSecurityGroup withStaleIpPermissionsEgress(StaleIpPermission... staleIpPermissionsEgress)

      Information about the stale outbound rules in the security group.

      NOTE: This method appends the values to the existing list (if any). Use setStaleIpPermissionsEgress(java.util.Collection) or withStaleIpPermissionsEgress(java.util.Collection) if you want to override the existing values.

      Parameters:
      staleIpPermissionsEgress - Information about the stale outbound rules in the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withStaleIpPermissionsEgress

      public StaleSecurityGroup withStaleIpPermissionsEgress(Collection<StaleIpPermission> staleIpPermissionsEgress)

      Information about the stale outbound rules in the security group.

      Parameters:
      staleIpPermissionsEgress - Information about the stale outbound rules in the security group.
      Returns:
      Returns a reference to this 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:
    • equals

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

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

      public StaleSecurityGroup clone()
      Overrides:
      clone in class Object