Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class CopySnapshotRequest

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

public class CopySnapshotRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CopySnapshot operation.

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

Constructor Summary
CopySnapshotRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDescription()
          Returns the value of the Description property for this object.
 String getSourceRegion()
          Returns the value of the SourceRegion property for this object.
 String getSourceSnapshotId()
          Returns the value of the SourceSnapshotId property for this object.
 int hashCode()
           
 void setDescription(String description)
          Sets the value of the Description property for this object.
 void setSourceRegion(String sourceRegion)
          Sets the value of the SourceRegion property for this object.
 void setSourceSnapshotId(String sourceSnapshotId)
          Sets the value of the SourceSnapshotId property for this object.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CopySnapshotRequest withDescription(String description)
          Sets the value of the Description property for this object.
 CopySnapshotRequest withSourceRegion(String sourceRegion)
          Sets the value of the SourceRegion property for this object.
 CopySnapshotRequest withSourceSnapshotId(String sourceSnapshotId)
          Sets the value of the SourceSnapshotId property for this object.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopySnapshotRequest

public CopySnapshotRequest()
Method Detail

getSourceRegion

public String getSourceRegion()
Returns the value of the SourceRegion property for this object.

Returns:
The value of the SourceRegion property for this object.

setSourceRegion

public void setSourceRegion(String sourceRegion)
Sets the value of the SourceRegion property for this object.

Parameters:
sourceRegion - The new value for the SourceRegion property for this object.

withSourceRegion

public CopySnapshotRequest withSourceRegion(String sourceRegion)
Sets the value of the SourceRegion property for this object.

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

Parameters:
sourceRegion - The new value for the SourceRegion property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getSourceSnapshotId

public String getSourceSnapshotId()
Returns the value of the SourceSnapshotId property for this object.

Returns:
The value of the SourceSnapshotId property for this object.

setSourceSnapshotId

public void setSourceSnapshotId(String sourceSnapshotId)
Sets the value of the SourceSnapshotId property for this object.

Parameters:
sourceSnapshotId - The new value for the SourceSnapshotId property for this object.

withSourceSnapshotId

public CopySnapshotRequest withSourceSnapshotId(String sourceSnapshotId)
Sets the value of the SourceSnapshotId property for this object.

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

Parameters:
sourceSnapshotId - The new value for the SourceSnapshotId property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public String getDescription()
Returns the value of the Description property for this object.

Returns:
The value of the Description property for this object.

setDescription

public void setDescription(String description)
Sets the value of the Description property for this object.

Parameters:
description - The new value for the Description property for this object.

withDescription

public CopySnapshotRequest withDescription(String description)
Sets the value of the Description property for this object.

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

Parameters:
description - The new value for the Description property for this object.
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 © 2010 Amazon Web Services, Inc. All Rights Reserved.