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:
java.io.Serializable

public class CopySnapshotRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the CopySnapshot operation.

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

Constructor Summary
CopySnapshotRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          Returns the value of the Description property for this object.
 java.lang.String getSourceRegion()
          Returns the value of the SourceRegion property for this object.
 java.lang.String getSourceSnapshotId()
          Returns the value of the SourceSnapshotId property for this object.
 int hashCode()
           
 void setDescription(java.lang.String description)
          Sets the value of the Description property for this object.
 void setSourceRegion(java.lang.String sourceRegion)
          Sets the value of the SourceRegion property for this object.
 void setSourceSnapshotId(java.lang.String sourceSnapshotId)
          Sets the value of the SourceSnapshotId property for this object.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CopySnapshotRequest withDescription(java.lang.String description)
          Sets the value of the Description property for this object.
 CopySnapshotRequest withSourceRegion(java.lang.String sourceRegion)
          Sets the value of the SourceRegion property for this object.
 CopySnapshotRequest withSourceSnapshotId(java.lang.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 java.lang.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(java.lang.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(java.lang.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.

getSourceSnapshotId

public java.lang.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(java.lang.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(java.lang.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.

getDescription

public java.lang.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(java.lang.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(java.lang.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.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.