AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LogConfiguration.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mediatailor/model/AdsInteractionLog.h>
10#include <aws/mediatailor/model/ManifestServiceInteractionLog.h>
11#include <aws/mediatailor/model/LoggingStrategy.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MediaTailor
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_MEDIATAILOR_API LogConfiguration() = default;
39 AWS_MEDIATAILOR_API LogConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIATAILOR_API LogConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
55 inline int GetPercentEnabled() const { return m_percentEnabled; }
56 inline bool PercentEnabledHasBeenSet() const { return m_percentEnabledHasBeenSet; }
57 inline void SetPercentEnabled(int value) { m_percentEnabledHasBeenSet = true; m_percentEnabled = value; }
58 inline LogConfiguration& WithPercentEnabled(int value) { SetPercentEnabled(value); return *this;}
60
62
70 inline const Aws::Vector<LoggingStrategy>& GetEnabledLoggingStrategies() const { return m_enabledLoggingStrategies; }
71 inline bool EnabledLoggingStrategiesHasBeenSet() const { return m_enabledLoggingStrategiesHasBeenSet; }
72 template<typename EnabledLoggingStrategiesT = Aws::Vector<LoggingStrategy>>
73 void SetEnabledLoggingStrategies(EnabledLoggingStrategiesT&& value) { m_enabledLoggingStrategiesHasBeenSet = true; m_enabledLoggingStrategies = std::forward<EnabledLoggingStrategiesT>(value); }
74 template<typename EnabledLoggingStrategiesT = Aws::Vector<LoggingStrategy>>
75 LogConfiguration& WithEnabledLoggingStrategies(EnabledLoggingStrategiesT&& value) { SetEnabledLoggingStrategies(std::forward<EnabledLoggingStrategiesT>(value)); return *this;}
76 inline LogConfiguration& AddEnabledLoggingStrategies(LoggingStrategy value) { m_enabledLoggingStrategiesHasBeenSet = true; m_enabledLoggingStrategies.push_back(value); return *this; }
78
80
84 inline const AdsInteractionLog& GetAdsInteractionLog() const { return m_adsInteractionLog; }
85 inline bool AdsInteractionLogHasBeenSet() const { return m_adsInteractionLogHasBeenSet; }
86 template<typename AdsInteractionLogT = AdsInteractionLog>
87 void SetAdsInteractionLog(AdsInteractionLogT&& value) { m_adsInteractionLogHasBeenSet = true; m_adsInteractionLog = std::forward<AdsInteractionLogT>(value); }
88 template<typename AdsInteractionLogT = AdsInteractionLog>
89 LogConfiguration& WithAdsInteractionLog(AdsInteractionLogT&& value) { SetAdsInteractionLog(std::forward<AdsInteractionLogT>(value)); return *this;}
91
93
97 inline const ManifestServiceInteractionLog& GetManifestServiceInteractionLog() const { return m_manifestServiceInteractionLog; }
98 inline bool ManifestServiceInteractionLogHasBeenSet() const { return m_manifestServiceInteractionLogHasBeenSet; }
99 template<typename ManifestServiceInteractionLogT = ManifestServiceInteractionLog>
100 void SetManifestServiceInteractionLog(ManifestServiceInteractionLogT&& value) { m_manifestServiceInteractionLogHasBeenSet = true; m_manifestServiceInteractionLog = std::forward<ManifestServiceInteractionLogT>(value); }
101 template<typename ManifestServiceInteractionLogT = ManifestServiceInteractionLog>
102 LogConfiguration& WithManifestServiceInteractionLog(ManifestServiceInteractionLogT&& value) { SetManifestServiceInteractionLog(std::forward<ManifestServiceInteractionLogT>(value)); return *this;}
104 private:
105
106 int m_percentEnabled{0};
107 bool m_percentEnabledHasBeenSet = false;
108
109 Aws::Vector<LoggingStrategy> m_enabledLoggingStrategies;
110 bool m_enabledLoggingStrategiesHasBeenSet = false;
111
112 AdsInteractionLog m_adsInteractionLog;
113 bool m_adsInteractionLogHasBeenSet = false;
114
115 ManifestServiceInteractionLog m_manifestServiceInteractionLog;
116 bool m_manifestServiceInteractionLogHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace MediaTailor
121} // namespace Aws
const AdsInteractionLog & GetAdsInteractionLog() const
LogConfiguration & WithAdsInteractionLog(AdsInteractionLogT &&value)
void SetAdsInteractionLog(AdsInteractionLogT &&value)
AWS_MEDIATAILOR_API LogConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< LoggingStrategy > & GetEnabledLoggingStrategies() const
AWS_MEDIATAILOR_API LogConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIATAILOR_API LogConfiguration()=default
void SetEnabledLoggingStrategies(EnabledLoggingStrategiesT &&value)
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
LogConfiguration & WithManifestServiceInteractionLog(ManifestServiceInteractionLogT &&value)
void SetManifestServiceInteractionLog(ManifestServiceInteractionLogT &&value)
LogConfiguration & WithPercentEnabled(int value)
LogConfiguration & AddEnabledLoggingStrategies(LoggingStrategy value)
LogConfiguration & WithEnabledLoggingStrategies(EnabledLoggingStrategiesT &&value)
const ManifestServiceInteractionLog & GetManifestServiceInteractionLog() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue