AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAdDecisionServerUrl(const Aws::String& value) { m_adDecisionServerUrlHasBeenSet = true; m_adDecisionServerUrl = value; }
51 inline void SetAdDecisionServerUrl(Aws::String&& value) { m_adDecisionServerUrlHasBeenSet = true; m_adDecisionServerUrl = std::move(value); }
52 inline void SetAdDecisionServerUrl(const char* value) { m_adDecisionServerUrlHasBeenSet = true; m_adDecisionServerUrl.assign(value); }
54 inline LivePreRollConfiguration& WithAdDecisionServerUrl(Aws::String&& value) { SetAdDecisionServerUrl(std::move(value)); return *this;}
55 inline LivePreRollConfiguration& WithAdDecisionServerUrl(const char* value) { SetAdDecisionServerUrl(value); return *this;}
57
59
64 inline int GetMaxDurationSeconds() const{ return m_maxDurationSeconds; }
65 inline bool MaxDurationSecondsHasBeenSet() const { return m_maxDurationSecondsHasBeenSet; }
66 inline void SetMaxDurationSeconds(int value) { m_maxDurationSecondsHasBeenSet = true; m_maxDurationSeconds = value; }
67 inline LivePreRollConfiguration& WithMaxDurationSeconds(int value) { SetMaxDurationSeconds(value); return *this;}
69 private:
70
71 Aws::String m_adDecisionServerUrl;
72 bool m_adDecisionServerUrlHasBeenSet = false;
73
74 int m_maxDurationSeconds;
75 bool m_maxDurationSecondsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace MediaTailor
80} // namespace Aws
AWS_MEDIATAILOR_API LivePreRollConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LivePreRollConfiguration & WithMaxDurationSeconds(int value)
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
LivePreRollConfiguration & WithAdDecisionServerUrl(const char *value)
LivePreRollConfiguration & WithAdDecisionServerUrl(const Aws::String &value)
LivePreRollConfiguration & WithAdDecisionServerUrl(Aws::String &&value)
AWS_MEDIATAILOR_API LivePreRollConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue