AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LogStream.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchLogs
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDWATCHLOGS_API LogStream() = default;
36 AWS_CLOUDWATCHLOGS_API LogStream(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDWATCHLOGS_API LogStream& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetLogStreamName() const { return m_logStreamName; }
46 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
47 template<typename LogStreamNameT = Aws::String>
48 void SetLogStreamName(LogStreamNameT&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::forward<LogStreamNameT>(value); }
49 template<typename LogStreamNameT = Aws::String>
50 LogStream& WithLogStreamName(LogStreamNameT&& value) { SetLogStreamName(std::forward<LogStreamNameT>(value)); return *this;}
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) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
61 inline LogStream& WithCreationTime(long long value) { SetCreationTime(value); return *this;}
63
65
69 inline long long GetFirstEventTimestamp() const { return m_firstEventTimestamp; }
70 inline bool FirstEventTimestampHasBeenSet() const { return m_firstEventTimestampHasBeenSet; }
71 inline void SetFirstEventTimestamp(long long value) { m_firstEventTimestampHasBeenSet = true; m_firstEventTimestamp = value; }
72 inline LogStream& WithFirstEventTimestamp(long long value) { SetFirstEventTimestamp(value); return *this;}
74
76
83 inline long long GetLastEventTimestamp() const { return m_lastEventTimestamp; }
84 inline bool LastEventTimestampHasBeenSet() const { return m_lastEventTimestampHasBeenSet; }
85 inline void SetLastEventTimestamp(long long value) { m_lastEventTimestampHasBeenSet = true; m_lastEventTimestamp = value; }
86 inline LogStream& WithLastEventTimestamp(long long value) { SetLastEventTimestamp(value); return *this;}
88
90
96 inline long long GetLastIngestionTime() const { return m_lastIngestionTime; }
97 inline bool LastIngestionTimeHasBeenSet() const { return m_lastIngestionTimeHasBeenSet; }
98 inline void SetLastIngestionTime(long long value) { m_lastIngestionTimeHasBeenSet = true; m_lastIngestionTime = value; }
99 inline LogStream& WithLastIngestionTime(long long value) { SetLastIngestionTime(value); return *this;}
101
103
110 inline const Aws::String& GetUploadSequenceToken() const { return m_uploadSequenceToken; }
111 inline bool UploadSequenceTokenHasBeenSet() const { return m_uploadSequenceTokenHasBeenSet; }
112 template<typename UploadSequenceTokenT = Aws::String>
113 void SetUploadSequenceToken(UploadSequenceTokenT&& value) { m_uploadSequenceTokenHasBeenSet = true; m_uploadSequenceToken = std::forward<UploadSequenceTokenT>(value); }
114 template<typename UploadSequenceTokenT = Aws::String>
115 LogStream& WithUploadSequenceToken(UploadSequenceTokenT&& value) { SetUploadSequenceToken(std::forward<UploadSequenceTokenT>(value)); return *this;}
117
119
122 inline const Aws::String& GetArn() const { return m_arn; }
123 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
124 template<typename ArnT = Aws::String>
125 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
126 template<typename ArnT = Aws::String>
127 LogStream& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
129 private:
130
131 Aws::String m_logStreamName;
132 bool m_logStreamNameHasBeenSet = false;
133
134 long long m_creationTime{0};
135 bool m_creationTimeHasBeenSet = false;
136
137 long long m_firstEventTimestamp{0};
138 bool m_firstEventTimestampHasBeenSet = false;
139
140 long long m_lastEventTimestamp{0};
141 bool m_lastEventTimestampHasBeenSet = false;
142
143 long long m_lastIngestionTime{0};
144 bool m_lastIngestionTimeHasBeenSet = false;
145
146 Aws::String m_uploadSequenceToken;
147 bool m_uploadSequenceTokenHasBeenSet = false;
148
149 Aws::String m_arn;
150 bool m_arnHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace CloudWatchLogs
155} // namespace Aws
LogStream & WithLogStreamName(LogStreamNameT &&value)
Definition LogStream.h:50
long long GetFirstEventTimestamp() const
Definition LogStream.h:69
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:127
void SetFirstEventTimestamp(long long value)
Definition LogStream.h:71
AWS_CLOUDWATCHLOGS_API LogStream()=default
void SetLogStreamName(LogStreamNameT &&value)
Definition LogStream.h:48
void SetCreationTime(long long value)
Definition LogStream.h:60
LogStream & WithUploadSequenceToken(UploadSequenceTokenT &&value)
Definition LogStream.h:115
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
long long GetLastEventTimestamp() const
Definition LogStream.h:83
LogStream & WithFirstEventTimestamp(long long value)
Definition LogStream.h:72
LogStream & WithLastIngestionTime(long long value)
Definition LogStream.h:99
void SetLastIngestionTime(long long value)
Definition LogStream.h:98
const Aws::String & GetUploadSequenceToken() const
Definition LogStream.h:110
LogStream & WithCreationTime(long long value)
Definition LogStream.h:61
LogStream & WithLastEventTimestamp(long long value)
Definition LogStream.h:86
void SetLastEventTimestamp(long long value)
Definition LogStream.h:85
void SetUploadSequenceToken(UploadSequenceTokenT &&value)
Definition LogStream.h:113
long long GetLastIngestionTime() const
Definition LogStream.h:96
const Aws::String & GetArn() const
Definition LogStream.h:122
const Aws::String & GetLogStreamName() const
Definition LogStream.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue