Class SecurityGroupMembership

java.lang.Object
com.amazonaws.services.elasticache.model.SecurityGroupMembership
All Implemented Interfaces:
Serializable, Cloneable

public class SecurityGroupMembership extends Object implements Serializable, Cloneable

Represents a single cache security group and its status.

See Also:
  • Constructor Details

    • SecurityGroupMembership

      public SecurityGroupMembership()
  • Method Details

    • setSecurityGroupId

      public void setSecurityGroupId(String securityGroupId)

      The identifier of the cache security group.

      Parameters:
      securityGroupId - The identifier of the cache security group.
    • getSecurityGroupId

      public String getSecurityGroupId()

      The identifier of the cache security group.

      Returns:
      The identifier of the cache security group.
    • withSecurityGroupId

      public SecurityGroupMembership withSecurityGroupId(String securityGroupId)

      The identifier of the cache security group.

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

      public void setStatus(String status)

      The status of the cache security group membership. The status changes whenever a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.

      Parameters:
      status - The status of the cache security group membership. The status changes whenever a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.
    • getStatus

      public String getStatus()

      The status of the cache security group membership. The status changes whenever a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.

      Returns:
      The status of the cache security group membership. The status changes whenever a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.
    • withStatus

      public SecurityGroupMembership withStatus(String status)

      The status of the cache security group membership. The status changes whenever a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.

      Parameters:
      status - The status of the cache security group membership. The status changes whenever a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.
      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 SecurityGroupMembership clone()
      Overrides:
      clone in class Object