@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CompleteMultipartUploadRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Provides options to complete a multipart upload operation. This informs Amazon Glacier that all the archive parts have been uploaded and Amazon Glacier can now assemble the archive from the uploaded parts. After assembling and saving the archive to the vault, Amazon Glacier returns the URI path of the newly created archive resource.
NOOP
Constructor and Description |
---|
CompleteMultipartUploadRequest()
Default constructor for CompleteMultipartUploadRequest object.
|
CompleteMultipartUploadRequest(String vaultName,
String uploadId,
String archiveSize,
String checksum)
Constructs a new CompleteMultipartUploadRequest object.
|
CompleteMultipartUploadRequest(String accountId,
String vaultName,
String uploadId,
String archiveSize,
String checksum)
Constructs a new CompleteMultipartUploadRequest object.
|
Modifier and Type | Method and Description |
---|---|
CompleteMultipartUploadRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAccountId()
The
AccountId value is the AWS account ID of the account that owns the vault. |
String |
getArchiveSize()
The total size, in bytes, of the entire archive.
|
String |
getChecksum()
The SHA256 tree hash of the entire archive.
|
String |
getUploadId()
The upload ID of the multipart upload.
|
String |
getVaultName()
The name of the vault.
|
int |
hashCode() |
void |
setAccountId(String accountId)
The
AccountId value is the AWS account ID of the account that owns the vault. |
void |
setArchiveSize(String archiveSize)
The total size, in bytes, of the entire archive.
|
void |
setChecksum(String checksum)
The SHA256 tree hash of the entire archive.
|
void |
setUploadId(String uploadId)
The upload ID of the multipart upload.
|
void |
setVaultName(String vaultName)
The name of the vault.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CompleteMultipartUploadRequest |
withAccountId(String accountId)
The
AccountId value is the AWS account ID of the account that owns the vault. |
CompleteMultipartUploadRequest |
withArchiveSize(String archiveSize)
The total size, in bytes, of the entire archive.
|
CompleteMultipartUploadRequest |
withChecksum(String checksum)
The SHA256 tree hash of the entire archive.
|
CompleteMultipartUploadRequest |
withUploadId(String uploadId)
The upload ID of the multipart upload.
|
CompleteMultipartUploadRequest |
withVaultName(String vaultName)
The name of the vault.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public CompleteMultipartUploadRequest()
public CompleteMultipartUploadRequest(String vaultName, String uploadId, String archiveSize, String checksum)
vaultName
- The name of the vault.uploadId
- The upload ID of the multipart upload.archiveSize
- The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the
individual parts that you uploaded.checksum
- The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual
parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled
archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.public CompleteMultipartUploadRequest(String accountId, String vaultName, String uploadId, String archiveSize, String checksum)
accountId
- The AccountId
value is the AWS account ID of the account that owns the vault. You can either
specify an AWS account ID or optionally a single '-
' (hyphen), in which case Amazon Glacier
uses the AWS account ID associated with the credentials used to sign the request. If you use an account
ID, do not include any hyphens ('-') in the ID.vaultName
- The name of the vault.uploadId
- The upload ID of the multipart upload.archiveSize
- The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the
individual parts that you uploaded.checksum
- The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual
parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled
archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.public void setAccountId(String accountId)
The AccountId
value is the AWS account ID of the account that owns the vault. You can either specify
an AWS account ID or optionally a single '-
' (hyphen), in which case Amazon Glacier uses the AWS
account ID associated with the credentials used to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.
accountId
- The AccountId
value is the AWS account ID of the account that owns the vault. You can either
specify an AWS account ID or optionally a single '-
' (hyphen), in which case Amazon Glacier
uses the AWS account ID associated with the credentials used to sign the request. If you use an account
ID, do not include any hyphens ('-') in the ID.public String getAccountId()
The AccountId
value is the AWS account ID of the account that owns the vault. You can either specify
an AWS account ID or optionally a single '-
' (hyphen), in which case Amazon Glacier uses the AWS
account ID associated with the credentials used to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.
AccountId
value is the AWS account ID of the account that owns the vault. You can either
specify an AWS account ID or optionally a single '-
' (hyphen), in which case Amazon Glacier
uses the AWS account ID associated with the credentials used to sign the request. If you use an account
ID, do not include any hyphens ('-') in the ID.public CompleteMultipartUploadRequest withAccountId(String accountId)
The AccountId
value is the AWS account ID of the account that owns the vault. You can either specify
an AWS account ID or optionally a single '-
' (hyphen), in which case Amazon Glacier uses the AWS
account ID associated with the credentials used to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.
accountId
- The AccountId
value is the AWS account ID of the account that owns the vault. You can either
specify an AWS account ID or optionally a single '-
' (hyphen), in which case Amazon Glacier
uses the AWS account ID associated with the credentials used to sign the request. If you use an account
ID, do not include any hyphens ('-') in the ID.public void setVaultName(String vaultName)
The name of the vault.
vaultName
- The name of the vault.public String getVaultName()
The name of the vault.
public CompleteMultipartUploadRequest withVaultName(String vaultName)
The name of the vault.
vaultName
- The name of the vault.public void setUploadId(String uploadId)
The upload ID of the multipart upload.
uploadId
- The upload ID of the multipart upload.public String getUploadId()
The upload ID of the multipart upload.
public CompleteMultipartUploadRequest withUploadId(String uploadId)
The upload ID of the multipart upload.
uploadId
- The upload ID of the multipart upload.public void setArchiveSize(String archiveSize)
The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the individual parts that you uploaded.
archiveSize
- The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the
individual parts that you uploaded.public String getArchiveSize()
The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the individual parts that you uploaded.
public CompleteMultipartUploadRequest withArchiveSize(String archiveSize)
The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the individual parts that you uploaded.
archiveSize
- The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the
individual parts that you uploaded.public void setChecksum(String checksum)
The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.
checksum
- The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual
parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled
archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.public String getChecksum()
The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.
public CompleteMultipartUploadRequest withChecksum(String checksum)
The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.
checksum
- The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual
parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled
archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.public String toString()
toString
in class Object
Object.toString()
public CompleteMultipartUploadRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.