@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UploadArchiveRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Provides options to add an archive to a vault.
NOOP
Constructor and Description |
---|
UploadArchiveRequest()
Default constructor for UploadArchiveRequest object.
|
UploadArchiveRequest(String vaultName,
String archiveDescription,
String checksum,
InputStream body)
Constructs a new UploadArchiveRequest object.
|
UploadArchiveRequest(String vaultName,
String accountId,
String archiveDescription,
String checksum,
InputStream body)
Constructs a new UploadArchiveRequest object.
|
Modifier and Type | Method and Description |
---|---|
UploadArchiveRequest |
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 |
getArchiveDescription()
The optional description of the archive you are uploading.
|
InputStream |
getBody()
The data to upload.
|
String |
getChecksum()
The SHA256 tree hash of the data being uploaded.
|
Long |
getContentLength()
The content length of the archive to 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 |
setArchiveDescription(String archiveDescription)
The optional description of the archive you are uploading.
|
void |
setBody(InputStream body)
The data to upload.
|
void |
setChecksum(String checksum)
The SHA256 tree hash of the data being uploaded.
|
void |
setContentLength(Long contentLength)
The content length of the archive to upload.
|
void |
setVaultName(String vaultName)
The name of the vault.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
UploadArchiveRequest |
withAccountId(String accountId)
The
AccountId value is the AWS account ID of the account that owns the vault. |
UploadArchiveRequest |
withArchiveDescription(String archiveDescription)
The optional description of the archive you are uploading.
|
UploadArchiveRequest |
withBody(InputStream body)
The data to upload.
|
UploadArchiveRequest |
withChecksum(String checksum)
The SHA256 tree hash of the data being uploaded.
|
UploadArchiveRequest |
withContentLength(Long contentLength)
The content length of the archive to upload.
|
UploadArchiveRequest |
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 UploadArchiveRequest()
public UploadArchiveRequest(String vaultName, String archiveDescription, String checksum, 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(String vaultName, String accountId, String archiveDescription, String checksum, 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 '-
' (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.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(String vaultName)
The name of the vault.
vaultName
- The name of the vault.public String getVaultName()
The name of the vault.
public UploadArchiveRequest withVaultName(String vaultName)
The name of the vault.
vaultName
- The name of the vault.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 UploadArchiveRequest 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 setArchiveDescription(String archiveDescription)
The optional description of the archive you are uploading.
archiveDescription
- The optional description of the archive you are uploading.public String getArchiveDescription()
The optional description of the archive you are uploading.
public UploadArchiveRequest withArchiveDescription(String archiveDescription)
The optional description of the archive you are uploading.
archiveDescription
- The optional description of the archive you are uploading.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 UploadArchiveRequest withChecksum(String checksum)
The SHA256 tree hash of the data being uploaded.
checksum
- The SHA256 tree hash of the data being uploaded.public void setBody(InputStream body)
The data to upload.
body
- The data to upload.public InputStream getBody()
The data to upload.
public UploadArchiveRequest withBody(InputStream body)
The data to upload.
body
- The data to upload.public void setContentLength(Long contentLength)
contentLength
- The content length of the archive to upload.public Long getContentLength()
public UploadArchiveRequest withContentLength(Long contentLength)
contentLength
- The content length of the archive to upload.public String toString()
toString
in class Object
Object.toString()
public UploadArchiveRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.