/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace KinesisVideoArchivedMedia { namespace Model { class GetMediaForFragmentListResult { public: AWS_KINESISVIDEOARCHIVEDMEDIA_API GetMediaForFragmentListResult(); //We have to define these because Microsoft doesn't auto generate them AWS_KINESISVIDEOARCHIVEDMEDIA_API GetMediaForFragmentListResult(GetMediaForFragmentListResult&&); AWS_KINESISVIDEOARCHIVEDMEDIA_API GetMediaForFragmentListResult& operator=(GetMediaForFragmentListResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. GetMediaForFragmentListResult(const GetMediaForFragmentListResult&) = delete; GetMediaForFragmentListResult& operator=(const GetMediaForFragmentListResult&) = delete; AWS_KINESISVIDEOARCHIVEDMEDIA_API GetMediaForFragmentListResult(Aws::AmazonWebServiceResult&& result); AWS_KINESISVIDEOARCHIVEDMEDIA_API GetMediaForFragmentListResult& operator=(Aws::AmazonWebServiceResult&& result); /** *

The content type of the requested media.

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

The content type of the requested media.

*/ inline void SetContentType(const Aws::String& value) { m_contentType = value; } /** *

The content type of the requested media.

*/ inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); } /** *

The content type of the requested media.

*/ inline void SetContentType(const char* value) { m_contentType.assign(value); } /** *

The content type of the requested media.

*/ inline GetMediaForFragmentListResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

The content type of the requested media.

*/ inline GetMediaForFragmentListResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

The content type of the requested media.

*/ inline GetMediaForFragmentListResult& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

The payload that Kinesis Video Streams returns is a sequence of chunks from * the specified stream. For information about the chunks, see PutMedia. * The chunks that Kinesis Video Streams returns in the * GetMediaForFragmentList call also include the following additional * Matroska (MKV) tags:

  • AWS_KINESISVIDEO_FRAGMENT_NUMBER - * Fragment number returned in the chunk.

  • *

    AWS_KINESISVIDEO_SERVER_SIDE_TIMESTAMP - Server-side timestamp of the * fragment.

  • AWS_KINESISVIDEO_PRODUCER_SIDE_TIMESTAMP - * Producer-side timestamp of the fragment.

The following tags * will be included if an exception occurs:

  • *

    AWS_KINESISVIDEO_FRAGMENT_NUMBER - The number of the fragment that threw the * exception

  • AWS_KINESISVIDEO_EXCEPTION_ERROR_CODE - The integer * code of the exception

  • AWS_KINESISVIDEO_EXCEPTION_MESSAGE - A * text description of the exception

*/ inline Aws::IOStream& GetPayload() const { return m_payload.GetUnderlyingStream(); } /** *

The payload that Kinesis Video Streams returns is a sequence of chunks from * the specified stream. For information about the chunks, see PutMedia. * The chunks that Kinesis Video Streams returns in the * GetMediaForFragmentList call also include the following additional * Matroska (MKV) tags:

  • AWS_KINESISVIDEO_FRAGMENT_NUMBER - * Fragment number returned in the chunk.

  • *

    AWS_KINESISVIDEO_SERVER_SIDE_TIMESTAMP - Server-side timestamp of the * fragment.

  • AWS_KINESISVIDEO_PRODUCER_SIDE_TIMESTAMP - * Producer-side timestamp of the fragment.

The following tags * will be included if an exception occurs:

  • *

    AWS_KINESISVIDEO_FRAGMENT_NUMBER - The number of the fragment that threw the * exception

  • AWS_KINESISVIDEO_EXCEPTION_ERROR_CODE - The integer * code of the exception

  • AWS_KINESISVIDEO_EXCEPTION_MESSAGE - A * text description of the exception

*/ inline void ReplaceBody(Aws::IOStream* body) { m_payload = Aws::Utils::Stream::ResponseStream(body); } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetMediaForFragmentListResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetMediaForFragmentListResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetMediaForFragmentListResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_contentType; Aws::Utils::Stream::ResponseStream m_payload; Aws::String m_requestId; }; } // namespace Model } // namespace KinesisVideoArchivedMedia } // namespace Aws