public class GetJobOutputResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the Amazon Glacier response to your request.
Constructor and Description |
---|
GetJobOutputResult() |
Modifier and Type | Method and Description |
---|---|
GetJobOutputResult |
clone() |
boolean |
equals(Object obj) |
String |
getAcceptRanges()
Indicates the range units accepted.
|
String |
getArchiveDescription()
The description of an archive.
|
InputStream |
getBody()
The job data, either archive data or inventory data.
|
String |
getChecksum()
The checksum of the data in the response.
|
String |
getContentRange()
The range of bytes returned by Amazon Glacier.
|
String |
getContentType()
The Content-Type depends on whether the job output is an archive or a vault inventory.
|
Integer |
getStatus()
The HTTP response code for a job output request.
|
int |
hashCode() |
void |
setAcceptRanges(String acceptRanges)
Indicates the range units accepted.
|
void |
setArchiveDescription(String archiveDescription)
The description of an archive.
|
void |
setBody(InputStream body)
The job data, either archive data or inventory data.
|
void |
setChecksum(String checksum)
The checksum of the data in the response.
|
void |
setContentRange(String contentRange)
The range of bytes returned by Amazon Glacier.
|
void |
setContentType(String contentType)
The Content-Type depends on whether the job output is an archive or a vault inventory.
|
void |
setStatus(Integer status)
The HTTP response code for a job output request.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetJobOutputResult |
withAcceptRanges(String acceptRanges)
Indicates the range units accepted.
|
GetJobOutputResult |
withArchiveDescription(String archiveDescription)
The description of an archive.
|
GetJobOutputResult |
withBody(InputStream body)
The job data, either archive data or inventory data.
|
GetJobOutputResult |
withChecksum(String checksum)
The checksum of the data in the response.
|
GetJobOutputResult |
withContentRange(String contentRange)
The range of bytes returned by Amazon Glacier.
|
GetJobOutputResult |
withContentType(String contentType)
The Content-Type depends on whether the job output is an archive or a vault inventory.
|
GetJobOutputResult |
withStatus(Integer status)
The HTTP response code for a job output request.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setBody(InputStream body)
The job data, either archive data or inventory data.
body
- The job data, either archive data or inventory data.public InputStream getBody()
The job data, either archive data or inventory data.
public GetJobOutputResult withBody(InputStream body)
The job data, either archive data or inventory data.
body
- The job data, either archive data or inventory data.public void setChecksum(String checksum)
The checksum of the data in the response. This header is returned only when retrieving the output for an archive retrieval job. Furthermore, this header appears only under the following conditions:
checksum
- The checksum of the data in the response. This header is returned only when retrieving the output for an
archive retrieval job. Furthermore, this header appears only under the following conditions:
public String getChecksum()
The checksum of the data in the response. This header is returned only when retrieving the output for an archive retrieval job. Furthermore, this header appears only under the following conditions:
public GetJobOutputResult withChecksum(String checksum)
The checksum of the data in the response. This header is returned only when retrieving the output for an archive retrieval job. Furthermore, this header appears only under the following conditions:
checksum
- The checksum of the data in the response. This header is returned only when retrieving the output for an
archive retrieval job. Furthermore, this header appears only under the following conditions:
public void setStatus(Integer status)
The HTTP response code for a job output request. The value depends on whether a range was specified in the request.
status
- The HTTP response code for a job output request. The value depends on whether a range was specified in the
request.public Integer getStatus()
The HTTP response code for a job output request. The value depends on whether a range was specified in the request.
public GetJobOutputResult withStatus(Integer status)
The HTTP response code for a job output request. The value depends on whether a range was specified in the request.
status
- The HTTP response code for a job output request. The value depends on whether a range was specified in the
request.public void setContentRange(String contentRange)
The range of bytes returned by Amazon Glacier. If only partial output is downloaded, the response provides the range of bytes Amazon Glacier returned. For example, bytes 0-1048575/8388608 returns the first 1 MB from 8 MB.
contentRange
- The range of bytes returned by Amazon Glacier. If only partial output is downloaded, the response provides
the range of bytes Amazon Glacier returned. For example, bytes 0-1048575/8388608 returns the first 1 MB
from 8 MB.public String getContentRange()
The range of bytes returned by Amazon Glacier. If only partial output is downloaded, the response provides the range of bytes Amazon Glacier returned. For example, bytes 0-1048575/8388608 returns the first 1 MB from 8 MB.
public GetJobOutputResult withContentRange(String contentRange)
The range of bytes returned by Amazon Glacier. If only partial output is downloaded, the response provides the range of bytes Amazon Glacier returned. For example, bytes 0-1048575/8388608 returns the first 1 MB from 8 MB.
contentRange
- The range of bytes returned by Amazon Glacier. If only partial output is downloaded, the response provides
the range of bytes Amazon Glacier returned. For example, bytes 0-1048575/8388608 returns the first 1 MB
from 8 MB.public void setAcceptRanges(String acceptRanges)
Indicates the range units accepted. For more information, go to RFC2616.
acceptRanges
- Indicates the range units accepted. For more information, go to RFC2616.public String getAcceptRanges()
Indicates the range units accepted. For more information, go to RFC2616.
public GetJobOutputResult withAcceptRanges(String acceptRanges)
Indicates the range units accepted. For more information, go to RFC2616.
acceptRanges
- Indicates the range units accepted. For more information, go to RFC2616.public void setContentType(String contentType)
The Content-Type depends on whether the job output is an archive or a vault inventory. For archive data, the Content-Type is application/octet-stream. For vault inventory, if you requested CSV format when you initiated the job, the Content-Type is text/csv. Otherwise, by default, vault inventory is returned as JSON, and the Content-Type is application/json.
contentType
- The Content-Type depends on whether the job output is an archive or a vault inventory. For archive data,
the Content-Type is application/octet-stream. For vault inventory, if you requested CSV format when you
initiated the job, the Content-Type is text/csv. Otherwise, by default, vault inventory is returned as
JSON, and the Content-Type is application/json.public String getContentType()
The Content-Type depends on whether the job output is an archive or a vault inventory. For archive data, the Content-Type is application/octet-stream. For vault inventory, if you requested CSV format when you initiated the job, the Content-Type is text/csv. Otherwise, by default, vault inventory is returned as JSON, and the Content-Type is application/json.
public GetJobOutputResult withContentType(String contentType)
The Content-Type depends on whether the job output is an archive or a vault inventory. For archive data, the Content-Type is application/octet-stream. For vault inventory, if you requested CSV format when you initiated the job, the Content-Type is text/csv. Otherwise, by default, vault inventory is returned as JSON, and the Content-Type is application/json.
contentType
- The Content-Type depends on whether the job output is an archive or a vault inventory. For archive data,
the Content-Type is application/octet-stream. For vault inventory, if you requested CSV format when you
initiated the job, the Content-Type is text/csv. Otherwise, by default, vault inventory is returned as
JSON, and the Content-Type is application/json.public void setArchiveDescription(String archiveDescription)
The description of an archive.
archiveDescription
- The description of an archive.public String getArchiveDescription()
The description of an archive.
public GetJobOutputResult withArchiveDescription(String archiveDescription)
The description of an archive.
archiveDescription
- The description of an archive.public String toString()
toString
in class Object
Object.toString()
public GetJobOutputResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.