AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
48 inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::move(value); }
49 inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); }
50 inline LogStream& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;}
51 inline LogStream& WithLogStreamName(Aws::String&& value) { SetLogStreamName(std::move(value)); return *this;}
52 inline LogStream& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;}
54
56
60 inline long long GetCreationTime() const{ return m_creationTime; }
61 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
62 inline void SetCreationTime(long long value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
63 inline LogStream& WithCreationTime(long long value) { SetCreationTime(value); return *this;}
65
67
71 inline long long GetFirstEventTimestamp() const{ return m_firstEventTimestamp; }
72 inline bool FirstEventTimestampHasBeenSet() const { return m_firstEventTimestampHasBeenSet; }
73 inline void SetFirstEventTimestamp(long long value) { m_firstEventTimestampHasBeenSet = true; m_firstEventTimestamp = value; }
74 inline LogStream& WithFirstEventTimestamp(long long value) { SetFirstEventTimestamp(value); return *this;}
76
78
85 inline long long GetLastEventTimestamp() const{ return m_lastEventTimestamp; }
86 inline bool LastEventTimestampHasBeenSet() const { return m_lastEventTimestampHasBeenSet; }
87 inline void SetLastEventTimestamp(long long value) { m_lastEventTimestampHasBeenSet = true; m_lastEventTimestamp = value; }
88 inline LogStream& WithLastEventTimestamp(long long value) { SetLastEventTimestamp(value); return *this;}
90
92
98 inline long long GetLastIngestionTime() const{ return m_lastIngestionTime; }
99 inline bool LastIngestionTimeHasBeenSet() const { return m_lastIngestionTimeHasBeenSet; }
100 inline void SetLastIngestionTime(long long value) { m_lastIngestionTimeHasBeenSet = true; m_lastIngestionTime = value; }
101 inline LogStream& WithLastIngestionTime(long long value) { SetLastIngestionTime(value); return *this;}
103
105
112 inline const Aws::String& GetUploadSequenceToken() const{ return m_uploadSequenceToken; }
113 inline bool UploadSequenceTokenHasBeenSet() const { return m_uploadSequenceTokenHasBeenSet; }
114 inline void SetUploadSequenceToken(const Aws::String& value) { m_uploadSequenceTokenHasBeenSet = true; m_uploadSequenceToken = value; }
115 inline void SetUploadSequenceToken(Aws::String&& value) { m_uploadSequenceTokenHasBeenSet = true; m_uploadSequenceToken = std::move(value); }
116 inline void SetUploadSequenceToken(const char* value) { m_uploadSequenceTokenHasBeenSet = true; m_uploadSequenceToken.assign(value); }
117 inline LogStream& WithUploadSequenceToken(const Aws::String& value) { SetUploadSequenceToken(value); return *this;}
118 inline LogStream& WithUploadSequenceToken(Aws::String&& value) { SetUploadSequenceToken(std::move(value)); return *this;}
119 inline LogStream& WithUploadSequenceToken(const char* value) { SetUploadSequenceToken(value); return *this;}
121
123
126 inline const Aws::String& GetArn() const{ return m_arn; }
127 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
128 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
129 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
130 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
131 inline LogStream& WithArn(const Aws::String& value) { SetArn(value); return *this;}
132 inline LogStream& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
133 inline LogStream& WithArn(const char* value) { SetArn(value); return *this;}
135 private:
136
137 Aws::String m_logStreamName;
138 bool m_logStreamNameHasBeenSet = false;
139
140 long long m_creationTime;
141 bool m_creationTimeHasBeenSet = false;
142
143 long long m_firstEventTimestamp;
144 bool m_firstEventTimestampHasBeenSet = false;
145
146 long long m_lastEventTimestamp;
147 bool m_lastEventTimestampHasBeenSet = false;
148
149 long long m_lastIngestionTime;
150 bool m_lastIngestionTimeHasBeenSet = false;
151
152 Aws::String m_uploadSequenceToken;
153 bool m_uploadSequenceTokenHasBeenSet = false;
154
155 Aws::String m_arn;
156 bool m_arnHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace CloudWatchLogs
161} // namespace Aws
long long GetFirstEventTimestamp() const
Definition LogStream.h:71
AWS_CLOUDWATCHLOGS_API LogStream()
LogStream & WithLogStreamName(Aws::String &&value)
Definition LogStream.h:51
LogStream & WithUploadSequenceToken(Aws::String &&value)
Definition LogStream.h:118
AWS_CLOUDWATCHLOGS_API LogStream & operator=(Aws::Utils::Json::JsonView jsonValue)
LogStream & WithLogStreamName(const char *value)
Definition LogStream.h:52
AWS_CLOUDWATCHLOGS_API LogStream(Aws::Utils::Json::JsonView jsonValue)
void SetLogStreamName(Aws::String &&value)
Definition LogStream.h:48
void SetFirstEventTimestamp(long long value)
Definition LogStream.h:73
LogStream & WithArn(const Aws::String &value)
Definition LogStream.h:131
void SetUploadSequenceToken(const char *value)
Definition LogStream.h:116
LogStream & WithUploadSequenceToken(const Aws::String &value)
Definition LogStream.h:117
void SetCreationTime(long long value)
Definition LogStream.h:62
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
long long GetLastEventTimestamp() const
Definition LogStream.h:85
LogStream & WithFirstEventTimestamp(long long value)
Definition LogStream.h:74
LogStream & WithLastIngestionTime(long long value)
Definition LogStream.h:101
void SetLastIngestionTime(long long value)
Definition LogStream.h:100
LogStream & WithArn(Aws::String &&value)
Definition LogStream.h:132
const Aws::String & GetUploadSequenceToken() const
Definition LogStream.h:112
LogStream & WithCreationTime(long long value)
Definition LogStream.h:63
void SetLogStreamName(const Aws::String &value)
Definition LogStream.h:47
void SetArn(const char *value)
Definition LogStream.h:130
LogStream & WithLastEventTimestamp(long long value)
Definition LogStream.h:88
LogStream & WithUploadSequenceToken(const char *value)
Definition LogStream.h:119
void SetArn(Aws::String &&value)
Definition LogStream.h:129
LogStream & WithLogStreamName(const Aws::String &value)
Definition LogStream.h:50
void SetUploadSequenceToken(Aws::String &&value)
Definition LogStream.h:115
void SetLastEventTimestamp(long long value)
Definition LogStream.h:87
void SetUploadSequenceToken(const Aws::String &value)
Definition LogStream.h:114
LogStream & WithArn(const char *value)
Definition LogStream.h:133
void SetLogStreamName(const char *value)
Definition LogStream.h:49
long long GetLastIngestionTime() const
Definition LogStream.h:98
const Aws::String & GetArn() const
Definition LogStream.h:126
void SetArn(const Aws::String &value)
Definition LogStream.h:128
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