/** * 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 AWS_KINESISVIDEOARCHIVEDMEDIA_API GetClipResult { public: GetClipResult(); //We have to define these because Microsoft doesn't auto generate them GetClipResult(GetClipResult&&); GetClipResult& operator=(GetClipResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. GetClipResult(const GetClipResult&) = delete; GetClipResult& operator=(const GetClipResult&) = delete; GetClipResult(Aws::AmazonWebServiceResult&& result); GetClipResult& operator=(Aws::AmazonWebServiceResult&& result); /** *

The content type of the media in the requested clip.

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

The content type of the media in the requested clip.

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

The content type of the media in the requested clip.

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

The content type of the media in the requested clip.

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

The content type of the media in the requested clip.

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

The content type of the media in the requested clip.

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

The content type of the media in the requested clip.

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

Traditional MP4 file that contains the media clip from the specified video * stream. The output will contain the first 100 MB or the first 200 fragments from * the specified start timestamp. For more information, see Kinesis Video Streams Limits.

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

Traditional MP4 file that contains the media clip from the specified video * stream. The output will contain the first 100 MB or the first 200 fragments from * the specified start timestamp. For more information, see Kinesis Video Streams Limits.

*/ inline void ReplaceBody(Aws::IOStream* body) { m_payload = Aws::Utils::Stream::ResponseStream(body); } private: Aws::String m_contentType; Aws::Utils::Stream::ResponseStream m_payload; }; } // namespace Model } // namespace KinesisVideoArchivedMedia } // namespace Aws