This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/VideoCodecSettings.h

414 lines
14 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
#include <aws/mediaconvert/model/Av1Settings.h>
#include <aws/mediaconvert/model/VideoCodec.h>
#include <aws/mediaconvert/model/FrameCaptureSettings.h>
#include <aws/mediaconvert/model/H264Settings.h>
#include <aws/mediaconvert/model/H265Settings.h>
#include <aws/mediaconvert/model/Mpeg2Settings.h>
#include <aws/mediaconvert/model/ProresSettings.h>
#include <aws/mediaconvert/model/Vp8Settings.h>
#include <aws/mediaconvert/model/Vp9Settings.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaConvert
{
namespace Model
{
/**
* Video codec settings, (CodecSettings) under (VideoDescription), contains the
* group of settings related to video encoding. The settings in this group vary
* depending on the value that you choose for Video codec (Codec). For each codec
* enum that you choose, define the corresponding settings object. The following
* lists the codec enum, settings object pairs. * FRAME_CAPTURE,
* FrameCaptureSettings * AV1, Av1Settings * H_264, H264Settings * H_265,
* H265Settings * MPEG2, Mpeg2Settings * PRORES, ProresSettings * VP8, Vp8Settings
* * VP9, Vp9Settings<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/VideoCodecSettings">AWS
* API Reference</a></p>
*/
class AWS_MEDIACONVERT_API VideoCodecSettings
{
public:
VideoCodecSettings();
VideoCodecSettings(Aws::Utils::Json::JsonView jsonValue);
VideoCodecSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Required when you set Codec, under VideoDescription>CodecSettings to the value
* AV1.
*/
inline const Av1Settings& GetAv1Settings() const{ return m_av1Settings; }
/**
* Required when you set Codec, under VideoDescription>CodecSettings to the value
* AV1.
*/
inline bool Av1SettingsHasBeenSet() const { return m_av1SettingsHasBeenSet; }
/**
* Required when you set Codec, under VideoDescription>CodecSettings to the value
* AV1.
*/
inline void SetAv1Settings(const Av1Settings& value) { m_av1SettingsHasBeenSet = true; m_av1Settings = value; }
/**
* Required when you set Codec, under VideoDescription>CodecSettings to the value
* AV1.
*/
inline void SetAv1Settings(Av1Settings&& value) { m_av1SettingsHasBeenSet = true; m_av1Settings = std::move(value); }
/**
* Required when you set Codec, under VideoDescription>CodecSettings to the value
* AV1.
*/
inline VideoCodecSettings& WithAv1Settings(const Av1Settings& value) { SetAv1Settings(value); return *this;}
/**
* Required when you set Codec, under VideoDescription>CodecSettings to the value
* AV1.
*/
inline VideoCodecSettings& WithAv1Settings(Av1Settings&& value) { SetAv1Settings(std::move(value)); return *this;}
/**
* Specifies the video codec. This must be equal to one of the enum values defined
* by the object VideoCodec.
*/
inline const VideoCodec& GetCodec() const{ return m_codec; }
/**
* Specifies the video codec. This must be equal to one of the enum values defined
* by the object VideoCodec.
*/
inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
/**
* Specifies the video codec. This must be equal to one of the enum values defined
* by the object VideoCodec.
*/
inline void SetCodec(const VideoCodec& value) { m_codecHasBeenSet = true; m_codec = value; }
/**
* Specifies the video codec. This must be equal to one of the enum values defined
* by the object VideoCodec.
*/
inline void SetCodec(VideoCodec&& value) { m_codecHasBeenSet = true; m_codec = std::move(value); }
/**
* Specifies the video codec. This must be equal to one of the enum values defined
* by the object VideoCodec.
*/
inline VideoCodecSettings& WithCodec(const VideoCodec& value) { SetCodec(value); return *this;}
/**
* Specifies the video codec. This must be equal to one of the enum values defined
* by the object VideoCodec.
*/
inline VideoCodecSettings& WithCodec(VideoCodec&& value) { SetCodec(std::move(value)); return *this;}
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value FRAME_CAPTURE.
*/
inline const FrameCaptureSettings& GetFrameCaptureSettings() const{ return m_frameCaptureSettings; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value FRAME_CAPTURE.
*/
inline bool FrameCaptureSettingsHasBeenSet() const { return m_frameCaptureSettingsHasBeenSet; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value FRAME_CAPTURE.
*/
inline void SetFrameCaptureSettings(const FrameCaptureSettings& value) { m_frameCaptureSettingsHasBeenSet = true; m_frameCaptureSettings = value; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value FRAME_CAPTURE.
*/
inline void SetFrameCaptureSettings(FrameCaptureSettings&& value) { m_frameCaptureSettingsHasBeenSet = true; m_frameCaptureSettings = std::move(value); }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value FRAME_CAPTURE.
*/
inline VideoCodecSettings& WithFrameCaptureSettings(const FrameCaptureSettings& value) { SetFrameCaptureSettings(value); return *this;}
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value FRAME_CAPTURE.
*/
inline VideoCodecSettings& WithFrameCaptureSettings(FrameCaptureSettings&& value) { SetFrameCaptureSettings(std::move(value)); return *this;}
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value H_264.
*/
inline const H264Settings& GetH264Settings() const{ return m_h264Settings; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value H_264.
*/
inline bool H264SettingsHasBeenSet() const { return m_h264SettingsHasBeenSet; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value H_264.
*/
inline void SetH264Settings(const H264Settings& value) { m_h264SettingsHasBeenSet = true; m_h264Settings = value; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value H_264.
*/
inline void SetH264Settings(H264Settings&& value) { m_h264SettingsHasBeenSet = true; m_h264Settings = std::move(value); }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value H_264.
*/
inline VideoCodecSettings& WithH264Settings(const H264Settings& value) { SetH264Settings(value); return *this;}
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value H_264.
*/
inline VideoCodecSettings& WithH264Settings(H264Settings&& value) { SetH264Settings(std::move(value)); return *this;}
/**
* Settings for H265 codec
*/
inline const H265Settings& GetH265Settings() const{ return m_h265Settings; }
/**
* Settings for H265 codec
*/
inline bool H265SettingsHasBeenSet() const { return m_h265SettingsHasBeenSet; }
/**
* Settings for H265 codec
*/
inline void SetH265Settings(const H265Settings& value) { m_h265SettingsHasBeenSet = true; m_h265Settings = value; }
/**
* Settings for H265 codec
*/
inline void SetH265Settings(H265Settings&& value) { m_h265SettingsHasBeenSet = true; m_h265Settings = std::move(value); }
/**
* Settings for H265 codec
*/
inline VideoCodecSettings& WithH265Settings(const H265Settings& value) { SetH265Settings(value); return *this;}
/**
* Settings for H265 codec
*/
inline VideoCodecSettings& WithH265Settings(H265Settings&& value) { SetH265Settings(std::move(value)); return *this;}
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value MPEG2.
*/
inline const Mpeg2Settings& GetMpeg2Settings() const{ return m_mpeg2Settings; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value MPEG2.
*/
inline bool Mpeg2SettingsHasBeenSet() const { return m_mpeg2SettingsHasBeenSet; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value MPEG2.
*/
inline void SetMpeg2Settings(const Mpeg2Settings& value) { m_mpeg2SettingsHasBeenSet = true; m_mpeg2Settings = value; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value MPEG2.
*/
inline void SetMpeg2Settings(Mpeg2Settings&& value) { m_mpeg2SettingsHasBeenSet = true; m_mpeg2Settings = std::move(value); }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value MPEG2.
*/
inline VideoCodecSettings& WithMpeg2Settings(const Mpeg2Settings& value) { SetMpeg2Settings(value); return *this;}
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value MPEG2.
*/
inline VideoCodecSettings& WithMpeg2Settings(Mpeg2Settings&& value) { SetMpeg2Settings(std::move(value)); return *this;}
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value PRORES.
*/
inline const ProresSettings& GetProresSettings() const{ return m_proresSettings; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value PRORES.
*/
inline bool ProresSettingsHasBeenSet() const { return m_proresSettingsHasBeenSet; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value PRORES.
*/
inline void SetProresSettings(const ProresSettings& value) { m_proresSettingsHasBeenSet = true; m_proresSettings = value; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value PRORES.
*/
inline void SetProresSettings(ProresSettings&& value) { m_proresSettingsHasBeenSet = true; m_proresSettings = std::move(value); }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value PRORES.
*/
inline VideoCodecSettings& WithProresSettings(const ProresSettings& value) { SetProresSettings(value); return *this;}
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value PRORES.
*/
inline VideoCodecSettings& WithProresSettings(ProresSettings&& value) { SetProresSettings(std::move(value)); return *this;}
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value VP8.
*/
inline const Vp8Settings& GetVp8Settings() const{ return m_vp8Settings; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value VP8.
*/
inline bool Vp8SettingsHasBeenSet() const { return m_vp8SettingsHasBeenSet; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value VP8.
*/
inline void SetVp8Settings(const Vp8Settings& value) { m_vp8SettingsHasBeenSet = true; m_vp8Settings = value; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value VP8.
*/
inline void SetVp8Settings(Vp8Settings&& value) { m_vp8SettingsHasBeenSet = true; m_vp8Settings = std::move(value); }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value VP8.
*/
inline VideoCodecSettings& WithVp8Settings(const Vp8Settings& value) { SetVp8Settings(value); return *this;}
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value VP8.
*/
inline VideoCodecSettings& WithVp8Settings(Vp8Settings&& value) { SetVp8Settings(std::move(value)); return *this;}
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value VP9.
*/
inline const Vp9Settings& GetVp9Settings() const{ return m_vp9Settings; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value VP9.
*/
inline bool Vp9SettingsHasBeenSet() const { return m_vp9SettingsHasBeenSet; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value VP9.
*/
inline void SetVp9Settings(const Vp9Settings& value) { m_vp9SettingsHasBeenSet = true; m_vp9Settings = value; }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value VP9.
*/
inline void SetVp9Settings(Vp9Settings&& value) { m_vp9SettingsHasBeenSet = true; m_vp9Settings = std::move(value); }
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value VP9.
*/
inline VideoCodecSettings& WithVp9Settings(const Vp9Settings& value) { SetVp9Settings(value); return *this;}
/**
* Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the
* value VP9.
*/
inline VideoCodecSettings& WithVp9Settings(Vp9Settings&& value) { SetVp9Settings(std::move(value)); return *this;}
private:
Av1Settings m_av1Settings;
bool m_av1SettingsHasBeenSet;
VideoCodec m_codec;
bool m_codecHasBeenSet;
FrameCaptureSettings m_frameCaptureSettings;
bool m_frameCaptureSettingsHasBeenSet;
H264Settings m_h264Settings;
bool m_h264SettingsHasBeenSet;
H265Settings m_h265Settings;
bool m_h265SettingsHasBeenSet;
Mpeg2Settings m_mpeg2Settings;
bool m_mpeg2SettingsHasBeenSet;
ProresSettings m_proresSettings;
bool m_proresSettingsHasBeenSet;
Vp8Settings m_vp8Settings;
bool m_vp8SettingsHasBeenSet;
Vp9Settings m_vp9Settings;
bool m_vp9SettingsHasBeenSet;
};
} // namespace Model
} // namespace MediaConvert
} // namespace Aws