/*
* 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.kinesisvideo.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetMediaResult extends com.amazonaws.AmazonWebServiceResult
* The content type of the requested media.
*
* The payload Kinesis Video Streams returns is a sequence of chunks from the specified stream. For information
* about the chunks, see . The chunks that Kinesis Video Streams returns in the
* AWS_KINESISVIDEO_CONTINUATION_TOKEN (UTF-8 string) - In the event your
* AWS_KINESISVIDEO_MILLIS_BEHIND_NOW (UTF-8 string) - Client applications can use this tag value to determine how
* far behind the chunk returned in the response is from the latest chunk on the stream.
*
* AWS_KINESISVIDEO_FRAGMENT_NUMBER - Fragment number returned in the chunk.
*
* AWS_KINESISVIDEO_SERVER_TIMESTAMP - Server timestamp of the fragment.
*
* AWS_KINESISVIDEO_PRODUCER_TIMESTAMP - Producer timestamp of the fragment.
*
* The following tags will be present if an error occurs:
*
* AWS_KINESISVIDEO_ERROR_CODE - String description of an error that caused GetMedia to stop.
*
* AWS_KINESISVIDEO_ERROR_ID: Integer code of the error.
*
* The error codes are as follows:
*
* 3002 - Error writing to the stream
*
* 4000 - Requested fragment is not found
*
* 4500 - Access denied for the stream's KMS key
*
* 4501 - Stream's KMS key is disabled
*
* 4502 - Validation error on the stream's KMS key
*
* 4503 - KMS key specified in the stream is unavailable
*
* 4504 - Invalid usage of the KMS key specified in the stream
*
* 4505 - Invalid state of the KMS key specified in the stream
*
* 4506 - Unable to find the KMS key specified in the stream
*
* 5000 - Internal error
*
* The content type of the requested media.
*
* The content type of the requested media.
*
* The content type of the requested media.
*
* The payload Kinesis Video Streams returns is a sequence of chunks from the specified stream. For information
* about the chunks, see . The chunks that Kinesis Video Streams returns in the
* AWS_KINESISVIDEO_CONTINUATION_TOKEN (UTF-8 string) - In the event your
* AWS_KINESISVIDEO_MILLIS_BEHIND_NOW (UTF-8 string) - Client applications can use this tag value to determine how
* far behind the chunk returned in the response is from the latest chunk on the stream.
*
* AWS_KINESISVIDEO_FRAGMENT_NUMBER - Fragment number returned in the chunk.
*
* AWS_KINESISVIDEO_SERVER_TIMESTAMP - Server timestamp of the fragment.
*
* AWS_KINESISVIDEO_PRODUCER_TIMESTAMP - Producer timestamp of the fragment.
*
* The following tags will be present if an error occurs:
*
* AWS_KINESISVIDEO_ERROR_CODE - String description of an error that caused GetMedia to stop.
*
* AWS_KINESISVIDEO_ERROR_ID: Integer code of the error.
*
* The error codes are as follows:
*
* 3002 - Error writing to the stream
*
* 4000 - Requested fragment is not found
*
* 4500 - Access denied for the stream's KMS key
*
* 4501 - Stream's KMS key is disabled
*
* 4502 - Validation error on the stream's KMS key
*
* 4503 - KMS key specified in the stream is unavailable
*
* 4504 - Invalid usage of the KMS key specified in the stream
*
* 4505 - Invalid state of the KMS key specified in the stream
*
* 4506 - Unable to find the KMS key specified in the stream
*
* 5000 - Internal error
* GetMedia
call also
* include the following additional Matroska (MKV) tags:
*
*
* GetMedia
call terminates, you
* can use this continuation token in your next request to get the next chunk where the last request terminated.
*
*
*
*
*/
private java.io.InputStream payload;
/**
* GetMedia
call also
* include the following additional Matroska (MKV) tags:
*
*
* GetMedia
call terminates, you
* can use this continuation token in your next request to get the next chunk where the last request terminated.
*
*
*
*
*
* @param payload
* The payload Kinesis Video Streams returns is a sequence of chunks from the specified stream. For
* information about the chunks, see . The chunks that Kinesis Video Streams returns in the
* GetMedia
call also include the following additional Matroska (MKV) tags:
* AWS_KINESISVIDEO_CONTINUATION_TOKEN (UTF-8 string) - In the event your GetMedia
call
* terminates, you can use this continuation token in your next request to get the next chunk where the last
* request terminated.
*
* AWS_KINESISVIDEO_MILLIS_BEHIND_NOW (UTF-8 string) - Client applications can use this tag value to * determine how far behind the chunk returned in the response is from the latest chunk on the stream. *
** AWS_KINESISVIDEO_FRAGMENT_NUMBER - Fragment number returned in the chunk. *
** AWS_KINESISVIDEO_SERVER_TIMESTAMP - Server timestamp of the fragment. *
** AWS_KINESISVIDEO_PRODUCER_TIMESTAMP - Producer timestamp of the fragment. *
** The following tags will be present if an error occurs: *
** AWS_KINESISVIDEO_ERROR_CODE - String description of an error that caused GetMedia to stop. *
** AWS_KINESISVIDEO_ERROR_ID: Integer code of the error. *
** The error codes are as follows: *
** 3002 - Error writing to the stream *
** 4000 - Requested fragment is not found *
** 4500 - Access denied for the stream's KMS key *
** 4501 - Stream's KMS key is disabled *
** 4502 - Validation error on the stream's KMS key *
** 4503 - KMS key specified in the stream is unavailable *
** 4504 - Invalid usage of the KMS key specified in the stream *
** 4505 - Invalid state of the KMS key specified in the stream *
** 4506 - Unable to find the KMS key specified in the stream *
** 5000 - Internal error *
*
* The payload Kinesis Video Streams returns is a sequence of chunks from the specified stream. For information
* about the chunks, see . The chunks that Kinesis Video Streams returns in the GetMedia
call also
* include the following additional Matroska (MKV) tags:
*
* AWS_KINESISVIDEO_CONTINUATION_TOKEN (UTF-8 string) - In the event your GetMedia
call terminates, you
* can use this continuation token in your next request to get the next chunk where the last request terminated.
*
* AWS_KINESISVIDEO_MILLIS_BEHIND_NOW (UTF-8 string) - Client applications can use this tag value to determine how * far behind the chunk returned in the response is from the latest chunk on the stream. *
** AWS_KINESISVIDEO_FRAGMENT_NUMBER - Fragment number returned in the chunk. *
** AWS_KINESISVIDEO_SERVER_TIMESTAMP - Server timestamp of the fragment. *
** AWS_KINESISVIDEO_PRODUCER_TIMESTAMP - Producer timestamp of the fragment. *
** The following tags will be present if an error occurs: *
** AWS_KINESISVIDEO_ERROR_CODE - String description of an error that caused GetMedia to stop. *
** AWS_KINESISVIDEO_ERROR_ID: Integer code of the error. *
** The error codes are as follows: *
** 3002 - Error writing to the stream *
** 4000 - Requested fragment is not found *
** 4500 - Access denied for the stream's KMS key *
** 4501 - Stream's KMS key is disabled *
** 4502 - Validation error on the stream's KMS key *
** 4503 - KMS key specified in the stream is unavailable *
** 4504 - Invalid usage of the KMS key specified in the stream *
** 4505 - Invalid state of the KMS key specified in the stream *
** 4506 - Unable to find the KMS key specified in the stream *
** 5000 - Internal error *
*GetMedia
call also include the following additional Matroska (MKV) tags:
*
* AWS_KINESISVIDEO_CONTINUATION_TOKEN (UTF-8 string) - In the event your GetMedia
call
* terminates, you can use this continuation token in your next request to get the next chunk where the last
* request terminated.
*
* AWS_KINESISVIDEO_MILLIS_BEHIND_NOW (UTF-8 string) - Client applications can use this tag value to * determine how far behind the chunk returned in the response is from the latest chunk on the stream. *
** AWS_KINESISVIDEO_FRAGMENT_NUMBER - Fragment number returned in the chunk. *
** AWS_KINESISVIDEO_SERVER_TIMESTAMP - Server timestamp of the fragment. *
** AWS_KINESISVIDEO_PRODUCER_TIMESTAMP - Producer timestamp of the fragment. *
** The following tags will be present if an error occurs: *
** AWS_KINESISVIDEO_ERROR_CODE - String description of an error that caused GetMedia to stop. *
** AWS_KINESISVIDEO_ERROR_ID: Integer code of the error. *
** The error codes are as follows: *
** 3002 - Error writing to the stream *
** 4000 - Requested fragment is not found *
** 4500 - Access denied for the stream's KMS key *
** 4501 - Stream's KMS key is disabled *
** 4502 - Validation error on the stream's KMS key *
** 4503 - KMS key specified in the stream is unavailable *
** 4504 - Invalid usage of the KMS key specified in the stream *
** 4505 - Invalid state of the KMS key specified in the stream *
** 4506 - Unable to find the KMS key specified in the stream *
** 5000 - Internal error *
*
* The payload Kinesis Video Streams returns is a sequence of chunks from the specified stream. For information
* about the chunks, see . The chunks that Kinesis Video Streams returns in the GetMedia
call also
* include the following additional Matroska (MKV) tags:
*
* AWS_KINESISVIDEO_CONTINUATION_TOKEN (UTF-8 string) - In the event your GetMedia
call terminates, you
* can use this continuation token in your next request to get the next chunk where the last request terminated.
*
* AWS_KINESISVIDEO_MILLIS_BEHIND_NOW (UTF-8 string) - Client applications can use this tag value to determine how * far behind the chunk returned in the response is from the latest chunk on the stream. *
** AWS_KINESISVIDEO_FRAGMENT_NUMBER - Fragment number returned in the chunk. *
** AWS_KINESISVIDEO_SERVER_TIMESTAMP - Server timestamp of the fragment. *
** AWS_KINESISVIDEO_PRODUCER_TIMESTAMP - Producer timestamp of the fragment. *
** The following tags will be present if an error occurs: *
** AWS_KINESISVIDEO_ERROR_CODE - String description of an error that caused GetMedia to stop. *
** AWS_KINESISVIDEO_ERROR_ID: Integer code of the error. *
** The error codes are as follows: *
** 3002 - Error writing to the stream *
** 4000 - Requested fragment is not found *
** 4500 - Access denied for the stream's KMS key *
** 4501 - Stream's KMS key is disabled *
** 4502 - Validation error on the stream's KMS key *
** 4503 - KMS key specified in the stream is unavailable *
** 4504 - Invalid usage of the KMS key specified in the stream *
** 4505 - Invalid state of the KMS key specified in the stream *
** 4506 - Unable to find the KMS key specified in the stream *
** 5000 - Internal error *
*GetMedia
call also include the following additional Matroska (MKV) tags:
*
* AWS_KINESISVIDEO_CONTINUATION_TOKEN (UTF-8 string) - In the event your GetMedia
call
* terminates, you can use this continuation token in your next request to get the next chunk where the last
* request terminated.
*
* AWS_KINESISVIDEO_MILLIS_BEHIND_NOW (UTF-8 string) - Client applications can use this tag value to * determine how far behind the chunk returned in the response is from the latest chunk on the stream. *
** AWS_KINESISVIDEO_FRAGMENT_NUMBER - Fragment number returned in the chunk. *
** AWS_KINESISVIDEO_SERVER_TIMESTAMP - Server timestamp of the fragment. *
** AWS_KINESISVIDEO_PRODUCER_TIMESTAMP - Producer timestamp of the fragment. *
** The following tags will be present if an error occurs: *
** AWS_KINESISVIDEO_ERROR_CODE - String description of an error that caused GetMedia to stop. *
** AWS_KINESISVIDEO_ERROR_ID: Integer code of the error. *
** The error codes are as follows: *
** 3002 - Error writing to the stream *
** 4000 - Requested fragment is not found *
** 4500 - Access denied for the stream's KMS key *
** 4501 - Stream's KMS key is disabled *
** 4502 - Validation error on the stream's KMS key *
** 4503 - KMS key specified in the stream is unavailable *
** 4504 - Invalid usage of the KMS key specified in the stream *
** 4505 - Invalid state of the KMS key specified in the stream *
** 4506 - Unable to find the KMS key specified in the stream *
** 5000 - Internal error *
*