@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UploadMultipartPartRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Provides options to upload a part of an archive in a multipart upload operation.
NOOP
Constructor and Description |
---|
UploadMultipartPartRequest()
Default constructor for UploadMultipartPartRequest object.
|
UploadMultipartPartRequest(String vaultName,
String uploadId,
String checksum,
String range,
InputStream body)
Constructs a new UploadMultipartPartRequest object.
|
UploadMultipartPartRequest(String accountId,
String vaultName,
String uploadId,
String checksum,
String range,
InputStream body)
Constructs a new UploadMultipartPartRequest object.
|
Modifier and Type | Method and Description |
---|---|
UploadMultipartPartRequest |
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. |
InputStream |
getBody()
The data to upload.
|
String |
getChecksum()
The SHA256 tree hash of the data being uploaded.
|
String |
getRange()
Identifies the range of bytes in the assembled archive that will be uploaded in this part.
|
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 |
setBody(InputStream body)
The data to upload.
|
void |
setChecksum(String checksum)
The SHA256 tree hash of the data being uploaded.
|
void |
setRange(String range)
Identifies the range of bytes in the assembled archive that will be uploaded in this part.
|
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.
|
UploadMultipartPartRequest |
withAccountId(String accountId)
The
AccountId value is the AWS account ID of the account that owns the vault. |
UploadMultipartPartRequest |
withBody(InputStream body)
The data to upload.
|
UploadMultipartPartRequest |
withChecksum(String checksum)
The SHA256 tree hash of the data being uploaded.
|
UploadMultipartPartRequest |
withRange(String range)
Identifies the range of bytes in the assembled archive that will be uploaded in this part.
|
UploadMultipartPartRequest |
withUploadId(String uploadId)
The upload ID of the multipart upload.
|
UploadMultipartPartRequest |
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 UploadMultipartPartRequest()
public UploadMultipartPartRequest(String vaultName, String uploadId, String checksum, String range, 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(String accountId, String vaultName, String uploadId, String checksum, String range, 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 '-
' (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.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(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 UploadMultipartPartRequest 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 UploadMultipartPartRequest 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 UploadMultipartPartRequest withUploadId(String uploadId)
The upload ID of the multipart upload.
uploadId
- The upload ID of the multipart upload.public void setChecksum(String checksum)
The SHA256 tree hash of the data being uploaded.
checksum
- The SHA256 tree hash of the data being uploaded.public String getChecksum()
The SHA256 tree hash of the data being uploaded.
public UploadMultipartPartRequest withChecksum(String checksum)
The SHA256 tree hash of the data being uploaded.
checksum
- The SHA256 tree hash of the data being uploaded.public void setRange(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 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(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(InputStream body)
The data to upload.
body
- The data to upload.public InputStream getBody()
The data to upload.
public UploadMultipartPartRequest withBody(InputStream body)
The data to upload.
body
- The data to upload.public String toString()
toString
in class Object
Object.toString()
public UploadMultipartPartRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.