public class UploadArchiveRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Provides options to add an archive to a vault.
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.lang.String |
archiveDescription
The optional description of the archive you are uploading.
|
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.Long |
contentLength
The content length of the archive to upload.
|
private java.lang.String |
vaultName
The name of the vault.
|
NOOP
Constructor and Description |
---|
UploadArchiveRequest()
Default constructor for UploadArchiveRequest object.
|
UploadArchiveRequest(java.lang.String vaultName,
java.lang.String archiveDescription,
java.lang.String checksum,
java.io.InputStream body)
Constructs a new UploadArchiveRequest object.
|
UploadArchiveRequest(java.lang.String vaultName,
java.lang.String accountId,
java.lang.String archiveDescription,
java.lang.String checksum,
java.io.InputStream body)
Constructs a new UploadArchiveRequest object.
|
Modifier and Type | Method and Description |
---|---|
UploadArchiveRequest |
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.lang.String |
getArchiveDescription()
The optional description of the archive you are uploading.
|
java.io.InputStream |
getBody()
The data to upload.
|
java.lang.String |
getChecksum()
The SHA256 tree hash of the data being uploaded.
|
java.lang.Long |
getContentLength()
The content length of the archive to 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 |
setArchiveDescription(java.lang.String archiveDescription)
The optional description of the archive you are uploading.
|
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 |
setContentLength(java.lang.Long contentLength)
The content length of the archive to 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.
|
UploadArchiveRequest |
withAccountId(java.lang.String accountId)
The
AccountId value is the AWS account ID of the account
that owns the vault. |
UploadArchiveRequest |
withArchiveDescription(java.lang.String archiveDescription)
The optional description of the archive you are uploading.
|
UploadArchiveRequest |
withBody(java.io.InputStream body)
The data to upload.
|
UploadArchiveRequest |
withChecksum(java.lang.String checksum)
The SHA256 tree hash of the data being uploaded.
|
UploadArchiveRequest |
withContentLength(java.lang.Long contentLength)
The content length of the archive to upload.
|
UploadArchiveRequest |
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 vaultName
The name of the vault.
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 archiveDescription
The optional description of the archive you are uploading.
private java.lang.String checksum
The SHA256 tree hash of the data being uploaded.
private java.io.InputStream body
The data to upload.
private java.lang.Long contentLength
public UploadArchiveRequest()
public UploadArchiveRequest(java.lang.String vaultName, java.lang.String archiveDescription, java.lang.String checksum, java.io.InputStream body)
vaultName
- The name of the vault.archiveDescription
- The optional description of the archive you are uploading.checksum
- The SHA256 tree hash of the data being uploaded.body
- The data to upload.public UploadArchiveRequest(java.lang.String vaultName, java.lang.String accountId, java.lang.String archiveDescription, java.lang.String checksum, java.io.InputStream body)
vaultName
- The name of the vault.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.archiveDescription
- The optional description of the archive you are uploading.checksum
- The SHA256 tree hash of the data being uploaded.body
- The data to upload.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 UploadArchiveRequest withVaultName(java.lang.String vaultName)
The name of the vault.
vaultName
- The name of the vault.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 UploadArchiveRequest 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 setArchiveDescription(java.lang.String archiveDescription)
The optional description of the archive you are uploading.
archiveDescription
- The optional description of the archive you are uploading.public java.lang.String getArchiveDescription()
The optional description of the archive you are uploading.
public UploadArchiveRequest withArchiveDescription(java.lang.String archiveDescription)
The optional description of the archive you are uploading.
archiveDescription
- The optional description of the archive you are uploading.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 UploadArchiveRequest 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 setBody(java.io.InputStream body)
The data to upload.
body
- The data to upload.public java.io.InputStream getBody()
The data to upload.
public UploadArchiveRequest withBody(java.io.InputStream body)
The data to upload.
body
- The data to upload.public void setContentLength(java.lang.Long contentLength)
contentLength
- The content length of the archive to upload.public java.lang.Long getContentLength()
public UploadArchiveRequest withContentLength(java.lang.Long contentLength)
contentLength
- The content length of the archive 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 UploadArchiveRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()