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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SecurityGroupMembership()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityGroupMembershipclone()booleanequals(Object obj)StringgetSecurityGroupId()The identifier of the cache security group.StringgetStatus()The status of the cache security group membership.inthashCode()voidsetSecurityGroupId(String securityGroupId)The identifier of the cache security group.voidsetStatus(String status)The status of the cache security group membership.StringtoString()Returns a string representation of this object; useful for testing and debugging.SecurityGroupMembershipwithSecurityGroupId(String securityGroupId)The identifier of the cache security group.SecurityGroupMembershipwithStatus(String status)The status of the cache security group membership.
-
-
-
Method Detail
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SecurityGroupMembership clone()
-
-