/* * 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 implements Serializable, Cloneable { /** *

* The content type of the requested media. *

*/ private String contentType; /** *

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

* *

* The following tags will be present if an error occurs: *

* *

* The error codes are as follows: *

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

* The content type of the requested media. *

* * @param contentType * The content type of the requested media. */ public void setContentType(String contentType) { this.contentType = contentType; } /** *

* The content type of the requested media. *

* * @return The content type of the requested media. */ public String getContentType() { return this.contentType; } /** *

* The content type of the requested media. *

* * @param contentType * The content type of the requested media. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMediaResult withContentType(String contentType) { setContentType(contentType); return this; } /** *

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

* *

* The following tags will be present if an error occurs: *

* *

* The error codes are as follows: *

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

* *

* The following tags will be present if an error occurs: *

* *

* The error codes are as follows: *

*