Class DescribeJobResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.glacier.model.GlacierResponse
-
- software.amazon.awssdk.services.glacier.model.DescribeJobResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<DescribeJobResponse.Builder,DescribeJobResponse>
@Generated("software.amazon.awssdk:codegen") public final class DescribeJobResponse extends GlacierResponse implements ToCopyableBuilder<DescribeJobResponse.Builder,DescribeJobResponse>
Contains the description of an Amazon S3 Glacier job.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDescribeJobResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionCodeaction()The job type.StringactionAsString()The job type.StringarchiveId()The archive ID requested for a select job or archive retrieval.StringarchiveSHA256TreeHash()The SHA256 tree hash of the entire archive for an archive retrieval.LongarchiveSizeInBytes()For an archive retrieval job, this value is the size in bytes of the archive being requested for download.static DescribeJobResponse.Builderbuilder()Booleancompleted()The job status.StringcompletionDate()The UTC time that the job request completed.StringcreationDate()The UTC date when the job was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InventoryRetrievalJobDescriptioninventoryRetrievalParameters()Parameters used for range inventory retrieval.LonginventorySizeInBytes()For an inventory retrieval job, this value is the size in bytes of the inventory requested for download.StringjobDescription()The job description provided when initiating the job.StringjobId()An opaque string that identifies an Amazon S3 Glacier job.StringjobOutputPath()Contains the job output location.OutputLocationoutputLocation()Contains the location where the data from the select job is stored.StringretrievalByteRange()The retrieved byte range for archive retrieval jobs in the form StartByteValue-EndByteValue.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()SelectParametersselectParameters()Contains the parameters used for a select.static Class<? extends DescribeJobResponse.Builder>serializableBuilderClass()Stringsha256TreeHash()For an archive retrieval job, this value is the checksum of the archive.StringsnsTopic()An Amazon SNS topic that receives notification.StatusCodestatusCode()The status code can beInProgress,Succeeded, orFailed, and indicates the status of the job.StringstatusCodeAsString()The status code can beInProgress,Succeeded, orFailed, and indicates the status of the job.StringstatusMessage()A friendly message that describes the job status.Stringtier()The tier to use for a select or an archive retrieval.DescribeJobResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvaultARN()The Amazon Resource Name (ARN) of the vault from which an archive retrieval was requested.-
Methods inherited from class software.amazon.awssdk.services.glacier.model.GlacierResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
jobId
public final String jobId()
An opaque string that identifies an Amazon S3 Glacier job.
- Returns:
- An opaque string that identifies an Amazon S3 Glacier job.
-
jobDescription
public final String jobDescription()
The job description provided when initiating the job.
- Returns:
- The job description provided when initiating the job.
-
action
public final ActionCode action()
The job type. This value is either
ArchiveRetrieval,InventoryRetrieval, orSelect.If the service returns an enum value that is not available in the current SDK version,
actionwill returnActionCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The job type. This value is either
ArchiveRetrieval,InventoryRetrieval, orSelect. - See Also:
ActionCode
-
actionAsString
public final String actionAsString()
The job type. This value is either
ArchiveRetrieval,InventoryRetrieval, orSelect.If the service returns an enum value that is not available in the current SDK version,
actionwill returnActionCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The job type. This value is either
ArchiveRetrieval,InventoryRetrieval, orSelect. - See Also:
ActionCode
-
archiveId
public final String archiveId()
The archive ID requested for a select job or archive retrieval. Otherwise, this field is null.
- Returns:
- The archive ID requested for a select job or archive retrieval. Otherwise, this field is null.
-
vaultARN
public final String vaultARN()
The Amazon Resource Name (ARN) of the vault from which an archive retrieval was requested.
- Returns:
- The Amazon Resource Name (ARN) of the vault from which an archive retrieval was requested.
-
creationDate
public final String creationDate()
The UTC date when the job was created. This value is a string representation of ISO 8601 date format, for example
"2012-03-20T17:03:43.221Z".- Returns:
- The UTC date when the job was created. This value is a string representation of ISO 8601 date format, for
example
"2012-03-20T17:03:43.221Z".
-
completed
public final Boolean completed()
The job status. When a job is completed, you get the job's output using Get Job Output (GET output).
- Returns:
- The job status. When a job is completed, you get the job's output using Get Job Output (GET output).
-
statusCode
public final StatusCode statusCode()
The status code can be
InProgress,Succeeded, orFailed, and indicates the status of the job.If the service returns an enum value that is not available in the current SDK version,
statusCodewill returnStatusCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusCodeAsString().- Returns:
- The status code can be
InProgress,Succeeded, orFailed, and indicates the status of the job. - See Also:
StatusCode
-
statusCodeAsString
public final String statusCodeAsString()
The status code can be
InProgress,Succeeded, orFailed, and indicates the status of the job.If the service returns an enum value that is not available in the current SDK version,
statusCodewill returnStatusCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusCodeAsString().- Returns:
- The status code can be
InProgress,Succeeded, orFailed, and indicates the status of the job. - See Also:
StatusCode
-
statusMessage
public final String statusMessage()
A friendly message that describes the job status.
- Returns:
- A friendly message that describes the job status.
-
archiveSizeInBytes
public final Long archiveSizeInBytes()
For an archive retrieval job, this value is the size in bytes of the archive being requested for download. For an inventory retrieval or select job, this value is null.
- Returns:
- For an archive retrieval job, this value is the size in bytes of the archive being requested for download. For an inventory retrieval or select job, this value is null.
-
inventorySizeInBytes
public final Long inventorySizeInBytes()
For an inventory retrieval job, this value is the size in bytes of the inventory requested for download. For an archive retrieval or select job, this value is null.
- Returns:
- For an inventory retrieval job, this value is the size in bytes of the inventory requested for download. For an archive retrieval or select job, this value is null.
-
snsTopic
public final String snsTopic()
An Amazon SNS topic that receives notification.
- Returns:
- An Amazon SNS topic that receives notification.
-
completionDate
public final String completionDate()
The UTC time that the job request completed. While the job is in progress, the value is null.
- Returns:
- The UTC time that the job request completed. While the job is in progress, the value is null.
-
sha256TreeHash
public final String sha256TreeHash()
For an archive retrieval job, this value is the checksum of the archive. Otherwise, this value is null.
The SHA256 tree hash value for the requested range of an archive. If the InitiateJob request for an archive specified a tree-hash aligned range, then this field returns a value.
If the whole archive is retrieved, this value is the same as the ArchiveSHA256TreeHash value.
This field is null for the following:
-
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, when the job status is
InProgress
-
Inventory jobs
-
Select jobs
- Returns:
- For an archive retrieval job, this value is the checksum of the archive. Otherwise, this value is
null.
The SHA256 tree hash value for the requested range of an archive. If the InitiateJob request for an archive specified a tree-hash aligned range, then this field returns a value.
If the whole archive is retrieved, this value is the same as the ArchiveSHA256TreeHash value.
This field is null for the following:
-
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, when the job status is
InProgress
-
Inventory jobs
-
Select jobs
-
-
-
archiveSHA256TreeHash
public final String archiveSHA256TreeHash()
The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval or select jobs, this field is null.
- Returns:
- The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval or select jobs, this field is null.
-
retrievalByteRange
public final 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. In this case, StartByteValue equals 0 and EndByteValue equals the size of the archive minus 1. For inventory retrieval or select jobs, this field is null.
- Returns:
- 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. In this case, StartByteValue equals 0 and EndByteValue equals the size of the archive minus 1. For inventory retrieval or select jobs, this field is null.
-
tier
public final String tier()
The tier to use for a select or an archive retrieval. Valid values are
Expedited,Standard, orBulk.Standardis the default.- Returns:
- The tier to use for a select or an archive retrieval. Valid values are
Expedited,Standard, orBulk.Standardis the default.
-
inventoryRetrievalParameters
public final InventoryRetrievalJobDescription inventoryRetrievalParameters()
Parameters used for range inventory retrieval.
- Returns:
- Parameters used for range inventory retrieval.
-
jobOutputPath
public final String jobOutputPath()
Contains the job output location.
- Returns:
- Contains the job output location.
-
selectParameters
public final SelectParameters selectParameters()
Contains the parameters used for a select.
- Returns:
- Contains the parameters used for a select.
-
outputLocation
public final OutputLocation outputLocation()
Contains the location where the data from the select job is stored.
- Returns:
- Contains the location where the data from the select job is stored.
-
toBuilder
public DescribeJobResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DescribeJobResponse.Builder,DescribeJobResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static DescribeJobResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends DescribeJobResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-