AWS SDK for C++

AWS SDK for C++ Version 1.11.609

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() = default;
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 HlsAkamaiHttpTransferMode GetHttpTransferMode() const { return m_httpTransferMode; }
68 inline bool HttpTransferModeHasBeenSet() const { return m_httpTransferModeHasBeenSet; }
69 inline void SetHttpTransferMode(HlsAkamaiHttpTransferMode value) { m_httpTransferModeHasBeenSet = true; m_httpTransferMode = value; }
72
74
79 inline int GetNumRetries() const { return m_numRetries; }
80 inline bool NumRetriesHasBeenSet() const { return m_numRetriesHasBeenSet; }
81 inline void SetNumRetries(int value) { m_numRetriesHasBeenSet = true; m_numRetries = value; }
82 inline HlsAkamaiSettings& WithNumRetries(int value) { SetNumRetries(value); return *this;}
84
86
90 inline int GetRestartDelay() const { return m_restartDelay; }
91 inline bool RestartDelayHasBeenSet() const { return m_restartDelayHasBeenSet; }
92 inline void SetRestartDelay(int value) { m_restartDelayHasBeenSet = true; m_restartDelay = value; }
93 inline HlsAkamaiSettings& WithRestartDelay(int value) { SetRestartDelay(value); return *this;}
95
97
100 inline const Aws::String& GetSalt() const { return m_salt; }
101 inline bool SaltHasBeenSet() const { return m_saltHasBeenSet; }
102 template<typename SaltT = Aws::String>
103 void SetSalt(SaltT&& value) { m_saltHasBeenSet = true; m_salt = std::forward<SaltT>(value); }
104 template<typename SaltT = Aws::String>
105 HlsAkamaiSettings& WithSalt(SaltT&& value) { SetSalt(std::forward<SaltT>(value)); return *this;}
107
109
112 inline const Aws::String& GetToken() const { return m_token; }
113 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
114 template<typename TokenT = Aws::String>
115 void SetToken(TokenT&& value) { m_tokenHasBeenSet = true; m_token = std::forward<TokenT>(value); }
116 template<typename TokenT = Aws::String>
117 HlsAkamaiSettings& WithToken(TokenT&& value) { SetToken(std::forward<TokenT>(value)); return *this;}
119 private:
120
121 int m_connectionRetryInterval{0};
122 bool m_connectionRetryIntervalHasBeenSet = false;
123
124 int m_filecacheDuration{0};
125 bool m_filecacheDurationHasBeenSet = false;
126
128 bool m_httpTransferModeHasBeenSet = false;
129
130 int m_numRetries{0};
131 bool m_numRetriesHasBeenSet = false;
132
133 int m_restartDelay{0};
134 bool m_restartDelayHasBeenSet = false;
135
136 Aws::String m_salt;
137 bool m_saltHasBeenSet = false;
138
139 Aws::String m_token;
140 bool m_tokenHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace MediaLive
145} // 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