AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CmafPackage.h
1
6#pragma once
7#include <aws/mediapackage/MediaPackage_EXPORTS.h>
8#include <aws/mediapackage/model/CmafEncryption.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/mediapackage/model/StreamSelection.h>
12#include <aws/mediapackage/model/HlsManifest.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaPackage
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_MEDIAPACKAGE_API CmafPackage();
40 AWS_MEDIAPACKAGE_API CmafPackage(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIAPACKAGE_API CmafPackage& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
47 inline const CmafEncryption& GetEncryption() const{ return m_encryption; }
48 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
49 inline void SetEncryption(const CmafEncryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
50 inline void SetEncryption(CmafEncryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
51 inline CmafPackage& WithEncryption(const CmafEncryption& value) { SetEncryption(value); return *this;}
52 inline CmafPackage& WithEncryption(CmafEncryption&& value) { SetEncryption(std::move(value)); return *this;}
54
56
59 inline const Aws::Vector<HlsManifest>& GetHlsManifests() const{ return m_hlsManifests; }
60 inline bool HlsManifestsHasBeenSet() const { return m_hlsManifestsHasBeenSet; }
61 inline void SetHlsManifests(const Aws::Vector<HlsManifest>& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests = value; }
62 inline void SetHlsManifests(Aws::Vector<HlsManifest>&& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests = std::move(value); }
63 inline CmafPackage& WithHlsManifests(const Aws::Vector<HlsManifest>& value) { SetHlsManifests(value); return *this;}
64 inline CmafPackage& WithHlsManifests(Aws::Vector<HlsManifest>&& value) { SetHlsManifests(std::move(value)); return *this;}
65 inline CmafPackage& AddHlsManifests(const HlsManifest& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests.push_back(value); return *this; }
66 inline CmafPackage& AddHlsManifests(HlsManifest&& value) { m_hlsManifestsHasBeenSet = true; m_hlsManifests.push_back(std::move(value)); return *this; }
68
70
76 inline int GetSegmentDurationSeconds() const{ return m_segmentDurationSeconds; }
77 inline bool SegmentDurationSecondsHasBeenSet() const { return m_segmentDurationSecondsHasBeenSet; }
78 inline void SetSegmentDurationSeconds(int value) { m_segmentDurationSecondsHasBeenSet = true; m_segmentDurationSeconds = value; }
79 inline CmafPackage& WithSegmentDurationSeconds(int value) { SetSegmentDurationSeconds(value); return *this;}
81
83
87 inline const Aws::String& GetSegmentPrefix() const{ return m_segmentPrefix; }
88 inline bool SegmentPrefixHasBeenSet() const { return m_segmentPrefixHasBeenSet; }
89 inline void SetSegmentPrefix(const Aws::String& value) { m_segmentPrefixHasBeenSet = true; m_segmentPrefix = value; }
90 inline void SetSegmentPrefix(Aws::String&& value) { m_segmentPrefixHasBeenSet = true; m_segmentPrefix = std::move(value); }
91 inline void SetSegmentPrefix(const char* value) { m_segmentPrefixHasBeenSet = true; m_segmentPrefix.assign(value); }
92 inline CmafPackage& WithSegmentPrefix(const Aws::String& value) { SetSegmentPrefix(value); return *this;}
93 inline CmafPackage& WithSegmentPrefix(Aws::String&& value) { SetSegmentPrefix(std::move(value)); return *this;}
94 inline CmafPackage& WithSegmentPrefix(const char* value) { SetSegmentPrefix(value); return *this;}
96
98
99 inline const StreamSelection& GetStreamSelection() const{ return m_streamSelection; }
100 inline bool StreamSelectionHasBeenSet() const { return m_streamSelectionHasBeenSet; }
101 inline void SetStreamSelection(const StreamSelection& value) { m_streamSelectionHasBeenSet = true; m_streamSelection = value; }
102 inline void SetStreamSelection(StreamSelection&& value) { m_streamSelectionHasBeenSet = true; m_streamSelection = std::move(value); }
103 inline CmafPackage& WithStreamSelection(const StreamSelection& value) { SetStreamSelection(value); return *this;}
104 inline CmafPackage& WithStreamSelection(StreamSelection&& value) { SetStreamSelection(std::move(value)); return *this;}
106 private:
107
108 CmafEncryption m_encryption;
109 bool m_encryptionHasBeenSet = false;
110
111 Aws::Vector<HlsManifest> m_hlsManifests;
112 bool m_hlsManifestsHasBeenSet = false;
113
114 int m_segmentDurationSeconds;
115 bool m_segmentDurationSecondsHasBeenSet = false;
116
117 Aws::String m_segmentPrefix;
118 bool m_segmentPrefixHasBeenSet = false;
119
120 StreamSelection m_streamSelection;
121 bool m_streamSelectionHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace MediaPackage
126} // namespace Aws
void SetEncryption(CmafEncryption &&value)
Definition CmafPackage.h:50
const Aws::String & GetSegmentPrefix() const
Definition CmafPackage.h:87
CmafPackage & WithHlsManifests(Aws::Vector< HlsManifest > &&value)
Definition CmafPackage.h:64
AWS_MEDIAPACKAGE_API CmafPackage(Aws::Utils::Json::JsonView jsonValue)
CmafPackage & AddHlsManifests(const HlsManifest &value)
Definition CmafPackage.h:65
AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const
CmafPackage & WithSegmentPrefix(const char *value)
Definition CmafPackage.h:94
const CmafEncryption & GetEncryption() const
Definition CmafPackage.h:47
const StreamSelection & GetStreamSelection() const
Definition CmafPackage.h:99
CmafPackage & WithHlsManifests(const Aws::Vector< HlsManifest > &value)
Definition CmafPackage.h:63
CmafPackage & WithStreamSelection(StreamSelection &&value)
void SetHlsManifests(const Aws::Vector< HlsManifest > &value)
Definition CmafPackage.h:61
CmafPackage & WithEncryption(CmafEncryption &&value)
Definition CmafPackage.h:52
void SetSegmentPrefix(const Aws::String &value)
Definition CmafPackage.h:89
void SetSegmentPrefix(Aws::String &&value)
Definition CmafPackage.h:90
void SetSegmentPrefix(const char *value)
Definition CmafPackage.h:91
CmafPackage & WithEncryption(const CmafEncryption &value)
Definition CmafPackage.h:51
void SetStreamSelection(const StreamSelection &value)
const Aws::Vector< HlsManifest > & GetHlsManifests() const
Definition CmafPackage.h:59
void SetEncryption(const CmafEncryption &value)
Definition CmafPackage.h:49
AWS_MEDIAPACKAGE_API CmafPackage & operator=(Aws::Utils::Json::JsonView jsonValue)
CmafPackage & WithStreamSelection(const StreamSelection &value)
void SetHlsManifests(Aws::Vector< HlsManifest > &&value)
Definition CmafPackage.h:62
CmafPackage & WithSegmentPrefix(Aws::String &&value)
Definition CmafPackage.h:93
CmafPackage & WithSegmentDurationSeconds(int value)
Definition CmafPackage.h:79
AWS_MEDIAPACKAGE_API CmafPackage()
CmafPackage & AddHlsManifests(HlsManifest &&value)
Definition CmafPackage.h:66
void SetStreamSelection(StreamSelection &&value)
CmafPackage & WithSegmentPrefix(const Aws::String &value)
Definition CmafPackage.h:92
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue