public class UploadMultipartPartRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Provides options to upload a part of an archive in a multipart upload operation.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
accountId
The
AccountId value is the AWS account ID of the account
that owns the vault. |
private java.io.InputStream |
body
The data to upload.
|
private java.lang.String |
checksum
The SHA256 tree hash of the data being uploaded.
|
private java.lang.String |
range
Identifies the range of bytes in the assembled archive that will be
uploaded in this part.
|
private java.lang.String |
uploadId
The upload ID of the multipart upload.
|
private java.lang.String |
vaultName
The name of the vault.
|
NOOP
Constructor and Description |
---|
UploadMultipartPartRequest()
Default constructor for 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.
|
Modifier and Type | Method and Description |
---|---|
UploadMultipartPartRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccountId()
The
AccountId value is the AWS account ID of the account
that owns the vault. |
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 value is the AWS account ID of the account
that owns the vault. |
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 value is the AWS account ID of the account
that owns the vault. |
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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.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 apos-
apos (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
(apos-apos) in the ID.
private java.lang.String vaultName
The name of the vault.
private java.lang.String uploadId
The upload ID of the multipart upload.
private java.lang.String checksum
The SHA256 tree hash of the data being uploaded.
private 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/*.
private java.io.InputStream body
The data to upload.
public UploadMultipartPartRequest()
public UploadMultipartPartRequest(java.lang.String vaultName, java.lang.String uploadId, java.lang.String checksum, java.lang.String range, java.io.InputStream body)
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.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)
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 apos-
apos (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 (apos-apos) in the ID.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.public void setAccountId(java.lang.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 apos-
apos (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
(apos-apos) 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 apos-
apos (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 (apos-apos) in the ID.public java.lang.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 apos-
apos (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
(apos-apos) 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 apos-
apos
(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 (apos-apos) in the
ID.public UploadMultipartPartRequest withAccountId(java.lang.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 apos-
apos (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
(apos-apos) 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 apos-
apos (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 (apos-apos) in the ID.public void setVaultName(java.lang.String vaultName)
The name of the vault.
vaultName
- The name of the vault.public java.lang.String getVaultName()
The name of the vault.
public UploadMultipartPartRequest withVaultName(java.lang.String vaultName)
The name of the vault.
vaultName
- The name of the vault.public void setUploadId(java.lang.String uploadId)
The upload ID of the multipart upload.
uploadId
- The upload ID of the multipart upload.public java.lang.String getUploadId()
The upload ID of the multipart upload.
public UploadMultipartPartRequest withUploadId(java.lang.String uploadId)
The upload ID of the multipart upload.
uploadId
- The upload ID of the multipart upload.public void setChecksum(java.lang.String checksum)
The SHA256 tree hash of the data being uploaded.
checksum
- The SHA256 tree hash of the data being uploaded.public java.lang.String getChecksum()
The SHA256 tree hash of the data being uploaded.
public UploadMultipartPartRequest withChecksum(java.lang.String checksum)
The SHA256 tree hash of the data being uploaded.
checksum
- The SHA256 tree hash of the data being uploaded.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/*.
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/*.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/*.
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/*.
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/*.public void setBody(java.io.InputStream body)
The data to upload.
body
- The data to upload.public java.io.InputStream getBody()
The data to upload.
public UploadMultipartPartRequest withBody(java.io.InputStream body)
The data to upload.
body
- The data to upload.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public UploadMultipartPartRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()