Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License").
    * You may not use this file except in compliance with the License.
    * A copy of the License is located at
    * 
    *  http://aws.amazon.com/apache2.0
    * 
   * or in the "license" file accompanying this file. This file is distributed
   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
   * express or implied. See the License for the specific language governing
   * permissions and limitations under the License.
   */
  package com.amazonaws.services.glacier.model;
  

Describes an Amazon Glacier job.

  
  public class GlacierJobDescription implements SerializableCloneable {

    
An opaque string that identifies an Amazon Glacier job.
  
      private String jobId;

    
The job description you provided when you initiated the job.
  
      private String jobDescription;

    
The job type. It is either ArchiveRetrieval or InventoryRetrieval.

Constraints:
Allowed Values: ArchiveRetrieval, InventoryRetrieval

  
      private String action;

    
For an ArchiveRetrieval job, this is the archive ID requested for download. Otherwise, this field is null.
  
      private String archiveId;

    
The Amazon Resource Name (ARN) of the vault from which the archive retrieval was requested.
  
      private String vaultARN;

    
The UTC date when the job was created. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
  
      private String creationDate;

    
The job status. When a job is completed, you get the job's output.
  
      private Boolean completed;

    
The status code can be InProgress, Succeeded, or Failed, and indicates the status of the job.

Constraints:
Allowed Values: InProgress, Succeeded, Failed

  
      private String statusCode;

    
A friendly message that describes the job status.
  
      private String statusMessage;

    
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.
  
      private Long archiveSizeInBytes;

    
For an InventoryRetrieval job, this is the size in bytes of the inventory requested for download. For the ArchiveRetrieval job, the value is null.
  
      private Long inventorySizeInBytes;

    
An Amazon Simple Notification Service (Amazon SNS) topic that receives notification.
  
      private String sNSTopic;

    
The UTC time that the archive retrieval request completed. While the job is in progress, the value will be null.
 
     private String completionDate;

    
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.

 
     private String sHA256TreeHash;

    
The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval jobs, this field is null.
 
     private String archiveSHA256TreeHash;

    
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.
 
     private String retrievalByteRange;

    
Parameters used for range inventory retrieval.
 
An opaque string that identifies an Amazon Glacier job.

Returns:
An opaque string that identifies an Amazon Glacier job.
 
     public String getJobId() {
         return ;
     }
    
    
An opaque string that identifies an Amazon Glacier job.

Parameters:
jobId An opaque string that identifies an Amazon Glacier job.
 
     public void setJobId(String jobId) {
         this. = jobId;
     }
    
    
An opaque string that identifies an Amazon Glacier job.

Returns a reference to this object so that method calls can be chained together.

Parameters:
jobId An opaque string that identifies an Amazon Glacier job.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GlacierJobDescription withJobId(String jobId) {
         this. = jobId;
         return this;
     }

    
The job description you provided when you initiated the job.

Returns:
The job description you provided when you initiated the job.
 
     public String getJobDescription() {
         return ;
     }
    
    
The job description you provided when you initiated the job.

Parameters:
jobDescription The job description you provided when you initiated the job.
 
     public void setJobDescription(String jobDescription) {
         this. = jobDescription;
     }
    
    
The job description you provided when you initiated the job.

Returns a reference to this object so that method calls can be chained together.

Parameters:
jobDescription The job description you provided when you initiated the job.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GlacierJobDescription withJobDescription(String jobDescription) {
         this. = jobDescription;
         return this;
     }

    
The job type. It is either ArchiveRetrieval or InventoryRetrieval.

Constraints:
Allowed Values: ArchiveRetrieval, InventoryRetrieval

Returns:
The job type. It is either ArchiveRetrieval or InventoryRetrieval.
See also:
ActionCode
 
     public String getAction() {
         return ;
     }
    
    
The job type. It is either ArchiveRetrieval or InventoryRetrieval.

Constraints:
Allowed Values: ArchiveRetrieval, InventoryRetrieval

Parameters:
action The job type. It is either ArchiveRetrieval or InventoryRetrieval.
See also:
ActionCode
 
     public void setAction(String action) {
         this. = action;
     }
    
    
The job type. It is either ArchiveRetrieval or InventoryRetrieval.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ArchiveRetrieval, InventoryRetrieval

Parameters:
action The job type. It is either ArchiveRetrieval or InventoryRetrieval.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ActionCode
 
     public GlacierJobDescription withAction(String action) {
         this. = action;
         return this;
     }

    
The job type. It is either ArchiveRetrieval or InventoryRetrieval.

Constraints:
Allowed Values: ArchiveRetrieval, InventoryRetrieval

Parameters:
action The job type. It is either ArchiveRetrieval or InventoryRetrieval.
See also:
ActionCode
 
     public void setAction(ActionCode action) {
         this. = action.toString();
     }
    
    
The job type. It is either ArchiveRetrieval or InventoryRetrieval.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ArchiveRetrieval, InventoryRetrieval

Parameters:
action The job type. It is either ArchiveRetrieval or InventoryRetrieval.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ActionCode
 
     public GlacierJobDescription withAction(ActionCode action) {
         this. = action.toString();
         return this;
     }

    
For an ArchiveRetrieval job, this is the archive ID requested for download. Otherwise, this field is null.

Returns:
For an ArchiveRetrieval job, this is the archive ID requested for download. Otherwise, this field is null.
 
     public String getArchiveId() {
         return ;
     }
    
    
For an ArchiveRetrieval job, this is the archive ID requested for download. Otherwise, this field is null.

Parameters:
archiveId For an ArchiveRetrieval job, this is the archive ID requested for download. Otherwise, this field is null.
 
     public void setArchiveId(String archiveId) {
         this. = archiveId;
     }
    
    
For an ArchiveRetrieval job, this is the archive ID requested for download. Otherwise, this field is null.

Returns a reference to this object so that method calls can be chained together.

Parameters:
archiveId For an ArchiveRetrieval job, this is the archive ID requested for download. Otherwise, this field is null.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GlacierJobDescription withArchiveId(String archiveId) {
         this. = archiveId;
         return this;
     }

    
The Amazon Resource Name (ARN) of the vault from which the archive retrieval was requested.

Returns:
The Amazon Resource Name (ARN) of the vault from which the archive retrieval was requested.
 
     public String getVaultARN() {
         return ;
     }
    
    
The Amazon Resource Name (ARN) of the vault from which the archive retrieval was requested.

Parameters:
vaultARN The Amazon Resource Name (ARN) of the vault from which the archive retrieval was requested.
 
     public void setVaultARN(String vaultARN) {
         this. = vaultARN;
     }
    
    
The Amazon Resource Name (ARN) of the vault from which the archive retrieval was requested.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vaultARN The Amazon Resource Name (ARN) of the vault from which the archive retrieval was requested.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GlacierJobDescription withVaultARN(String vaultARN) {
         this. = vaultARN;
         return this;
     }

    
The UTC date when the job was created. 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. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
 
     public String getCreationDate() {
         return ;
     }
    
    
The UTC date when the job was created. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".

Parameters:
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 void setCreationDate(String creationDate) {
         this. = 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".

Returns a reference to this object so that method calls can be chained together.

Parameters:
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".
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GlacierJobDescription withCreationDate(String creationDate) {
         this. = creationDate;
         return this;
     }

    
The job status. When a job is completed, you get the job's output.

Returns:
The job status. When a job is completed, you get the job's output.
 
     public Boolean isCompleted() {
         return ;
     }
    
    
The job status. When a job is completed, you get the job's output.

Parameters:
completed The job status. When a job is completed, you get the job's output.
 
     public void setCompleted(Boolean completed) {
         this. = completed;
     }
    
    
The job status. When a job is completed, you get the job's output.

Returns a reference to this object so that method calls can be chained together.

Parameters:
completed The job status. When a job is completed, you get the job's output.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GlacierJobDescription withCompleted(Boolean completed) {
         this. = completed;
         return this;
     }

    
The job status. When a job is completed, you get the job's output.

Returns:
The job status. When a job is completed, you get the job's output.
 
     public Boolean getCompleted() {
         return ;
     }

    
The status code can be InProgress, Succeeded, or Failed, and indicates the status of the job.

Constraints:
Allowed Values: InProgress, Succeeded, Failed

Returns:
The status code can be InProgress, Succeeded, or Failed, and indicates the status of the job.
See also:
StatusCode
 
     public String getStatusCode() {
         return ;
     }
    
    
The status code can be InProgress, Succeeded, or Failed, and indicates the status of the job.

Constraints:
Allowed Values: InProgress, Succeeded, Failed

Parameters:
statusCode The status code can be InProgress, Succeeded, or Failed, and indicates the status of the job.
See also:
StatusCode
 
     public void setStatusCode(String statusCode) {
         this. = statusCode;
     }
    
    
The status code can be InProgress, Succeeded, or Failed, and indicates the status of the job.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: InProgress, Succeeded, Failed

Parameters:
statusCode The status code can be InProgress, Succeeded, or Failed, and indicates the status of the job.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
StatusCode
 
     public GlacierJobDescription withStatusCode(String statusCode) {
         this. = statusCode;
         return this;
     }

    
The status code can be InProgress, Succeeded, or Failed, and indicates the status of the job.

Constraints:
Allowed Values: InProgress, Succeeded, Failed

Parameters:
statusCode The status code can be InProgress, Succeeded, or Failed, and indicates the status of the job.
See also:
StatusCode
 
     public void setStatusCode(StatusCode statusCode) {
         this. = statusCode.toString();
     }
    
    
The status code can be InProgress, Succeeded, or Failed, and indicates the status of the job.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: InProgress, Succeeded, Failed

Parameters:
statusCode The status code can be InProgress, Succeeded, or Failed, and indicates the status of the job.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
StatusCode
 
     public GlacierJobDescription withStatusCode(StatusCode statusCode) {
         this. = statusCode.toString();
         return this;
     }

    
A friendly message that describes the job status.

Returns:
A friendly message that describes the job status.
 
     public String getStatusMessage() {
         return ;
     }
    
    
A friendly message that describes the job status.

Parameters:
statusMessage A friendly message that describes the job status.
 
     public void setStatusMessage(String statusMessage) {
         this. = statusMessage;
     }
    
    
A friendly message that describes the job status.

Returns a reference to this object so that method calls can be chained together.

Parameters:
statusMessage A friendly message that describes the job status.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GlacierJobDescription withStatusMessage(String statusMessage) {
         this. = statusMessage;
         return this;
     }

    
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.

Returns:
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 getArchiveSizeInBytes() {
         return ;
     }
    
    
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.

Parameters:
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 void setArchiveSizeInBytes(Long archiveSizeInBytes) {
         this. = 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GlacierJobDescription withArchiveSizeInBytes(Long archiveSizeInBytes) {
         this. = archiveSizeInBytes;
         return this;
     }

    
For an InventoryRetrieval job, this is the size in bytes of the inventory requested for download. For the ArchiveRetrieval job, the value is null.

Returns:
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 Long getInventorySizeInBytes() {
         return ;
     }
    
    
For an InventoryRetrieval job, this is the size in bytes of the inventory requested for download. For the ArchiveRetrieval job, the value is null.

Parameters:
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 void setInventorySizeInBytes(Long inventorySizeInBytes) {
         this. = 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GlacierJobDescription withInventorySizeInBytes(Long inventorySizeInBytes) {
         this. = inventorySizeInBytes;
         return this;
     }

    
An Amazon Simple Notification Service (Amazon SNS) topic that receives notification.

Returns:
An Amazon Simple Notification Service (Amazon SNS) topic that receives notification.
 
     public String getSNSTopic() {
         return ;
     }
    
    
An Amazon Simple Notification Service (Amazon SNS) topic that receives notification.

Parameters:
sNSTopic An Amazon Simple Notification Service (Amazon SNS) topic that receives notification.
 
     public void setSNSTopic(String sNSTopic) {
         this. = sNSTopic;
     }
    
    
An Amazon Simple Notification Service (Amazon SNS) topic that receives notification.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sNSTopic An Amazon Simple Notification Service (Amazon SNS) topic that receives notification.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GlacierJobDescription withSNSTopic(String sNSTopic) {
         this. = sNSTopic;
         return this;
     }

    
The UTC time that the archive retrieval request completed. While the job is in progress, the value will be null.

Returns:
The UTC time that the archive retrieval request completed. While the job is in progress, the value will be null.
 
     public String getCompletionDate() {
         return ;
     }
    
    
The UTC time that the archive retrieval request completed. While the job is in progress, the value will be null.

Parameters:
completionDate The UTC time that the archive retrieval request completed. While the job is in progress, the value will be null.
 
     public void setCompletionDate(String completionDate) {
         this. = completionDate;
     }
    
    
The UTC time that the archive retrieval request completed. While the job is in progress, the value will be null.

Returns a reference to this object so that method calls can be chained together.

Parameters:
completionDate The UTC time that the archive retrieval request completed. While the job is in progress, the value will be null.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GlacierJobDescription withCompletionDate(String completionDate) {
         this. = completionDate;
         return this;
     }

    
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.

Returns:
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 getSHA256TreeHash() {
         return ;
     }
    
    
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.

Parameters:
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 void setSHA256TreeHash(String sHA256TreeHash) {
         this. = 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GlacierJobDescription withSHA256TreeHash(String sHA256TreeHash) {
         this. = sHA256TreeHash;
         return this;
     }

    
The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval jobs, this field is null.

Returns:
The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval jobs, this field is null.
 
     public String getArchiveSHA256TreeHash() {
         return ;
     }
    
    
The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval jobs, this field is null.

Parameters:
archiveSHA256TreeHash The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval jobs, this field is null.
 
     public void setArchiveSHA256TreeHash(String archiveSHA256TreeHash) {
         this. = archiveSHA256TreeHash;
     }
    
    
The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval jobs, this field is null.

Returns a reference to this object so that method calls can be chained together.

Parameters:
archiveSHA256TreeHash The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval jobs, this field is null.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GlacierJobDescription withArchiveSHA256TreeHash(String archiveSHA256TreeHash) {
         this. = archiveSHA256TreeHash;
         return this;
     }

    
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.

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 and StartByteValue equals 0 and EndByteValue equals the size of the archive minus 1. For inventory retrieval jobs this field is null.
 
     public String getRetrievalByteRange() {
         return ;
     }
    
    
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.

Parameters:
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 void setRetrievalByteRange(String retrievalByteRange) {
         this. = 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GlacierJobDescription withRetrievalByteRange(String retrievalByteRange) {
         this. = retrievalByteRange;
         return this;
     }

    
Parameters used for range inventory retrieval.

Returns:
Parameters used for range inventory retrieval.
 
         return ;
     }
    
    
Parameters used for range inventory retrieval.

Parameters:
inventoryRetrievalParameters Parameters used for range inventory retrieval.
 
     public void setInventoryRetrievalParameters(InventoryRetrievalJobDescription inventoryRetrievalParameters) {
         this. = inventoryRetrievalParameters;
     }
    
    
Parameters used for range inventory retrieval.

Returns a reference to this object so that method calls can be chained together.

Parameters:
inventoryRetrievalParameters Parameters used for range inventory retrieval.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         this. = inventoryRetrievalParameters;
         return this;
     }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
 
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
         sb.append("{");
         if (getJobId() != nullsb.append("JobId: " + getJobId() + ",");
         if (getJobDescription() != nullsb.append("JobDescription: " + getJobDescription() + ",");
         if (getAction() != nullsb.append("Action: " + getAction() + ",");
         if (getArchiveId() != nullsb.append("ArchiveId: " + getArchiveId() + ",");
         if (getVaultARN() != nullsb.append("VaultARN: " + getVaultARN() + ",");
         if (getCreationDate() != nullsb.append("CreationDate: " + getCreationDate() + ",");
         if (isCompleted() != nullsb.append("Completed: " + isCompleted() + ",");
         if (getStatusCode() != nullsb.append("StatusCode: " + getStatusCode() + ",");
         if (getStatusMessage() != nullsb.append("StatusMessage: " + getStatusMessage() + ",");
         if (getArchiveSizeInBytes() != nullsb.append("ArchiveSizeInBytes: " + getArchiveSizeInBytes() + ",");
         if (getInventorySizeInBytes() != nullsb.append("InventorySizeInBytes: " + getInventorySizeInBytes() + ",");
         if (getSNSTopic() != nullsb.append("SNSTopic: " + getSNSTopic() + ",");
         if (getCompletionDate() != nullsb.append("CompletionDate: " + getCompletionDate() + ",");
         if (getSHA256TreeHash() != nullsb.append("SHA256TreeHash: " + getSHA256TreeHash() + ",");
         if (getArchiveSHA256TreeHash() != nullsb.append("ArchiveSHA256TreeHash: " + getArchiveSHA256TreeHash() + ",");
         if (getRetrievalByteRange() != nullsb.append("RetrievalByteRange: " + getRetrievalByteRange() + ",");
         if (getInventoryRetrievalParameters() != nullsb.append("InventoryRetrievalParameters: " + getInventoryRetrievalParameters() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); 
        hashCode = prime * hashCode + ((getJobDescription() == null) ? 0 : getJobDescription().hashCode()); 
        hashCode = prime * hashCode + ((getAction() == null) ? 0 : getAction().hashCode()); 
        hashCode = prime * hashCode + ((getArchiveId() == null) ? 0 : getArchiveId().hashCode()); 
        hashCode = prime * hashCode + ((getVaultARN() == null) ? 0 : getVaultARN().hashCode()); 
        hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); 
        hashCode = prime * hashCode + ((isCompleted() == null) ? 0 : isCompleted().hashCode()); 
        hashCode = prime * hashCode + ((getStatusCode() == null) ? 0 : getStatusCode().hashCode()); 
        hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); 
        hashCode = prime * hashCode + ((getArchiveSizeInBytes() == null) ? 0 : getArchiveSizeInBytes().hashCode()); 
        hashCode = prime * hashCode + ((getInventorySizeInBytes() == null) ? 0 : getInventorySizeInBytes().hashCode()); 
        hashCode = prime * hashCode + ((getSNSTopic() == null) ? 0 : getSNSTopic().hashCode()); 
        hashCode = prime * hashCode + ((getCompletionDate() == null) ? 0 : getCompletionDate().hashCode()); 
        hashCode = prime * hashCode + ((getSHA256TreeHash() == null) ? 0 : getSHA256TreeHash().hashCode()); 
        hashCode = prime * hashCode + ((getArchiveSHA256TreeHash() == null) ? 0 : getArchiveSHA256TreeHash().hashCode()); 
        hashCode = prime * hashCode + ((getRetrievalByteRange() == null) ? 0 : getRetrievalByteRange().hashCode()); 
        hashCode = prime * hashCode + ((getInventoryRetrievalParameters() == null) ? 0 : getInventoryRetrievalParameters().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof GlacierJobDescription == falsereturn false;
        GlacierJobDescription other = (GlacierJobDescription)obj;
        
        if (other.getJobId() == null ^ this.getJobId() == nullreturn false;
        if (other.getJobId() != null && other.getJobId().equals(this.getJobId()) == falsereturn false
        if (other.getJobDescription() == null ^ this.getJobDescription() == nullreturn false;
        if (other.getJobDescription() != null && other.getJobDescription().equals(this.getJobDescription()) == falsereturn false
        if (other.getAction() == null ^ this.getAction() == nullreturn false;
        if (other.getAction() != null && other.getAction().equals(this.getAction()) == falsereturn false
        if (other.getArchiveId() == null ^ this.getArchiveId() == nullreturn false;
        if (other.getArchiveId() != null && other.getArchiveId().equals(this.getArchiveId()) == falsereturn false
        if (other.getVaultARN() == null ^ this.getVaultARN() == nullreturn false;
        if (other.getVaultARN() != null && other.getVaultARN().equals(this.getVaultARN()) == falsereturn false
        if (other.getCreationDate() == null ^ this.getCreationDate() == nullreturn false;
        if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == falsereturn false
        if (other.isCompleted() == null ^ this.isCompleted() == nullreturn false;
        if (other.isCompleted() != null && other.isCompleted().equals(this.isCompleted()) == falsereturn false
        if (other.getStatusCode() == null ^ this.getStatusCode() == nullreturn false;
        if (other.getStatusCode() != null && other.getStatusCode().equals(this.getStatusCode()) == falsereturn false
        if (other.getStatusMessage() == null ^ this.getStatusMessage() == nullreturn false;
        if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == falsereturn false
        if (other.getArchiveSizeInBytes() == null ^ this.getArchiveSizeInBytes() == nullreturn false;
        if (other.getArchiveSizeInBytes() != null && other.getArchiveSizeInBytes().equals(this.getArchiveSizeInBytes()) == falsereturn false
        if (other.getInventorySizeInBytes() == null ^ this.getInventorySizeInBytes() == nullreturn false;
        if (other.getInventorySizeInBytes() != null && other.getInventorySizeInBytes().equals(this.getInventorySizeInBytes()) == falsereturn false
        if (other.getSNSTopic() == null ^ this.getSNSTopic() == nullreturn false;
        if (other.getSNSTopic() != null && other.getSNSTopic().equals(this.getSNSTopic()) == falsereturn false
        if (other.getCompletionDate() == null ^ this.getCompletionDate() == nullreturn false;
        if (other.getCompletionDate() != null && other.getCompletionDate().equals(this.getCompletionDate()) == falsereturn false
        if (other.getSHA256TreeHash() == null ^ this.getSHA256TreeHash() == nullreturn false;
        if (other.getSHA256TreeHash() != null && other.getSHA256TreeHash().equals(this.getSHA256TreeHash()) == falsereturn false
        if (other.getArchiveSHA256TreeHash() == null ^ this.getArchiveSHA256TreeHash() == nullreturn false;
        if (other.getArchiveSHA256TreeHash() != null && other.getArchiveSHA256TreeHash().equals(this.getArchiveSHA256TreeHash()) == falsereturn false
        if (other.getRetrievalByteRange() == null ^ this.getRetrievalByteRange() == nullreturn false;
        if (other.getRetrievalByteRange() != null && other.getRetrievalByteRange().equals(this.getRetrievalByteRange()) == falsereturn false
        if (other.getInventoryRetrievalParameters() == null ^ this.getInventoryRetrievalParameters() == nullreturn false;
        if (other.getInventoryRetrievalParameters() != null && other.getInventoryRetrievalParameters().equals(this.getInventoryRetrievalParameters()) == falsereturn false
        return true;
    }
    
    @Override
    public GlacierJobDescription clone() {
        try {
            return (GlacierJobDescriptionsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X