Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.glacier.model
Class UploadMultipartPartRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.glacier.model.UploadMultipartPartRequest
All Implemented Interfaces:
java.io.Serializable

public class UploadMultipartPartRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the UploadMultipartPart operation.

This operation uploads a part of an archive. You can upload archive parts in any order. You can also upload them in parallel. You can upload up to 10,000 parts for a multipart upload.

Amazon Glacier rejects your upload part request if any of the following conditions is true:

This operation is idempotent. If you upload the same part multiple times, the data included in the most recent request overwrites the previously uploaded data.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM) .

For conceptual information and underlying REST API, go to Uploading Large Archives in Parts (Multipart Upload) and Upload Part in the Amazon Glacier Developer Guide .

See Also:
AmazonGlacier.uploadMultipartPart(UploadMultipartPartRequest), Serialized Form

Constructor Summary
UploadMultipartPartRequest()
          Default constructor for a new UploadMultipartPartRequest object.
UploadMultipartPartRequest(java.lang.String vaultName, java.lang.String uploadId, java.lang.String checksum, java.lang.String range, java.io.InputStream body)
          Constructs a new UploadMultipartPartRequest object.
UploadMultipartPartRequest(java.lang.String accountId, java.lang.String vaultName, java.lang.String uploadId, java.lang.String checksum, java.lang.String range, java.io.InputStream body)
          Constructs a new UploadMultipartPartRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAccountId()
          The AccountId is the AWS Account ID.
 java.io.InputStream getBody()
          The data to upload.
 java.lang.String getChecksum()
          The SHA256 tree hash of the data being uploaded.
 java.lang.String getRange()
          Identifies the range of bytes in the assembled archive that will be uploaded in this part.
 java.lang.String getUploadId()
          The upload ID of the multipart upload.
 java.lang.String getVaultName()
          The name of the vault.
 int hashCode()
           
 void setAccountId(java.lang.String accountId)
          The AccountId is the AWS Account ID.
 void setBody(java.io.InputStream body)
          The data to upload.
 void setChecksum(java.lang.String checksum)
          The SHA256 tree hash of the data being uploaded.
 void setRange(java.lang.String range)
          Identifies the range of bytes in the assembled archive that will be uploaded in this part.
 void setUploadId(java.lang.String uploadId)
          The upload ID of the multipart upload.
 void setVaultName(java.lang.String vaultName)
          The name of the vault.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 UploadMultipartPartRequest withAccountId(java.lang.String accountId)
          The AccountId is the AWS Account ID.
 UploadMultipartPartRequest withBody(java.io.InputStream body)
          The data to upload.
 UploadMultipartPartRequest withChecksum(java.lang.String checksum)
          The SHA256 tree hash of the data being uploaded.
 UploadMultipartPartRequest withRange(java.lang.String range)
          Identifies the range of bytes in the assembled archive that will be uploaded in this part.
 UploadMultipartPartRequest withUploadId(java.lang.String uploadId)
          The upload ID of the multipart upload.
 UploadMultipartPartRequest withVaultName(java.lang.String vaultName)
          The name of the vault.
 
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

UploadMultipartPartRequest

public UploadMultipartPartRequest()
Default constructor for a new UploadMultipartPartRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


UploadMultipartPartRequest

public UploadMultipartPartRequest(java.lang.String vaultName,
                                  java.lang.String uploadId,
                                  java.lang.String checksum,
                                  java.lang.String range,
                                  java.io.InputStream body)
Constructs a new UploadMultipartPartRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
vaultName - The name of the vault.
uploadId - The upload ID of the multipart upload.
checksum - The SHA256 tree hash of the data being uploaded.
range - Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.
body - The data to upload.

UploadMultipartPartRequest

public UploadMultipartPartRequest(java.lang.String accountId,
                                  java.lang.String vaultName,
                                  java.lang.String uploadId,
                                  java.lang.String checksum,
                                  java.lang.String range,
                                  java.io.InputStream body)
Constructs a new UploadMultipartPartRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
accountId - The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
vaultName - The name of the vault.
uploadId - The upload ID of the multipart upload.
checksum - The SHA256 tree hash of the data being uploaded.
range - Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.
body - The data to upload.
Method Detail

getAccountId

public java.lang.String getAccountId()
The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.

Returns:
The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.

setAccountId

public void setAccountId(java.lang.String accountId)
The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.

Parameters:
accountId - The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.

withAccountId

public UploadMultipartPartRequest withAccountId(java.lang.String accountId)
The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.

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

Parameters:
accountId - The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
Returns:
A reference to this updated object so that method calls can be chained together.

getVaultName

public java.lang.String getVaultName()
The name of the vault.

Returns:
The name of the vault.

setVaultName

public void setVaultName(java.lang.String vaultName)
The name of the vault.

Parameters:
vaultName - The name of the vault.

withVaultName

public UploadMultipartPartRequest withVaultName(java.lang.String vaultName)
The name of the vault.

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

Parameters:
vaultName - The name of the vault.
Returns:
A reference to this updated object so that method calls can be chained together.

getUploadId

public java.lang.String getUploadId()
The upload ID of the multipart upload.

Returns:
The upload ID of the multipart upload.

setUploadId

public void setUploadId(java.lang.String uploadId)
The upload ID of the multipart upload.

Parameters:
uploadId - The upload ID of the multipart upload.

withUploadId

public UploadMultipartPartRequest withUploadId(java.lang.String uploadId)
The upload ID of the multipart upload.

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

Parameters:
uploadId - The upload ID of the multipart upload.
Returns:
A reference to this updated object so that method calls can be chained together.

getChecksum

public java.lang.String getChecksum()
The SHA256 tree hash of the data being uploaded.

Returns:
The SHA256 tree hash of the data being uploaded.

setChecksum

public void setChecksum(java.lang.String checksum)
The SHA256 tree hash of the data being uploaded.

Parameters:
checksum - The SHA256 tree hash of the data being uploaded.

withChecksum

public UploadMultipartPartRequest withChecksum(java.lang.String checksum)
The SHA256 tree hash of the data being uploaded.

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

Parameters:
checksum - The SHA256 tree hash of the data being uploaded.
Returns:
A reference to this updated object so that method calls can be chained together.

getRange

public java.lang.String getRange()
Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.

Returns:
Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.

setRange

public void setRange(java.lang.String range)
Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.

Parameters:
range - Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.

withRange

public UploadMultipartPartRequest withRange(java.lang.String range)
Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.

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

Parameters:
range - Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.
Returns:
A reference to this updated object so that method calls can be chained together.

getBody

public java.io.InputStream getBody()
The data to upload.

Returns:
The data to upload.

setBody

public void setBody(java.io.InputStream body)
The data to upload.

Parameters:
body - The data to upload.

withBody

public UploadMultipartPartRequest withBody(java.io.InputStream body)
The data to upload.

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

Parameters:
body - The data to upload.
Returns:
A reference to this updated object so that method calls can be chained together.

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.