com.amazonaws.services.elasticache.model
Class CopySnapshotRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticache.model.CopySnapshotRequest
All Implemented Interfaces:
Serializable

public class CopySnapshotRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CopySnapshot operation.

The CopySnapshot operation makes a copy of an existing snapshot.

See Also:
AmazonElastiCache.copySnapshot(CopySnapshotRequest), Serialized Form

Constructor Summary
CopySnapshotRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getSourceSnapshotName()
          The name of an existing snapshot from which to copy.
 String getTargetSnapshotName()
          A name for the copied snapshot.
 int hashCode()
           
 void setSourceSnapshotName(String sourceSnapshotName)
          The name of an existing snapshot from which to copy.
 void setTargetSnapshotName(String targetSnapshotName)
          A name for the copied snapshot.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CopySnapshotRequest withSourceSnapshotName(String sourceSnapshotName)
          The name of an existing snapshot from which to copy.
 CopySnapshotRequest withTargetSnapshotName(String targetSnapshotName)
          A name for the copied snapshot.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopySnapshotRequest

public CopySnapshotRequest()
Method Detail

getSourceSnapshotName

public String getSourceSnapshotName()
The name of an existing snapshot from which to copy.

Returns:
The name of an existing snapshot from which to copy.

setSourceSnapshotName

public void setSourceSnapshotName(String sourceSnapshotName)
The name of an existing snapshot from which to copy.

Parameters:
sourceSnapshotName - The name of an existing snapshot from which to copy.

withSourceSnapshotName

public CopySnapshotRequest withSourceSnapshotName(String sourceSnapshotName)
The name of an existing snapshot from which to copy.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sourceSnapshotName - The name of an existing snapshot from which to copy.
Returns:
A reference to this updated object so that method calls can be chained together.

getTargetSnapshotName

public String getTargetSnapshotName()
A name for the copied snapshot.

Returns:
A name for the copied snapshot.

setTargetSnapshotName

public void setTargetSnapshotName(String targetSnapshotName)
A name for the copied snapshot.

Parameters:
targetSnapshotName - A name for the copied snapshot.

withTargetSnapshotName

public CopySnapshotRequest withTargetSnapshotName(String targetSnapshotName)
A name for the copied snapshot.

Returns a reference to this object so that method calls can be chained together.

Parameters:
targetSnapshotName - A name for the copied snapshot.
Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2016. All rights reserved.