AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CloudWatchLogsLogStream.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opsworks/model/CloudWatchLogsTimeZone.h>
10#include <aws/opsworks/model/CloudWatchLogsInitialPosition.h>
11#include <aws/opsworks/model/CloudWatchLogsEncoding.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 OpsWorks
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_OPSWORKS_API CloudWatchLogsLogStream();
43 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
54 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
55 inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
56 inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
57 inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
58 inline CloudWatchLogsLogStream& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
59 inline CloudWatchLogsLogStream& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
60 inline CloudWatchLogsLogStream& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
62
64
70 inline const Aws::String& GetDatetimeFormat() const{ return m_datetimeFormat; }
71 inline bool DatetimeFormatHasBeenSet() const { return m_datetimeFormatHasBeenSet; }
72 inline void SetDatetimeFormat(const Aws::String& value) { m_datetimeFormatHasBeenSet = true; m_datetimeFormat = value; }
73 inline void SetDatetimeFormat(Aws::String&& value) { m_datetimeFormatHasBeenSet = true; m_datetimeFormat = std::move(value); }
74 inline void SetDatetimeFormat(const char* value) { m_datetimeFormatHasBeenSet = true; m_datetimeFormat.assign(value); }
75 inline CloudWatchLogsLogStream& WithDatetimeFormat(const Aws::String& value) { SetDatetimeFormat(value); return *this;}
76 inline CloudWatchLogsLogStream& WithDatetimeFormat(Aws::String&& value) { SetDatetimeFormat(std::move(value)); return *this;}
77 inline CloudWatchLogsLogStream& WithDatetimeFormat(const char* value) { SetDatetimeFormat(value); return *this;}
79
81
84 inline const CloudWatchLogsTimeZone& GetTimeZone() const{ return m_timeZone; }
85 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
86 inline void SetTimeZone(const CloudWatchLogsTimeZone& value) { m_timeZoneHasBeenSet = true; m_timeZone = value; }
87 inline void SetTimeZone(CloudWatchLogsTimeZone&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::move(value); }
88 inline CloudWatchLogsLogStream& WithTimeZone(const CloudWatchLogsTimeZone& value) { SetTimeZone(value); return *this;}
89 inline CloudWatchLogsLogStream& WithTimeZone(CloudWatchLogsTimeZone&& value) { SetTimeZone(std::move(value)); return *this;}
91
93
106 inline const Aws::String& GetFile() const{ return m_file; }
107 inline bool FileHasBeenSet() const { return m_fileHasBeenSet; }
108 inline void SetFile(const Aws::String& value) { m_fileHasBeenSet = true; m_file = value; }
109 inline void SetFile(Aws::String&& value) { m_fileHasBeenSet = true; m_file = std::move(value); }
110 inline void SetFile(const char* value) { m_fileHasBeenSet = true; m_file.assign(value); }
111 inline CloudWatchLogsLogStream& WithFile(const Aws::String& value) { SetFile(value); return *this;}
112 inline CloudWatchLogsLogStream& WithFile(Aws::String&& value) { SetFile(std::move(value)); return *this;}
113 inline CloudWatchLogsLogStream& WithFile(const char* value) { SetFile(value); return *this;}
115
117
124 inline const Aws::String& GetFileFingerprintLines() const{ return m_fileFingerprintLines; }
125 inline bool FileFingerprintLinesHasBeenSet() const { return m_fileFingerprintLinesHasBeenSet; }
126 inline void SetFileFingerprintLines(const Aws::String& value) { m_fileFingerprintLinesHasBeenSet = true; m_fileFingerprintLines = value; }
127 inline void SetFileFingerprintLines(Aws::String&& value) { m_fileFingerprintLinesHasBeenSet = true; m_fileFingerprintLines = std::move(value); }
128 inline void SetFileFingerprintLines(const char* value) { m_fileFingerprintLinesHasBeenSet = true; m_fileFingerprintLines.assign(value); }
130 inline CloudWatchLogsLogStream& WithFileFingerprintLines(Aws::String&& value) { SetFileFingerprintLines(std::move(value)); return *this;}
131 inline CloudWatchLogsLogStream& WithFileFingerprintLines(const char* value) { SetFileFingerprintLines(value); return *this;}
133
135
138 inline const Aws::String& GetMultiLineStartPattern() const{ return m_multiLineStartPattern; }
139 inline bool MultiLineStartPatternHasBeenSet() const { return m_multiLineStartPatternHasBeenSet; }
140 inline void SetMultiLineStartPattern(const Aws::String& value) { m_multiLineStartPatternHasBeenSet = true; m_multiLineStartPattern = value; }
141 inline void SetMultiLineStartPattern(Aws::String&& value) { m_multiLineStartPatternHasBeenSet = true; m_multiLineStartPattern = std::move(value); }
142 inline void SetMultiLineStartPattern(const char* value) { m_multiLineStartPatternHasBeenSet = true; m_multiLineStartPattern.assign(value); }
145 inline CloudWatchLogsLogStream& WithMultiLineStartPattern(const char* value) { SetMultiLineStartPattern(value); return *this;}
147
149
154 inline const CloudWatchLogsInitialPosition& GetInitialPosition() const{ return m_initialPosition; }
155 inline bool InitialPositionHasBeenSet() const { return m_initialPositionHasBeenSet; }
156 inline void SetInitialPosition(const CloudWatchLogsInitialPosition& value) { m_initialPositionHasBeenSet = true; m_initialPosition = value; }
157 inline void SetInitialPosition(CloudWatchLogsInitialPosition&& value) { m_initialPositionHasBeenSet = true; m_initialPosition = std::move(value); }
161
163
168 inline const CloudWatchLogsEncoding& GetEncoding() const{ return m_encoding; }
169 inline bool EncodingHasBeenSet() const { return m_encodingHasBeenSet; }
170 inline void SetEncoding(const CloudWatchLogsEncoding& value) { m_encodingHasBeenSet = true; m_encoding = value; }
171 inline void SetEncoding(CloudWatchLogsEncoding&& value) { m_encodingHasBeenSet = true; m_encoding = std::move(value); }
172 inline CloudWatchLogsLogStream& WithEncoding(const CloudWatchLogsEncoding& value) { SetEncoding(value); return *this;}
173 inline CloudWatchLogsLogStream& WithEncoding(CloudWatchLogsEncoding&& value) { SetEncoding(std::move(value)); return *this;}
175
177
181 inline int GetBufferDuration() const{ return m_bufferDuration; }
182 inline bool BufferDurationHasBeenSet() const { return m_bufferDurationHasBeenSet; }
183 inline void SetBufferDuration(int value) { m_bufferDurationHasBeenSet = true; m_bufferDuration = value; }
184 inline CloudWatchLogsLogStream& WithBufferDuration(int value) { SetBufferDuration(value); return *this;}
186
188
192 inline int GetBatchCount() const{ return m_batchCount; }
193 inline bool BatchCountHasBeenSet() const { return m_batchCountHasBeenSet; }
194 inline void SetBatchCount(int value) { m_batchCountHasBeenSet = true; m_batchCount = value; }
195 inline CloudWatchLogsLogStream& WithBatchCount(int value) { SetBatchCount(value); return *this;}
197
199
204 inline int GetBatchSize() const{ return m_batchSize; }
205 inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; }
206 inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; }
207 inline CloudWatchLogsLogStream& WithBatchSize(int value) { SetBatchSize(value); return *this;}
209 private:
210
211 Aws::String m_logGroupName;
212 bool m_logGroupNameHasBeenSet = false;
213
214 Aws::String m_datetimeFormat;
215 bool m_datetimeFormatHasBeenSet = false;
216
217 CloudWatchLogsTimeZone m_timeZone;
218 bool m_timeZoneHasBeenSet = false;
219
220 Aws::String m_file;
221 bool m_fileHasBeenSet = false;
222
223 Aws::String m_fileFingerprintLines;
224 bool m_fileFingerprintLinesHasBeenSet = false;
225
226 Aws::String m_multiLineStartPattern;
227 bool m_multiLineStartPatternHasBeenSet = false;
228
229 CloudWatchLogsInitialPosition m_initialPosition;
230 bool m_initialPositionHasBeenSet = false;
231
232 CloudWatchLogsEncoding m_encoding;
233 bool m_encodingHasBeenSet = false;
234
235 int m_bufferDuration;
236 bool m_bufferDurationHasBeenSet = false;
237
238 int m_batchCount;
239 bool m_batchCountHasBeenSet = false;
240
241 int m_batchSize;
242 bool m_batchSizeHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace OpsWorks
247} // namespace Aws
CloudWatchLogsLogStream & WithFile(const char *value)
void SetEncoding(CloudWatchLogsEncoding &&value)
CloudWatchLogsLogStream & WithTimeZone(const CloudWatchLogsTimeZone &value)
const CloudWatchLogsEncoding & GetEncoding() const
AWS_OPSWORKS_API CloudWatchLogsLogStream & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudWatchLogsLogStream & WithBatchCount(int value)
void SetTimeZone(CloudWatchLogsTimeZone &&value)
CloudWatchLogsLogStream & WithLogGroupName(const Aws::String &value)
CloudWatchLogsLogStream & WithBufferDuration(int value)
CloudWatchLogsLogStream & WithDatetimeFormat(Aws::String &&value)
void SetTimeZone(const CloudWatchLogsTimeZone &value)
CloudWatchLogsLogStream & WithFileFingerprintLines(Aws::String &&value)
CloudWatchLogsLogStream & WithFile(const Aws::String &value)
const CloudWatchLogsInitialPosition & GetInitialPosition() const
CloudWatchLogsLogStream & WithMultiLineStartPattern(Aws::String &&value)
CloudWatchLogsLogStream & WithLogGroupName(Aws::String &&value)
CloudWatchLogsLogStream & WithLogGroupName(const char *value)
CloudWatchLogsLogStream & WithInitialPosition(CloudWatchLogsInitialPosition &&value)
CloudWatchLogsLogStream & WithMultiLineStartPattern(const char *value)
CloudWatchLogsLogStream & WithFileFingerprintLines(const Aws::String &value)
AWS_OPSWORKS_API CloudWatchLogsLogStream(Aws::Utils::Json::JsonView jsonValue)
CloudWatchLogsLogStream & WithEncoding(const CloudWatchLogsEncoding &value)
const CloudWatchLogsTimeZone & GetTimeZone() const
CloudWatchLogsLogStream & WithFileFingerprintLines(const char *value)
CloudWatchLogsLogStream & WithBatchSize(int value)
void SetEncoding(const CloudWatchLogsEncoding &value)
void SetInitialPosition(CloudWatchLogsInitialPosition &&value)
CloudWatchLogsLogStream & WithTimeZone(CloudWatchLogsTimeZone &&value)
CloudWatchLogsLogStream & WithDatetimeFormat(const char *value)
CloudWatchLogsLogStream & WithEncoding(CloudWatchLogsEncoding &&value)
CloudWatchLogsLogStream & WithDatetimeFormat(const Aws::String &value)
CloudWatchLogsLogStream & WithFile(Aws::String &&value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInitialPosition(const CloudWatchLogsInitialPosition &value)
CloudWatchLogsLogStream & WithInitialPosition(const CloudWatchLogsInitialPosition &value)
CloudWatchLogsLogStream & WithMultiLineStartPattern(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue