AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LivePreRollConfiguration.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 MediaTailor
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_MEDIATAILOR_API LivePreRollConfiguration() = default;
37 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
48 inline const Aws::String& GetAdDecisionServerUrl() const { return m_adDecisionServerUrl; }
49 inline bool AdDecisionServerUrlHasBeenSet() const { return m_adDecisionServerUrlHasBeenSet; }
50 template<typename AdDecisionServerUrlT = Aws::String>
51 void SetAdDecisionServerUrl(AdDecisionServerUrlT&& value) { m_adDecisionServerUrlHasBeenSet = true; m_adDecisionServerUrl = std::forward<AdDecisionServerUrlT>(value); }
52 template<typename AdDecisionServerUrlT = Aws::String>
53 LivePreRollConfiguration& WithAdDecisionServerUrl(AdDecisionServerUrlT&& value) { SetAdDecisionServerUrl(std::forward<AdDecisionServerUrlT>(value)); return *this;}
55
57
62 inline int GetMaxDurationSeconds() const { return m_maxDurationSeconds; }
63 inline bool MaxDurationSecondsHasBeenSet() const { return m_maxDurationSecondsHasBeenSet; }
64 inline void SetMaxDurationSeconds(int value) { m_maxDurationSecondsHasBeenSet = true; m_maxDurationSeconds = value; }
65 inline LivePreRollConfiguration& WithMaxDurationSeconds(int value) { SetMaxDurationSeconds(value); return *this;}
67 private:
68
69 Aws::String m_adDecisionServerUrl;
70 bool m_adDecisionServerUrlHasBeenSet = false;
71
72 int m_maxDurationSeconds{0};
73 bool m_maxDurationSecondsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace MediaTailor
78} // namespace Aws
AWS_MEDIATAILOR_API LivePreRollConfiguration()=default
AWS_MEDIATAILOR_API LivePreRollConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LivePreRollConfiguration & WithMaxDurationSeconds(int value)
LivePreRollConfiguration & WithAdDecisionServerUrl(AdDecisionServerUrlT &&value)
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIATAILOR_API LivePreRollConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetAdDecisionServerUrl(AdDecisionServerUrlT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue