/**
* 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
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaPackageVod
{
namespace Model
{
/**
* An HTTP Live Streaming (HLS) packaging configuration.See Also:
AWS
* API Reference
*/
class HlsPackage
{
public:
AWS_MEDIAPACKAGEVOD_API HlsPackage();
AWS_MEDIAPACKAGEVOD_API HlsPackage(Aws::Utils::Json::JsonView jsonValue);
AWS_MEDIAPACKAGEVOD_API HlsPackage& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_MEDIAPACKAGEVOD_API Aws::Utils::Json::JsonValue Jsonize() const;
inline const HlsEncryption& GetEncryption() const{ return m_encryption; }
inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
inline void SetEncryption(const HlsEncryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
inline void SetEncryption(HlsEncryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
inline HlsPackage& WithEncryption(const HlsEncryption& value) { SetEncryption(value); return *this;}
inline HlsPackage& WithEncryption(HlsEncryption&& value) { SetEncryption(std::move(value)); return *this;}
/**
* A list of HLS manifest configurations.
*/
inline const Aws::Vector& GetHlsManifests() const{ return m_hlsManifests; }
/**
* A list of HLS manifest configurations.
*/
inline bool HlsManifestsHasBeenSet() const { return m_hlsManifestsHasBeenSet; }
/**
* A list of HLS manifest configurations.
*/
inline void SetHlsManifests(const Aws::Vector& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests = value; }
/**
* A list of HLS manifest configurations.
*/
inline void SetHlsManifests(Aws::Vector&& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests = std::move(value); }
/**
* A list of HLS manifest configurations.
*/
inline HlsPackage& WithHlsManifests(const Aws::Vector& value) { SetHlsManifests(value); return *this;}
/**
* A list of HLS manifest configurations.
*/
inline HlsPackage& WithHlsManifests(Aws::Vector&& value) { SetHlsManifests(std::move(value)); return *this;}
/**
* A list of HLS manifest configurations.
*/
inline HlsPackage& AddHlsManifests(const HlsManifest& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests.push_back(value); return *this; }
/**
* A list of HLS manifest configurations.
*/
inline HlsPackage& AddHlsManifests(HlsManifest&& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests.push_back(std::move(value)); return *this; }
/**
* When enabled, MediaPackage passes through digital video broadcasting (DVB)
* subtitles into the output.
*/
inline bool GetIncludeDvbSubtitles() const{ return m_includeDvbSubtitles; }
/**
* When enabled, MediaPackage passes through digital video broadcasting (DVB)
* subtitles into the output.
*/
inline bool IncludeDvbSubtitlesHasBeenSet() const { return m_includeDvbSubtitlesHasBeenSet; }
/**
* When enabled, MediaPackage passes through digital video broadcasting (DVB)
* subtitles into the output.
*/
inline void SetIncludeDvbSubtitles(bool value) { m_includeDvbSubtitlesHasBeenSet = true; m_includeDvbSubtitles = value; }
/**
* When enabled, MediaPackage passes through digital video broadcasting (DVB)
* subtitles into the output.
*/
inline HlsPackage& WithIncludeDvbSubtitles(bool value) { SetIncludeDvbSubtitles(value); return *this;}
/**
* Duration (in seconds) of each fragment. Actual fragments will be
rounded to the
* nearest multiple of the source fragment duration.
*/
inline int GetSegmentDurationSeconds() const{ return m_segmentDurationSeconds; }
/**
* Duration (in seconds) of each fragment. Actual fragments will be
rounded to the
* nearest multiple of the source fragment duration.
*/
inline bool SegmentDurationSecondsHasBeenSet() const { return m_segmentDurationSecondsHasBeenSet; }
/**
* Duration (in seconds) of each fragment. Actual fragments will be
rounded to the
* nearest multiple of the source fragment duration.
*/
inline void SetSegmentDurationSeconds(int value) { m_segmentDurationSecondsHasBeenSet = true; m_segmentDurationSeconds = value; }
/**
* Duration (in seconds) of each fragment. Actual fragments will be
rounded to the
* nearest multiple of the source fragment duration.
*/
inline HlsPackage& WithSegmentDurationSeconds(int value) { SetSegmentDurationSeconds(value); return *this;}
/**
* When enabled, audio streams will be placed in rendition groups in the output.
*/
inline bool GetUseAudioRenditionGroup() const{ return m_useAudioRenditionGroup; }
/**
* When enabled, audio streams will be placed in rendition groups in the output.
*/
inline bool UseAudioRenditionGroupHasBeenSet() const { return m_useAudioRenditionGroupHasBeenSet; }
/**
* When enabled, audio streams will be placed in rendition groups in the output.
*/
inline void SetUseAudioRenditionGroup(bool value) { m_useAudioRenditionGroupHasBeenSet = true; m_useAudioRenditionGroup = value; }
/**
* When enabled, audio streams will be placed in rendition groups in the output.
*/
inline HlsPackage& WithUseAudioRenditionGroup(bool value) { SetUseAudioRenditionGroup(value); return *this;}
private:
HlsEncryption m_encryption;
bool m_encryptionHasBeenSet = false;
Aws::Vector m_hlsManifests;
bool m_hlsManifestsHasBeenSet = false;
bool m_includeDvbSubtitles;
bool m_includeDvbSubtitlesHasBeenSet = false;
int m_segmentDurationSeconds;
bool m_segmentDurationSecondsHasBeenSet = false;
bool m_useAudioRenditionGroup;
bool m_useAudioRenditionGroupHasBeenSet = false;
};
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws