Class NodeSnapshot
- java.lang.Object
-
- com.amazonaws.services.elasticache.model.NodeSnapshot
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class NodeSnapshot extends Object implements Serializable, Cloneable
Represents an individual cache node in a snapshot of a cache cluster.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeSnapshot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeSnapshot
clone()
boolean
equals(Object obj)
Date
getCacheNodeCreateTime()
The date and time when the cache node was created in the source cache cluster.String
getCacheNodeId()
The cache node identifier for the node in the source cache cluster.String
getCacheSize()
The size of the cache on the source cache node.Date
getSnapshotCreateTime()
The date and time when the source node's metadata and cache data set was obtained for the snapshot.int
hashCode()
void
setCacheNodeCreateTime(Date cacheNodeCreateTime)
The date and time when the cache node was created in the source cache cluster.void
setCacheNodeId(String cacheNodeId)
The cache node identifier for the node in the source cache cluster.void
setCacheSize(String cacheSize)
The size of the cache on the source cache node.void
setSnapshotCreateTime(Date snapshotCreateTime)
The date and time when the source node's metadata and cache data set was obtained for the snapshot.String
toString()
Returns a string representation of this object; useful for testing and debugging.NodeSnapshot
withCacheNodeCreateTime(Date cacheNodeCreateTime)
The date and time when the cache node was created in the source cache cluster.NodeSnapshot
withCacheNodeId(String cacheNodeId)
The cache node identifier for the node in the source cache cluster.NodeSnapshot
withCacheSize(String cacheSize)
The size of the cache on the source cache node.NodeSnapshot
withSnapshotCreateTime(Date snapshotCreateTime)
The date and time when the source node's metadata and cache data set was obtained for the snapshot.
-
-
-
Method Detail
-
setCacheNodeId
public void setCacheNodeId(String cacheNodeId)
The cache node identifier for the node in the source cache cluster.
- Parameters:
cacheNodeId
- The cache node identifier for the node in the source cache cluster.
-
getCacheNodeId
public String getCacheNodeId()
The cache node identifier for the node in the source cache cluster.
- Returns:
- The cache node identifier for the node in the source cache cluster.
-
withCacheNodeId
public NodeSnapshot withCacheNodeId(String cacheNodeId)
The cache node identifier for the node in the source cache cluster.
- Parameters:
cacheNodeId
- The cache node identifier for the node in the source cache cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCacheSize
public void setCacheSize(String cacheSize)
The size of the cache on the source cache node.
- Parameters:
cacheSize
- The size of the cache on the source cache node.
-
getCacheSize
public String getCacheSize()
The size of the cache on the source cache node.
- Returns:
- The size of the cache on the source cache node.
-
withCacheSize
public NodeSnapshot withCacheSize(String cacheSize)
The size of the cache on the source cache node.
- Parameters:
cacheSize
- The size of the cache on the source cache node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCacheNodeCreateTime
public void setCacheNodeCreateTime(Date cacheNodeCreateTime)
The date and time when the cache node was created in the source cache cluster.
- Parameters:
cacheNodeCreateTime
- The date and time when the cache node was created in the source cache cluster.
-
getCacheNodeCreateTime
public Date getCacheNodeCreateTime()
The date and time when the cache node was created in the source cache cluster.
- Returns:
- The date and time when the cache node was created in the source cache cluster.
-
withCacheNodeCreateTime
public NodeSnapshot withCacheNodeCreateTime(Date cacheNodeCreateTime)
The date and time when the cache node was created in the source cache cluster.
- Parameters:
cacheNodeCreateTime
- The date and time when the cache node was created in the source cache cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSnapshotCreateTime
public void setSnapshotCreateTime(Date snapshotCreateTime)
The date and time when the source node's metadata and cache data set was obtained for the snapshot.
- Parameters:
snapshotCreateTime
- The date and time when the source node's metadata and cache data set was obtained for the snapshot.
-
getSnapshotCreateTime
public Date getSnapshotCreateTime()
The date and time when the source node's metadata and cache data set was obtained for the snapshot.
- Returns:
- The date and time when the source node's metadata and cache data set was obtained for the snapshot.
-
withSnapshotCreateTime
public NodeSnapshot withSnapshotCreateTime(Date snapshotCreateTime)
The date and time when the source node's metadata and cache data set was obtained for the snapshot.
- Parameters:
snapshotCreateTime
- The date and time when the source node's metadata and cache data set was obtained for the snapshot.- 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 NodeSnapshot clone()
-
-