public class GlacierJobDescription extends Object implements Serializable
Describes an Amazon Glacier job.
Constructor and Description |
---|
GlacierJobDescription() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAction()
The job type.
|
String |
getArchiveId()
For an ArchiveRetrieval job, this is the archive ID requested for
download.
|
String |
getArchiveSHA256TreeHash()
The SHA256 tree hash of the entire archive for an archive retrieval.
|
Long |
getArchiveSizeInBytes()
For an ArchiveRetrieval job, this is the size in bytes of the archive
being requested for download.
|
Boolean |
getCompleted()
The job status.
|
String |
getCompletionDate()
The UTC time that the archive retrieval request completed.
|
String |
getCreationDate()
The UTC date when the job was created.
|
InventoryRetrievalJobDescription |
getInventoryRetrievalParameters()
Parameters used for range inventory retrieval.
|
Long |
getInventorySizeInBytes()
For an InventoryRetrieval job, this is the size in bytes of the
inventory requested for download.
|
String |
getJobDescription()
The job description you provided when you initiated the job.
|
String |
getJobId()
An opaque string that identifies an Amazon Glacier job.
|
String |
getRetrievalByteRange()
The retrieved byte range for archive retrieval jobs in the form
"StartByteValue-EndByteValue" If no range was specified
in the archive retrieval, then the whole archive is retrieved and
StartByteValue equals 0 and EndByteValue equals the size
of the archive minus 1.
|
String |
getSHA256TreeHash()
For an ArchiveRetrieval job, it is the checksum of the archive.
|
String |
getSNSTopic()
An Amazon Simple Notification Service (Amazon SNS) topic that receives
notification.
|
String |
getStatusCode()
The status code can be InProgress, Succeeded, or Failed, and indicates
the status of the job.
|
String |
getStatusMessage()
A friendly message that describes the job status.
|
String |
getVaultARN()
The Amazon Resource Name (ARN) of the vault from which the archive
retrieval was requested.
|
int |
hashCode() |
Boolean |
isCompleted()
The job status.
|
void |
setAction(ActionCode action)
The job type.
|
void |
setAction(String action)
The job type.
|
void |
setArchiveId(String archiveId)
For an ArchiveRetrieval job, this is the archive ID requested for
download.
|
void |
setArchiveSHA256TreeHash(String archiveSHA256TreeHash)
The SHA256 tree hash of the entire archive for an archive retrieval.
|
void |
setArchiveSizeInBytes(Long archiveSizeInBytes)
For an ArchiveRetrieval job, this is the size in bytes of the archive
being requested for download.
|
void |
setCompleted(Boolean completed)
The job status.
|
void |
setCompletionDate(String completionDate)
The UTC time that the archive retrieval request completed.
|
void |
setCreationDate(String creationDate)
The UTC date when the job was created.
|
void |
setInventoryRetrievalParameters(InventoryRetrievalJobDescription inventoryRetrievalParameters)
Parameters used for range inventory retrieval.
|
void |
setInventorySizeInBytes(Long inventorySizeInBytes)
For an InventoryRetrieval job, this is the size in bytes of the
inventory requested for download.
|
void |
setJobDescription(String jobDescription)
The job description you provided when you initiated the job.
|
void |
setJobId(String jobId)
An opaque string that identifies an Amazon Glacier job.
|
void |
setRetrievalByteRange(String retrievalByteRange)
The retrieved byte range for archive retrieval jobs in the form
"StartByteValue-EndByteValue" If no range was specified
in the archive retrieval, then the whole archive is retrieved and
StartByteValue equals 0 and EndByteValue equals the size
of the archive minus 1.
|
void |
setSHA256TreeHash(String sHA256TreeHash)
For an ArchiveRetrieval job, it is the checksum of the archive.
|
void |
setSNSTopic(String sNSTopic)
An Amazon Simple Notification Service (Amazon SNS) topic that receives
notification.
|
void |
setStatusCode(StatusCode statusCode)
The status code can be InProgress, Succeeded, or Failed, and indicates
the status of the job.
|
void |
setStatusCode(String statusCode)
The status code can be InProgress, Succeeded, or Failed, and indicates
the status of the job.
|
void |
setStatusMessage(String statusMessage)
A friendly message that describes the job status.
|
void |
setVaultARN(String vaultARN)
The Amazon Resource Name (ARN) of the vault from which the archive
retrieval was requested.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GlacierJobDescription |
withAction(ActionCode action)
The job type.
|
GlacierJobDescription |
withAction(String action)
The job type.
|
GlacierJobDescription |
withArchiveId(String archiveId)
For an ArchiveRetrieval job, this is the archive ID requested for
download.
|
GlacierJobDescription |
withArchiveSHA256TreeHash(String archiveSHA256TreeHash)
The SHA256 tree hash of the entire archive for an archive retrieval.
|
GlacierJobDescription |
withArchiveSizeInBytes(Long archiveSizeInBytes)
For an ArchiveRetrieval job, this is the size in bytes of the archive
being requested for download.
|
GlacierJobDescription |
withCompleted(Boolean completed)
The job status.
|
GlacierJobDescription |
withCompletionDate(String completionDate)
The UTC time that the archive retrieval request completed.
|
GlacierJobDescription |
withCreationDate(String creationDate)
The UTC date when the job was created.
|
GlacierJobDescription |
withInventoryRetrievalParameters(InventoryRetrievalJobDescription inventoryRetrievalParameters)
Parameters used for range inventory retrieval.
|
GlacierJobDescription |
withInventorySizeInBytes(Long inventorySizeInBytes)
For an InventoryRetrieval job, this is the size in bytes of the
inventory requested for download.
|
GlacierJobDescription |
withJobDescription(String jobDescription)
The job description you provided when you initiated the job.
|
GlacierJobDescription |
withJobId(String jobId)
An opaque string that identifies an Amazon Glacier job.
|
GlacierJobDescription |
withRetrievalByteRange(String retrievalByteRange)
The retrieved byte range for archive retrieval jobs in the form
"StartByteValue-EndByteValue" If no range was specified
in the archive retrieval, then the whole archive is retrieved and
StartByteValue equals 0 and EndByteValue equals the size
of the archive minus 1.
|
GlacierJobDescription |
withSHA256TreeHash(String sHA256TreeHash)
For an ArchiveRetrieval job, it is the checksum of the archive.
|
GlacierJobDescription |
withSNSTopic(String sNSTopic)
An Amazon Simple Notification Service (Amazon SNS) topic that receives
notification.
|
GlacierJobDescription |
withStatusCode(StatusCode statusCode)
The status code can be InProgress, Succeeded, or Failed, and indicates
the status of the job.
|
GlacierJobDescription |
withStatusCode(String statusCode)
The status code can be InProgress, Succeeded, or Failed, and indicates
the status of the job.
|
GlacierJobDescription |
withStatusMessage(String statusMessage)
A friendly message that describes the job status.
|
GlacierJobDescription |
withVaultARN(String vaultARN)
The Amazon Resource Name (ARN) of the vault from which the archive
retrieval was requested.
|
public String getJobId()
public void setJobId(String jobId)
jobId
- An opaque string that identifies an Amazon Glacier job.public GlacierJobDescription withJobId(String jobId)
Returns a reference to this object so that method calls can be chained together.
jobId
- An opaque string that identifies an Amazon Glacier job.public String getJobDescription()
public void setJobDescription(String jobDescription)
jobDescription
- The job description you provided when you initiated the job.public GlacierJobDescription withJobDescription(String jobDescription)
Returns a reference to this object so that method calls can be chained together.
jobDescription
- The job description you provided when you initiated the job.public String getAction()
Constraints:
Allowed Values: ArchiveRetrieval, InventoryRetrieval
ActionCode
public void setAction(String action)
Constraints:
Allowed Values: ArchiveRetrieval, InventoryRetrieval
action
- The job type. It is either ArchiveRetrieval or InventoryRetrieval.ActionCode
public GlacierJobDescription withAction(String action)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ArchiveRetrieval, InventoryRetrieval
action
- The job type. It is either ArchiveRetrieval or InventoryRetrieval.ActionCode
public void setAction(ActionCode action)
Constraints:
Allowed Values: ArchiveRetrieval, InventoryRetrieval
action
- The job type. It is either ArchiveRetrieval or InventoryRetrieval.ActionCode
public GlacierJobDescription withAction(ActionCode action)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ArchiveRetrieval, InventoryRetrieval
action
- The job type. It is either ArchiveRetrieval or InventoryRetrieval.ActionCode
public String getArchiveId()
public void setArchiveId(String archiveId)
archiveId
- For an ArchiveRetrieval job, this is the archive ID requested for
download. Otherwise, this field is null.public GlacierJobDescription withArchiveId(String archiveId)
Returns a reference to this object so that method calls can be chained together.
archiveId
- For an ArchiveRetrieval job, this is the archive ID requested for
download. Otherwise, this field is null.public String getVaultARN()
public void setVaultARN(String vaultARN)
vaultARN
- The Amazon Resource Name (ARN) of the vault from which the archive
retrieval was requested.public GlacierJobDescription withVaultARN(String vaultARN)
Returns a reference to this object so that method calls can be chained together.
vaultARN
- The Amazon Resource Name (ARN) of the vault from which the archive
retrieval was requested.public String getCreationDate()
public void setCreationDate(String creationDate)
creationDate
- The UTC date when the job was created. A string representation of ISO
8601 date format, for example, "2012-03-20T17:03:43.221Z".public GlacierJobDescription withCreationDate(String creationDate)
Returns a reference to this object so that method calls can be chained together.
creationDate
- The UTC date when the job was created. A string representation of ISO
8601 date format, for example, "2012-03-20T17:03:43.221Z".public Boolean isCompleted()
public void setCompleted(Boolean completed)
completed
- The job status. When a job is completed, you get the job's output.public GlacierJobDescription withCompleted(Boolean completed)
Returns a reference to this object so that method calls can be chained together.
completed
- The job status. When a job is completed, you get the job's output.public Boolean getCompleted()
public String getStatusCode()
Constraints:
Allowed Values: InProgress, Succeeded, Failed
StatusCode
public void setStatusCode(String statusCode)
Constraints:
Allowed Values: InProgress, Succeeded, Failed
statusCode
- The status code can be InProgress, Succeeded, or Failed, and indicates
the status of the job.StatusCode
public GlacierJobDescription withStatusCode(String statusCode)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: InProgress, Succeeded, Failed
statusCode
- The status code can be InProgress, Succeeded, or Failed, and indicates
the status of the job.StatusCode
public void setStatusCode(StatusCode statusCode)
Constraints:
Allowed Values: InProgress, Succeeded, Failed
statusCode
- The status code can be InProgress, Succeeded, or Failed, and indicates
the status of the job.StatusCode
public GlacierJobDescription withStatusCode(StatusCode statusCode)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: InProgress, Succeeded, Failed
statusCode
- The status code can be InProgress, Succeeded, or Failed, and indicates
the status of the job.StatusCode
public String getStatusMessage()
public void setStatusMessage(String statusMessage)
statusMessage
- A friendly message that describes the job status.public GlacierJobDescription withStatusMessage(String statusMessage)
Returns a reference to this object so that method calls can be chained together.
statusMessage
- A friendly message that describes the job status.public Long getArchiveSizeInBytes()
public void setArchiveSizeInBytes(Long archiveSizeInBytes)
archiveSizeInBytes
- For an ArchiveRetrieval job, this is the size in bytes of the archive
being requested for download. For the InventoryRetrieval job, the
value is null.public GlacierJobDescription withArchiveSizeInBytes(Long archiveSizeInBytes)
Returns a reference to this object so that method calls can be chained together.
archiveSizeInBytes
- For an ArchiveRetrieval job, this is the size in bytes of the archive
being requested for download. For the InventoryRetrieval job, the
value is null.public Long getInventorySizeInBytes()
public void setInventorySizeInBytes(Long inventorySizeInBytes)
inventorySizeInBytes
- For an InventoryRetrieval job, this is the size in bytes of the
inventory requested for download. For the ArchiveRetrieval job, the
value is null.public GlacierJobDescription withInventorySizeInBytes(Long inventorySizeInBytes)
Returns a reference to this object so that method calls can be chained together.
inventorySizeInBytes
- For an InventoryRetrieval job, this is the size in bytes of the
inventory requested for download. For the ArchiveRetrieval job, the
value is null.public String getSNSTopic()
public void setSNSTopic(String sNSTopic)
sNSTopic
- An Amazon Simple Notification Service (Amazon SNS) topic that receives
notification.public GlacierJobDescription withSNSTopic(String sNSTopic)
Returns a reference to this object so that method calls can be chained together.
sNSTopic
- An Amazon Simple Notification Service (Amazon SNS) topic that receives
notification.public String getCompletionDate()
public void setCompletionDate(String completionDate)
completionDate
- The UTC time that the archive retrieval request completed. While the
job is in progress, the value will be null.public GlacierJobDescription withCompletionDate(String completionDate)
Returns a reference to this object so that method calls can be chained together.
completionDate
- The UTC time that the archive retrieval request completed. While the
job is in progress, the value will be null.public String getSHA256TreeHash()
The SHA256 tree hash value for the requested range of an archive. If the Initiate a Job request for an archive specified a tree-hash aligned range, then this field returns a value.
For the specific case when the whole archive is retrieved, this value is the same as the ArchiveSHA256TreeHash value.
This field is null in the following situations:
Archive retrieval jobs that specify a range that is not tree-hash aligned.
Archival jobs that specify a range that is equal to the whole archive and the job status is InProgress.
Inventory jobs.
The SHA256 tree hash value for the requested range of an archive. If the Initiate a Job request for an archive specified a tree-hash aligned range, then this field returns a value.
For the specific case when the whole archive is retrieved, this value is the same as the ArchiveSHA256TreeHash value.
This field is null in the following situations:
Archive retrieval jobs that specify a range that is not tree-hash aligned.
Archival jobs that specify a range that is equal to the whole archive and the job status is InProgress.
Inventory jobs.
public void setSHA256TreeHash(String sHA256TreeHash)
The SHA256 tree hash value for the requested range of an archive. If the Initiate a Job request for an archive specified a tree-hash aligned range, then this field returns a value.
For the specific case when the whole archive is retrieved, this value is the same as the ArchiveSHA256TreeHash value.
This field is null in the following situations:
Archive retrieval jobs that specify a range that is not tree-hash aligned.
Archival jobs that specify a range that is equal to the whole archive and the job status is InProgress.
Inventory jobs.
sHA256TreeHash
- For an ArchiveRetrieval job, it is the checksum of the archive.
Otherwise, the value is null. The SHA256 tree hash value for the requested range of an archive. If the Initiate a Job request for an archive specified a tree-hash aligned range, then this field returns a value.
For the specific case when the whole archive is retrieved, this value is the same as the ArchiveSHA256TreeHash value.
This field is null in the following situations:
Archive retrieval jobs that specify a range that is not tree-hash aligned.
Archival jobs that specify a range that is equal to the whole archive and the job status is InProgress.
Inventory jobs.
public GlacierJobDescription withSHA256TreeHash(String sHA256TreeHash)
The SHA256 tree hash value for the requested range of an archive. If the Initiate a Job request for an archive specified a tree-hash aligned range, then this field returns a value.
For the specific case when the whole archive is retrieved, this value is the same as the ArchiveSHA256TreeHash value.
This field is null in the following situations:
Archive retrieval jobs that specify a range that is not tree-hash aligned.
Archival jobs that specify a range that is equal to the whole archive and the job status is InProgress.
Inventory jobs.
Returns a reference to this object so that method calls can be chained together.
sHA256TreeHash
- For an ArchiveRetrieval job, it is the checksum of the archive.
Otherwise, the value is null. The SHA256 tree hash value for the requested range of an archive. If the Initiate a Job request for an archive specified a tree-hash aligned range, then this field returns a value.
For the specific case when the whole archive is retrieved, this value is the same as the ArchiveSHA256TreeHash value.
This field is null in the following situations:
Archive retrieval jobs that specify a range that is not tree-hash aligned.
Archival jobs that specify a range that is equal to the whole archive and the job status is InProgress.
Inventory jobs.
public String getArchiveSHA256TreeHash()
public void setArchiveSHA256TreeHash(String archiveSHA256TreeHash)
archiveSHA256TreeHash
- The SHA256 tree hash of the entire archive for an archive retrieval.
For inventory retrieval jobs, this field is null.public GlacierJobDescription withArchiveSHA256TreeHash(String archiveSHA256TreeHash)
Returns a reference to this object so that method calls can be chained together.
archiveSHA256TreeHash
- The SHA256 tree hash of the entire archive for an archive retrieval.
For inventory retrieval jobs, this field is null.public String getRetrievalByteRange()
public void setRetrievalByteRange(String retrievalByteRange)
retrievalByteRange
- The retrieved byte range for archive retrieval jobs in the form
"StartByteValue-EndByteValue" If no range was specified
in the archive retrieval, then the whole archive is retrieved and
StartByteValue equals 0 and EndByteValue equals the size
of the archive minus 1. For inventory retrieval jobs this field is
null.public GlacierJobDescription withRetrievalByteRange(String retrievalByteRange)
Returns a reference to this object so that method calls can be chained together.
retrievalByteRange
- The retrieved byte range for archive retrieval jobs in the form
"StartByteValue-EndByteValue" If no range was specified
in the archive retrieval, then the whole archive is retrieved and
StartByteValue equals 0 and EndByteValue equals the size
of the archive minus 1. For inventory retrieval jobs this field is
null.public InventoryRetrievalJobDescription getInventoryRetrievalParameters()
public void setInventoryRetrievalParameters(InventoryRetrievalJobDescription inventoryRetrievalParameters)
inventoryRetrievalParameters
- Parameters used for range inventory retrieval.public GlacierJobDescription withInventoryRetrievalParameters(InventoryRetrievalJobDescription inventoryRetrievalParameters)
Returns a reference to this object so that method calls can be chained together.
inventoryRetrievalParameters
- Parameters used for range inventory retrieval.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.