AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HlsAkamaiSettings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/model/HlsAkamaiHttpTransferMode.h>
9#include <aws/core/utils/memory/stl/AWSString.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 MediaLive
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_MEDIALIVE_API HlsAkamaiSettings();
36 AWS_MEDIALIVE_API HlsAkamaiSettings(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline int GetConnectionRetryInterval() const{ return m_connectionRetryInterval; }
47 inline bool ConnectionRetryIntervalHasBeenSet() const { return m_connectionRetryIntervalHasBeenSet; }
48 inline void SetConnectionRetryInterval(int value) { m_connectionRetryIntervalHasBeenSet = true; m_connectionRetryInterval = value; }
51
53
56 inline int GetFilecacheDuration() const{ return m_filecacheDuration; }
57 inline bool FilecacheDurationHasBeenSet() const { return m_filecacheDurationHasBeenSet; }
58 inline void SetFilecacheDuration(int value) { m_filecacheDurationHasBeenSet = true; m_filecacheDuration = value; }
59 inline HlsAkamaiSettings& WithFilecacheDuration(int value) { SetFilecacheDuration(value); return *this;}
61
63
67 inline const HlsAkamaiHttpTransferMode& GetHttpTransferMode() const{ return m_httpTransferMode; }
68 inline bool HttpTransferModeHasBeenSet() const { return m_httpTransferModeHasBeenSet; }
69 inline void SetHttpTransferMode(const HlsAkamaiHttpTransferMode& value) { m_httpTransferModeHasBeenSet = true; m_httpTransferMode = value; }
70 inline void SetHttpTransferMode(HlsAkamaiHttpTransferMode&& value) { m_httpTransferModeHasBeenSet = true; m_httpTransferMode = std::move(value); }
72 inline HlsAkamaiSettings& WithHttpTransferMode(HlsAkamaiHttpTransferMode&& value) { SetHttpTransferMode(std::move(value)); return *this;}
74
76
81 inline int GetNumRetries() const{ return m_numRetries; }
82 inline bool NumRetriesHasBeenSet() const { return m_numRetriesHasBeenSet; }
83 inline void SetNumRetries(int value) { m_numRetriesHasBeenSet = true; m_numRetries = value; }
84 inline HlsAkamaiSettings& WithNumRetries(int value) { SetNumRetries(value); return *this;}
86
88
92 inline int GetRestartDelay() const{ return m_restartDelay; }
93 inline bool RestartDelayHasBeenSet() const { return m_restartDelayHasBeenSet; }
94 inline void SetRestartDelay(int value) { m_restartDelayHasBeenSet = true; m_restartDelay = value; }
95 inline HlsAkamaiSettings& WithRestartDelay(int value) { SetRestartDelay(value); return *this;}
97
99
102 inline const Aws::String& GetSalt() const{ return m_salt; }
103 inline bool SaltHasBeenSet() const { return m_saltHasBeenSet; }
104 inline void SetSalt(const Aws::String& value) { m_saltHasBeenSet = true; m_salt = value; }
105 inline void SetSalt(Aws::String&& value) { m_saltHasBeenSet = true; m_salt = std::move(value); }
106 inline void SetSalt(const char* value) { m_saltHasBeenSet = true; m_salt.assign(value); }
107 inline HlsAkamaiSettings& WithSalt(const Aws::String& value) { SetSalt(value); return *this;}
108 inline HlsAkamaiSettings& WithSalt(Aws::String&& value) { SetSalt(std::move(value)); return *this;}
109 inline HlsAkamaiSettings& WithSalt(const char* value) { SetSalt(value); return *this;}
111
113
116 inline const Aws::String& GetToken() const{ return m_token; }
117 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
118 inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
119 inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
120 inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
121 inline HlsAkamaiSettings& WithToken(const Aws::String& value) { SetToken(value); return *this;}
122 inline HlsAkamaiSettings& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
123 inline HlsAkamaiSettings& WithToken(const char* value) { SetToken(value); return *this;}
125 private:
126
127 int m_connectionRetryInterval;
128 bool m_connectionRetryIntervalHasBeenSet = false;
129
130 int m_filecacheDuration;
131 bool m_filecacheDurationHasBeenSet = false;
132
133 HlsAkamaiHttpTransferMode m_httpTransferMode;
134 bool m_httpTransferModeHasBeenSet = false;
135
136 int m_numRetries;
137 bool m_numRetriesHasBeenSet = false;
138
139 int m_restartDelay;
140 bool m_restartDelayHasBeenSet = false;
141
142 Aws::String m_salt;
143 bool m_saltHasBeenSet = false;
144
145 Aws::String m_token;
146 bool m_tokenHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace MediaLive
151} // namespace Aws
HlsAkamaiSettings & WithFilecacheDuration(int value)
HlsAkamaiSettings & WithSalt(Aws::String &&value)
HlsAkamaiSettings & WithToken(const Aws::String &value)
HlsAkamaiSettings & WithNumRetries(int value)
const HlsAkamaiHttpTransferMode & GetHttpTransferMode() const
AWS_MEDIALIVE_API HlsAkamaiSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API HlsAkamaiSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
HlsAkamaiSettings & WithHttpTransferMode(HlsAkamaiHttpTransferMode &&value)
HlsAkamaiSettings & WithSalt(const char *value)
HlsAkamaiSettings & WithHttpTransferMode(const HlsAkamaiHttpTransferMode &value)
void SetSalt(const Aws::String &value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetHttpTransferMode(HlsAkamaiHttpTransferMode &&value)
HlsAkamaiSettings & WithConnectionRetryInterval(int value)
void SetHttpTransferMode(const HlsAkamaiHttpTransferMode &value)
void SetToken(const Aws::String &value)
HlsAkamaiSettings & WithSalt(const Aws::String &value)
HlsAkamaiSettings & WithToken(Aws::String &&value)
HlsAkamaiSettings & WithToken(const char *value)
HlsAkamaiSettings & WithRestartDelay(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue