AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Mp2Settings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/model/Mp2CodingMode.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaLive
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_MEDIALIVE_API Mp2Settings();
35 AWS_MEDIALIVE_API Mp2Settings(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MEDIALIVE_API Mp2Settings& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline double GetBitrate() const{ return m_bitrate; }
45 inline bool BitrateHasBeenSet() const { return m_bitrateHasBeenSet; }
46 inline void SetBitrate(double value) { m_bitrateHasBeenSet = true; m_bitrate = value; }
47 inline Mp2Settings& WithBitrate(double value) { SetBitrate(value); return *this;}
49
51
55 inline const Mp2CodingMode& GetCodingMode() const{ return m_codingMode; }
56 inline bool CodingModeHasBeenSet() const { return m_codingModeHasBeenSet; }
57 inline void SetCodingMode(const Mp2CodingMode& value) { m_codingModeHasBeenSet = true; m_codingMode = value; }
58 inline void SetCodingMode(Mp2CodingMode&& value) { m_codingModeHasBeenSet = true; m_codingMode = std::move(value); }
59 inline Mp2Settings& WithCodingMode(const Mp2CodingMode& value) { SetCodingMode(value); return *this;}
60 inline Mp2Settings& WithCodingMode(Mp2CodingMode&& value) { SetCodingMode(std::move(value)); return *this;}
62
64
67 inline double GetSampleRate() const{ return m_sampleRate; }
68 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
69 inline void SetSampleRate(double value) { m_sampleRateHasBeenSet = true; m_sampleRate = value; }
70 inline Mp2Settings& WithSampleRate(double value) { SetSampleRate(value); return *this;}
72 private:
73
74 double m_bitrate;
75 bool m_bitrateHasBeenSet = false;
76
77 Mp2CodingMode m_codingMode;
78 bool m_codingModeHasBeenSet = false;
79
80 double m_sampleRate;
81 bool m_sampleRateHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace MediaLive
86} // namespace Aws
Mp2Settings & WithCodingMode(const Mp2CodingMode &value)
Definition Mp2Settings.h:59
void SetCodingMode(const Mp2CodingMode &value)
Definition Mp2Settings.h:57
Mp2Settings & WithCodingMode(Mp2CodingMode &&value)
Definition Mp2Settings.h:60
Mp2Settings & WithBitrate(double value)
Definition Mp2Settings.h:47
Mp2Settings & WithSampleRate(double value)
Definition Mp2Settings.h:70
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIALIVE_API Mp2Settings & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCodingMode(Mp2CodingMode &&value)
Definition Mp2Settings.h:58
const Mp2CodingMode & GetCodingMode() const
Definition Mp2Settings.h:55
AWS_MEDIALIVE_API Mp2Settings(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue