AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LogStream.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudWatchLogs {
20namespace Model {
21
28class LogStream {
29 public:
30 AWS_CLOUDWATCHLOGS_API LogStream() = default;
31 AWS_CLOUDWATCHLOGS_API LogStream(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDWATCHLOGS_API LogStream& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetLogStreamName() const { return m_logStreamName; }
40 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
41 template <typename LogStreamNameT = Aws::String>
42 void SetLogStreamName(LogStreamNameT&& value) {
43 m_logStreamNameHasBeenSet = true;
44 m_logStreamName = std::forward<LogStreamNameT>(value);
45 }
46 template <typename LogStreamNameT = Aws::String>
47 LogStream& WithLogStreamName(LogStreamNameT&& value) {
48 SetLogStreamName(std::forward<LogStreamNameT>(value));
49 return *this;
50 }
52
54
58 inline long long GetCreationTime() const { return m_creationTime; }
59 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
60 inline void SetCreationTime(long long value) {
61 m_creationTimeHasBeenSet = true;
62 m_creationTime = value;
63 }
64 inline LogStream& WithCreationTime(long long value) {
65 SetCreationTime(value);
66 return *this;
67 }
69
71
75 inline long long GetFirstEventTimestamp() const { return m_firstEventTimestamp; }
76 inline bool FirstEventTimestampHasBeenSet() const { return m_firstEventTimestampHasBeenSet; }
77 inline void SetFirstEventTimestamp(long long value) {
78 m_firstEventTimestampHasBeenSet = true;
79 m_firstEventTimestamp = value;
80 }
81 inline LogStream& WithFirstEventTimestamp(long long value) {
83 return *this;
84 }
86
88
95 inline long long GetLastEventTimestamp() const { return m_lastEventTimestamp; }
96 inline bool LastEventTimestampHasBeenSet() const { return m_lastEventTimestampHasBeenSet; }
97 inline void SetLastEventTimestamp(long long value) {
98 m_lastEventTimestampHasBeenSet = true;
99 m_lastEventTimestamp = value;
100 }
101 inline LogStream& WithLastEventTimestamp(long long value) {
103 return *this;
104 }
106
108
114 inline long long GetLastIngestionTime() const { return m_lastIngestionTime; }
115 inline bool LastIngestionTimeHasBeenSet() const { return m_lastIngestionTimeHasBeenSet; }
116 inline void SetLastIngestionTime(long long value) {
117 m_lastIngestionTimeHasBeenSet = true;
118 m_lastIngestionTime = value;
119 }
120 inline LogStream& WithLastIngestionTime(long long value) {
122 return *this;
123 }
125
127
134 inline const Aws::String& GetUploadSequenceToken() const { return m_uploadSequenceToken; }
135 inline bool UploadSequenceTokenHasBeenSet() const { return m_uploadSequenceTokenHasBeenSet; }
136 template <typename UploadSequenceTokenT = Aws::String>
137 void SetUploadSequenceToken(UploadSequenceTokenT&& value) {
138 m_uploadSequenceTokenHasBeenSet = true;
139 m_uploadSequenceToken = std::forward<UploadSequenceTokenT>(value);
140 }
141 template <typename UploadSequenceTokenT = Aws::String>
142 LogStream& WithUploadSequenceToken(UploadSequenceTokenT&& value) {
143 SetUploadSequenceToken(std::forward<UploadSequenceTokenT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetArn() const { return m_arn; }
153 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
154 template <typename ArnT = Aws::String>
155 void SetArn(ArnT&& value) {
156 m_arnHasBeenSet = true;
157 m_arn = std::forward<ArnT>(value);
158 }
159 template <typename ArnT = Aws::String>
160 LogStream& WithArn(ArnT&& value) {
161 SetArn(std::forward<ArnT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_logStreamName;
167
168 long long m_creationTime{0};
169
170 long long m_firstEventTimestamp{0};
171
172 long long m_lastEventTimestamp{0};
173
174 long long m_lastIngestionTime{0};
175
176 Aws::String m_uploadSequenceToken;
177
178 Aws::String m_arn;
179 bool m_logStreamNameHasBeenSet = false;
180 bool m_creationTimeHasBeenSet = false;
181 bool m_firstEventTimestampHasBeenSet = false;
182 bool m_lastEventTimestampHasBeenSet = false;
183 bool m_lastIngestionTimeHasBeenSet = false;
184 bool m_uploadSequenceTokenHasBeenSet = false;
185 bool m_arnHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace CloudWatchLogs
190} // namespace Aws
LogStream & WithLogStreamName(LogStreamNameT &&value)
Definition LogStream.h:47
long long GetFirstEventTimestamp() const
Definition LogStream.h:75
AWS_CLOUDWATCHLOGS_API LogStream & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API LogStream(Aws::Utils::Json::JsonView jsonValue)
LogStream & WithArn(ArnT &&value)
Definition LogStream.h:160
void SetFirstEventTimestamp(long long value)
Definition LogStream.h:77
AWS_CLOUDWATCHLOGS_API LogStream()=default
void SetLogStreamName(LogStreamNameT &&value)
Definition LogStream.h:42
void SetCreationTime(long long value)
Definition LogStream.h:60
LogStream & WithUploadSequenceToken(UploadSequenceTokenT &&value)
Definition LogStream.h:142
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
long long GetLastEventTimestamp() const
Definition LogStream.h:95
LogStream & WithFirstEventTimestamp(long long value)
Definition LogStream.h:81
LogStream & WithLastIngestionTime(long long value)
Definition LogStream.h:120
void SetLastIngestionTime(long long value)
Definition LogStream.h:116
const Aws::String & GetUploadSequenceToken() const
Definition LogStream.h:134
LogStream & WithCreationTime(long long value)
Definition LogStream.h:64
LogStream & WithLastEventTimestamp(long long value)
Definition LogStream.h:101
void SetLastEventTimestamp(long long value)
Definition LogStream.h:97
void SetUploadSequenceToken(UploadSequenceTokenT &&value)
Definition LogStream.h:137
const Aws::String & GetArn() const
Definition LogStream.h:152
const Aws::String & GetLogStreamName() const
Definition LogStream.h:39
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue