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 SecurityGroupMembership
clone()
boolean
equals(Object obj)
String
getSecurityGroupId()
The identifier of the cache security group.String
getStatus()
The status of the cache security group membership.int
hashCode()
void
setSecurityGroupId(String securityGroupId)
The identifier of the cache security group.void
setStatus(String status)
The status of the cache security group membership.String
toString()
Returns a string representation of this object; useful for testing and debugging.SecurityGroupMembership
withSecurityGroupId(String securityGroupId)
The identifier of the cache security group.SecurityGroupMembership
withStatus(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SecurityGroupMembership clone()
-
-