AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
HlsPlaylistSettings.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mediatailor/model/AdMarkupType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaTailor
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_MEDIATAILOR_API HlsPlaylistSettings() = default;
36 AWS_MEDIATAILOR_API HlsPlaylistSettings(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline int GetManifestWindowSeconds() const { return m_manifestWindowSeconds; }
47 inline bool ManifestWindowSecondsHasBeenSet() const { return m_manifestWindowSecondsHasBeenSet; }
48 inline void SetManifestWindowSeconds(int value) { m_manifestWindowSecondsHasBeenSet = true; m_manifestWindowSeconds = value; }
51
53
59 inline const Aws::Vector<AdMarkupType>& GetAdMarkupType() const { return m_adMarkupType; }
60 inline bool AdMarkupTypeHasBeenSet() const { return m_adMarkupTypeHasBeenSet; }
61 template<typename AdMarkupTypeT = Aws::Vector<AdMarkupType>>
62 void SetAdMarkupType(AdMarkupTypeT&& value) { m_adMarkupTypeHasBeenSet = true; m_adMarkupType = std::forward<AdMarkupTypeT>(value); }
63 template<typename AdMarkupTypeT = Aws::Vector<AdMarkupType>>
64 HlsPlaylistSettings& WithAdMarkupType(AdMarkupTypeT&& value) { SetAdMarkupType(std::forward<AdMarkupTypeT>(value)); return *this;}
65 inline HlsPlaylistSettings& AddAdMarkupType(AdMarkupType value) { m_adMarkupTypeHasBeenSet = true; m_adMarkupType.push_back(value); return *this; }
67 private:
68
69 int m_manifestWindowSeconds{0};
70 bool m_manifestWindowSecondsHasBeenSet = false;
71
72 Aws::Vector<AdMarkupType> m_adMarkupType;
73 bool m_adMarkupTypeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace MediaTailor
78} // namespace Aws
HlsPlaylistSettings & AddAdMarkupType(AdMarkupType value)
HlsPlaylistSettings & WithAdMarkupType(AdMarkupTypeT &&value)
HlsPlaylistSettings & WithManifestWindowSeconds(int value)
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIATAILOR_API HlsPlaylistSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIATAILOR_API HlsPlaylistSettings(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AdMarkupType > & GetAdMarkupType() const
AWS_MEDIATAILOR_API HlsPlaylistSettings()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue