/* * Copyright 2018-2023 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; import java.io.Serializable; import javax.annotation.Generated; /** *

* Contains the Amazon S3 Glacier response to your request. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetJobOutputResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The job data, either archive data or inventory data. *

*/ private java.io.InputStream body; /** *

* 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: *

* */ private String checksum; /** *

* The HTTP response code for a job output request. The value depends on whether a range was specified in the * request. *

*/ private Integer status; /** *

* The range of bytes returned by Amazon S3 Glacier. If only partial output is downloaded, the response provides the * range of bytes Amazon S3 Glacier returned. For example, bytes 0-1048575/8388608 returns the first 1 MB from 8 MB. *

*/ private String contentRange; /** *

* Indicates the range units accepted. For more information, see RFC2616. *

*/ private String acceptRanges; /** *

* 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. *

*/ private String contentType; /** *

* The description of an archive. *

*/ private String archiveDescription; /** *

* The job data, either archive data or inventory data. *

* * @param body * The job data, either archive data or inventory data. */ public void setBody(java.io.InputStream body) { this.body = body; } /** *

* The job data, either archive data or inventory data. *

* * @return The job data, either archive data or inventory data. */ public java.io.InputStream getBody() { return this.body; } /** *

* The job data, either archive data or inventory data. *

* * @param body * The job data, either archive data or inventory data. * @return Returns a reference to this object so that method calls can be chained together. */ public GetJobOutputResult withBody(java.io.InputStream body) { setBody(body); return this; } /** *

* 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: *

* * * @param 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:

*