AWS SDK for C++  1.9.105
AWS SDK for C++
LivePreRollConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace MediaTailor
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
47  inline const Aws::String& GetAdDecisionServerUrl() const{ return m_adDecisionServerUrl; }
48 
56  inline bool AdDecisionServerUrlHasBeenSet() const { return m_adDecisionServerUrlHasBeenSet; }
57 
65  inline void SetAdDecisionServerUrl(const Aws::String& value) { m_adDecisionServerUrlHasBeenSet = true; m_adDecisionServerUrl = value; }
66 
74  inline void SetAdDecisionServerUrl(Aws::String&& value) { m_adDecisionServerUrlHasBeenSet = true; m_adDecisionServerUrl = std::move(value); }
75 
83  inline void SetAdDecisionServerUrl(const char* value) { m_adDecisionServerUrlHasBeenSet = true; m_adDecisionServerUrl.assign(value); }
84 
92  inline LivePreRollConfiguration& WithAdDecisionServerUrl(const Aws::String& value) { SetAdDecisionServerUrl(value); return *this;}
93 
101  inline LivePreRollConfiguration& WithAdDecisionServerUrl(Aws::String&& value) { SetAdDecisionServerUrl(std::move(value)); return *this;}
102 
110  inline LivePreRollConfiguration& WithAdDecisionServerUrl(const char* value) { SetAdDecisionServerUrl(value); return *this;}
111 
112 
118  inline int GetMaxDurationSeconds() const{ return m_maxDurationSeconds; }
119 
125  inline bool MaxDurationSecondsHasBeenSet() const { return m_maxDurationSecondsHasBeenSet; }
126 
132  inline void SetMaxDurationSeconds(int value) { m_maxDurationSecondsHasBeenSet = true; m_maxDurationSeconds = value; }
133 
139  inline LivePreRollConfiguration& WithMaxDurationSeconds(int value) { SetMaxDurationSeconds(value); return *this;}
140 
141  private:
142 
143  Aws::String m_adDecisionServerUrl;
144  bool m_adDecisionServerUrlHasBeenSet;
145 
146  int m_maxDurationSeconds;
147  bool m_maxDurationSecondsHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace MediaTailor
152 } // namespace Aws
Aws::MediaTailor::Model::LivePreRollConfiguration::GetMaxDurationSeconds
int GetMaxDurationSeconds() const
Definition: LivePreRollConfiguration.h:118
Aws::MediaTailor::Model::LivePreRollConfiguration::MaxDurationSecondsHasBeenSet
bool MaxDurationSecondsHasBeenSet() const
Definition: LivePreRollConfiguration.h:125
AWS_MEDIATAILOR_API
#define AWS_MEDIATAILOR_API
Definition: MediaTailor_EXPORTS.h:28
Aws::MediaTailor::Model::LivePreRollConfiguration::AdDecisionServerUrlHasBeenSet
bool AdDecisionServerUrlHasBeenSet() const
Definition: LivePreRollConfiguration.h:56
Aws::MediaTailor::Model::LivePreRollConfiguration
Definition: LivePreRollConfiguration.h:32
Aws::MediaTailor::Model::LivePreRollConfiguration::LivePreRollConfiguration
LivePreRollConfiguration()
Aws::MediaTailor::Model::LivePreRollConfiguration::SetAdDecisionServerUrl
void SetAdDecisionServerUrl(const Aws::String &value)
Definition: LivePreRollConfiguration.h:65
Aws::MediaTailor::Model::LivePreRollConfiguration::WithAdDecisionServerUrl
LivePreRollConfiguration & WithAdDecisionServerUrl(Aws::String &&value)
Definition: LivePreRollConfiguration.h:101
Aws::MediaTailor::Model::LivePreRollConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MediaTailor::Model::LivePreRollConfiguration::SetMaxDurationSeconds
void SetMaxDurationSeconds(int value)
Definition: LivePreRollConfiguration.h:132
Aws::MediaTailor::Model::LivePreRollConfiguration::SetAdDecisionServerUrl
void SetAdDecisionServerUrl(const char *value)
Definition: LivePreRollConfiguration.h:83
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
MediaTailor_EXPORTS.h
Aws::MediaTailor::Model::LivePreRollConfiguration::WithAdDecisionServerUrl
LivePreRollConfiguration & WithAdDecisionServerUrl(const Aws::String &value)
Definition: LivePreRollConfiguration.h:92
Aws::MediaTailor::Model::LivePreRollConfiguration::SetAdDecisionServerUrl
void SetAdDecisionServerUrl(Aws::String &&value)
Definition: LivePreRollConfiguration.h:74
Aws::MediaTailor::Model::LivePreRollConfiguration::WithAdDecisionServerUrl
LivePreRollConfiguration & WithAdDecisionServerUrl(const char *value)
Definition: LivePreRollConfiguration.h:110
Aws
Definition: AccessManagementClient.h:15
Aws::MediaTailor::Model::LivePreRollConfiguration::WithMaxDurationSeconds
LivePreRollConfiguration & WithMaxDurationSeconds(int value)
Definition: LivePreRollConfiguration.h:139
Aws::MediaTailor::Model::LivePreRollConfiguration::LivePreRollConfiguration
LivePreRollConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaTailor::Model::LivePreRollConfiguration::operator=
LivePreRollConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MediaTailor::Model::LivePreRollConfiguration::GetAdDecisionServerUrl
const Aws::String & GetAdDecisionServerUrl() const
Definition: LivePreRollConfiguration.h:47