@Generated(value="software.amazon.awssdk:codegen") public class GetJobOutputResponse extends GlacierResponse implements ToCopyableBuilder<GetJobOutputResponse.Builder,GetJobOutputResponse>
Contains the Amazon Glacier response to your request.
Modifier and Type | Class and Description |
---|---|
static interface |
GetJobOutputResponse.Builder |
Modifier and Type | Method and Description |
---|---|
String |
acceptRanges()
Indicates the range units accepted.
|
String |
archiveDescription()
The description of an archive.
|
static GetJobOutputResponse.Builder |
builder() |
String |
checksum()
The checksum of the data in the response.
|
String |
contentRange()
The range of bytes returned by Amazon Glacier.
|
String |
contentType()
The Content-Type depends on whether the job output is an archive or a vault inventory.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
int |
hashCode() |
static Class<? extends GetJobOutputResponse.Builder> |
serializableBuilderClass() |
Integer |
status()
The HTTP response code for a job output request.
|
GetJobOutputResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public 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:
You get the entire range of the archive.
You request a range to return of the archive that starts and ends on a multiple of 1 MB. For example, if you have an 3.1 MB archive and you specify a range to return that starts at 1 MB and ends at 2 MB, then the x-amz-sha256-tree-hash is returned as a response header.
You request a range of the archive to return that starts on a multiple of 1 MB and goes to the end of the archive. For example, if you have a 3.1 MB archive and you specify a range that starts at 2 MB and ends at 3.1 MB (the end of the archive), then the x-amz-sha256-tree-hash is returned as a response header.
You get the entire range of the archive.
You request a range to return of the archive that starts and ends on a multiple of 1 MB. For example, if you have an 3.1 MB archive and you specify a range to return that starts at 1 MB and ends at 2 MB, then the x-amz-sha256-tree-hash is returned as a response header.
You request a range of the archive to return that starts on a multiple of 1 MB and goes to the end of the archive. For example, if you have a 3.1 MB archive and you specify a range that starts at 2 MB and ends at 3.1 MB (the end of the archive), then the x-amz-sha256-tree-hash is returned as a response header.
public Integer status()
The HTTP response code for a job output request. The value depends on whether a range was specified in the request.
public 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.
public String acceptRanges()
Indicates the range units accepted. For more information, see RFC2616.
public 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.
public String archiveDescription()
The description of an archive.
public GetJobOutputResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetJobOutputResponse.Builder,GetJobOutputResponse>
toBuilder
in class AwsResponse
public static GetJobOutputResponse.Builder builder()
public static Class<? extends GetJobOutputResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.