AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
HlsAkamaiSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/medialive/MediaLive_EXPORTS.h>
9#include <aws/medialive/model/HlsAkamaiHttpTransferMode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MediaLive {
21namespace Model {
22
29 public:
30 AWS_MEDIALIVE_API HlsAkamaiSettings() = default;
31 AWS_MEDIALIVE_API HlsAkamaiSettings(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline int GetConnectionRetryInterval() const { return m_connectionRetryInterval; }
41 inline bool ConnectionRetryIntervalHasBeenSet() const { return m_connectionRetryIntervalHasBeenSet; }
42 inline void SetConnectionRetryInterval(int value) {
43 m_connectionRetryIntervalHasBeenSet = true;
44 m_connectionRetryInterval = value;
45 }
48 return *this;
49 }
51
53
56 inline int GetFilecacheDuration() const { return m_filecacheDuration; }
57 inline bool FilecacheDurationHasBeenSet() const { return m_filecacheDurationHasBeenSet; }
58 inline void SetFilecacheDuration(int value) {
59 m_filecacheDurationHasBeenSet = true;
60 m_filecacheDuration = value;
61 }
64 return *this;
65 }
67
69
73 inline HlsAkamaiHttpTransferMode GetHttpTransferMode() const { return m_httpTransferMode; }
74 inline bool HttpTransferModeHasBeenSet() const { return m_httpTransferModeHasBeenSet; }
76 m_httpTransferModeHasBeenSet = true;
77 m_httpTransferMode = value;
78 }
81 return *this;
82 }
84
86
91 inline int GetNumRetries() const { return m_numRetries; }
92 inline bool NumRetriesHasBeenSet() const { return m_numRetriesHasBeenSet; }
93 inline void SetNumRetries(int value) {
94 m_numRetriesHasBeenSet = true;
95 m_numRetries = value;
96 }
97 inline HlsAkamaiSettings& WithNumRetries(int value) {
98 SetNumRetries(value);
99 return *this;
100 }
102
104
108 inline int GetRestartDelay() const { return m_restartDelay; }
109 inline bool RestartDelayHasBeenSet() const { return m_restartDelayHasBeenSet; }
110 inline void SetRestartDelay(int value) {
111 m_restartDelayHasBeenSet = true;
112 m_restartDelay = value;
113 }
115 SetRestartDelay(value);
116 return *this;
117 }
119
121
124 inline const Aws::String& GetSalt() const { return m_salt; }
125 inline bool SaltHasBeenSet() const { return m_saltHasBeenSet; }
126 template <typename SaltT = Aws::String>
127 void SetSalt(SaltT&& value) {
128 m_saltHasBeenSet = true;
129 m_salt = std::forward<SaltT>(value);
130 }
131 template <typename SaltT = Aws::String>
132 HlsAkamaiSettings& WithSalt(SaltT&& value) {
133 SetSalt(std::forward<SaltT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetToken() const { return m_token; }
143 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
144 template <typename TokenT = Aws::String>
145 void SetToken(TokenT&& value) {
146 m_tokenHasBeenSet = true;
147 m_token = std::forward<TokenT>(value);
148 }
149 template <typename TokenT = Aws::String>
150 HlsAkamaiSettings& WithToken(TokenT&& value) {
151 SetToken(std::forward<TokenT>(value));
152 return *this;
153 }
155 private:
156 int m_connectionRetryInterval{0};
157
158 int m_filecacheDuration{0};
159
161
162 int m_numRetries{0};
163
164 int m_restartDelay{0};
165
166 Aws::String m_salt;
167
168 Aws::String m_token;
169 bool m_connectionRetryIntervalHasBeenSet = false;
170 bool m_filecacheDurationHasBeenSet = false;
171 bool m_httpTransferModeHasBeenSet = false;
172 bool m_numRetriesHasBeenSet = false;
173 bool m_restartDelayHasBeenSet = false;
174 bool m_saltHasBeenSet = false;
175 bool m_tokenHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace MediaLive
180} // namespace Aws
HlsAkamaiSettings & WithFilecacheDuration(int value)
HlsAkamaiSettings & WithHttpTransferMode(HlsAkamaiHttpTransferMode value)
HlsAkamaiSettings & WithNumRetries(int value)
HlsAkamaiSettings & WithSalt(SaltT &&value)
HlsAkamaiSettings & WithToken(TokenT &&value)
AWS_MEDIALIVE_API HlsAkamaiSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API HlsAkamaiSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API HlsAkamaiSettings()=default
HlsAkamaiHttpTransferMode GetHttpTransferMode() const
void SetHttpTransferMode(HlsAkamaiHttpTransferMode value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
HlsAkamaiSettings & WithConnectionRetryInterval(int value)
HlsAkamaiSettings & WithRestartDelay(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue