AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
RuntimeLogConfigurations.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
9#include <aws/iot-managed-integrations/model/LogLevel.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTManagedIntegrations {
21namespace Model {
22
29 public:
30 AWS_IOTMANAGEDINTEGRATIONS_API RuntimeLogConfigurations() = default;
31 AWS_IOTMANAGEDINTEGRATIONS_API RuntimeLogConfigurations(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTMANAGEDINTEGRATIONS_API RuntimeLogConfigurations& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline LogLevel GetLogLevel() const { return m_logLevel; }
40 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
41 inline void SetLogLevel(LogLevel value) {
42 m_logLevelHasBeenSet = true;
43 m_logLevel = value;
44 }
46 SetLogLevel(value);
47 return *this;
48 }
50
52
55 inline LogLevel GetLogFlushLevel() const { return m_logFlushLevel; }
56 inline bool LogFlushLevelHasBeenSet() const { return m_logFlushLevelHasBeenSet; }
57 inline void SetLogFlushLevel(LogLevel value) {
58 m_logFlushLevelHasBeenSet = true;
59 m_logFlushLevel = value;
60 }
62 SetLogFlushLevel(value);
63 return *this;
64 }
66
68
71 inline const Aws::String& GetLocalStoreLocation() const { return m_localStoreLocation; }
72 inline bool LocalStoreLocationHasBeenSet() const { return m_localStoreLocationHasBeenSet; }
73 template <typename LocalStoreLocationT = Aws::String>
74 void SetLocalStoreLocation(LocalStoreLocationT&& value) {
75 m_localStoreLocationHasBeenSet = true;
76 m_localStoreLocation = std::forward<LocalStoreLocationT>(value);
77 }
78 template <typename LocalStoreLocationT = Aws::String>
79 RuntimeLogConfigurations& WithLocalStoreLocation(LocalStoreLocationT&& value) {
80 SetLocalStoreLocation(std::forward<LocalStoreLocationT>(value));
81 return *this;
82 }
84
86
90 inline int GetLocalStoreFileRotationMaxFiles() const { return m_localStoreFileRotationMaxFiles; }
91 inline bool LocalStoreFileRotationMaxFilesHasBeenSet() const { return m_localStoreFileRotationMaxFilesHasBeenSet; }
92 inline void SetLocalStoreFileRotationMaxFiles(int value) {
93 m_localStoreFileRotationMaxFilesHasBeenSet = true;
94 m_localStoreFileRotationMaxFiles = value;
95 }
101
103
107 inline int GetLocalStoreFileRotationMaxBytes() const { return m_localStoreFileRotationMaxBytes; }
108 inline bool LocalStoreFileRotationMaxBytesHasBeenSet() const { return m_localStoreFileRotationMaxBytesHasBeenSet; }
109 inline void SetLocalStoreFileRotationMaxBytes(int value) {
110 m_localStoreFileRotationMaxBytesHasBeenSet = true;
111 m_localStoreFileRotationMaxBytes = value;
112 }
118
120
124 inline bool GetUploadLog() const { return m_uploadLog; }
125 inline bool UploadLogHasBeenSet() const { return m_uploadLogHasBeenSet; }
126 inline void SetUploadLog(bool value) {
127 m_uploadLogHasBeenSet = true;
128 m_uploadLog = value;
129 }
131 SetUploadLog(value);
132 return *this;
133 }
135
137
141 inline int GetUploadPeriodMinutes() const { return m_uploadPeriodMinutes; }
142 inline bool UploadPeriodMinutesHasBeenSet() const { return m_uploadPeriodMinutesHasBeenSet; }
143 inline void SetUploadPeriodMinutes(int value) {
144 m_uploadPeriodMinutesHasBeenSet = true;
145 m_uploadPeriodMinutes = value;
146 }
149 return *this;
150 }
152
154
158 inline bool GetDeleteLocalStoreAfterUpload() const { return m_deleteLocalStoreAfterUpload; }
159 inline bool DeleteLocalStoreAfterUploadHasBeenSet() const { return m_deleteLocalStoreAfterUploadHasBeenSet; }
160 inline void SetDeleteLocalStoreAfterUpload(bool value) {
161 m_deleteLocalStoreAfterUploadHasBeenSet = true;
162 m_deleteLocalStoreAfterUpload = value;
163 }
166 return *this;
167 }
169 private:
170 LogLevel m_logLevel{LogLevel::NOT_SET};
171
172 LogLevel m_logFlushLevel{LogLevel::NOT_SET};
173
174 Aws::String m_localStoreLocation;
175
176 int m_localStoreFileRotationMaxFiles{0};
177
178 int m_localStoreFileRotationMaxBytes{0};
179
180 bool m_uploadLog{false};
181
182 int m_uploadPeriodMinutes{0};
183
184 bool m_deleteLocalStoreAfterUpload{false};
185 bool m_logLevelHasBeenSet = false;
186 bool m_logFlushLevelHasBeenSet = false;
187 bool m_localStoreLocationHasBeenSet = false;
188 bool m_localStoreFileRotationMaxFilesHasBeenSet = false;
189 bool m_localStoreFileRotationMaxBytesHasBeenSet = false;
190 bool m_uploadLogHasBeenSet = false;
191 bool m_uploadPeriodMinutesHasBeenSet = false;
192 bool m_deleteLocalStoreAfterUploadHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace IoTManagedIntegrations
197} // namespace Aws
AWS_IOTMANAGEDINTEGRATIONS_API RuntimeLogConfigurations()=default
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTMANAGEDINTEGRATIONS_API RuntimeLogConfigurations & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API RuntimeLogConfigurations(Aws::Utils::Json::JsonView jsonValue)
RuntimeLogConfigurations & WithLocalStoreLocation(LocalStoreLocationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue