AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LiveTailSessionLogEvent.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
29 public:
30 AWS_CLOUDWATCHLOGS_API LiveTailSessionLogEvent() = default;
31 AWS_CLOUDWATCHLOGS_API LiveTailSessionLogEvent(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 LiveTailSessionLogEvent& WithLogStreamName(LogStreamNameT&& value) {
48 SetLogStreamName(std::forward<LogStreamNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetLogGroupIdentifier() const { return m_logGroupIdentifier; }
58 inline bool LogGroupIdentifierHasBeenSet() const { return m_logGroupIdentifierHasBeenSet; }
59 template <typename LogGroupIdentifierT = Aws::String>
60 void SetLogGroupIdentifier(LogGroupIdentifierT&& value) {
61 m_logGroupIdentifierHasBeenSet = true;
62 m_logGroupIdentifier = std::forward<LogGroupIdentifierT>(value);
63 }
64 template <typename LogGroupIdentifierT = Aws::String>
65 LiveTailSessionLogEvent& WithLogGroupIdentifier(LogGroupIdentifierT&& value) {
66 SetLogGroupIdentifier(std::forward<LogGroupIdentifierT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetMessage() const { return m_message; }
76 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
77 template <typename MessageT = Aws::String>
78 void SetMessage(MessageT&& value) {
79 m_messageHasBeenSet = true;
80 m_message = std::forward<MessageT>(value);
81 }
82 template <typename MessageT = Aws::String>
84 SetMessage(std::forward<MessageT>(value));
85 return *this;
86 }
88
90
93 inline long long GetTimestamp() const { return m_timestamp; }
94 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
95 inline void SetTimestamp(long long value) {
96 m_timestampHasBeenSet = true;
97 m_timestamp = value;
98 }
99 inline LiveTailSessionLogEvent& WithTimestamp(long long value) {
100 SetTimestamp(value);
101 return *this;
102 }
104
106
110 inline long long GetIngestionTime() const { return m_ingestionTime; }
111 inline bool IngestionTimeHasBeenSet() const { return m_ingestionTimeHasBeenSet; }
112 inline void SetIngestionTime(long long value) {
113 m_ingestionTimeHasBeenSet = true;
114 m_ingestionTime = value;
115 }
117 SetIngestionTime(value);
118 return *this;
119 }
121 private:
122 Aws::String m_logStreamName;
123
124 Aws::String m_logGroupIdentifier;
125
126 Aws::String m_message;
127
128 long long m_timestamp{0};
129
130 long long m_ingestionTime{0};
131 bool m_logStreamNameHasBeenSet = false;
132 bool m_logGroupIdentifierHasBeenSet = false;
133 bool m_messageHasBeenSet = false;
134 bool m_timestampHasBeenSet = false;
135 bool m_ingestionTimeHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace CloudWatchLogs
140} // namespace Aws
LiveTailSessionLogEvent & WithIngestionTime(long long value)
AWS_CLOUDWATCHLOGS_API LiveTailSessionLogEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
LiveTailSessionLogEvent & WithTimestamp(long long value)
LiveTailSessionLogEvent & WithMessage(MessageT &&value)
LiveTailSessionLogEvent & WithLogStreamName(LogStreamNameT &&value)
AWS_CLOUDWATCHLOGS_API LiveTailSessionLogEvent()=default
AWS_CLOUDWATCHLOGS_API LiveTailSessionLogEvent(Aws::Utils::Json::JsonView jsonValue)
LiveTailSessionLogEvent & WithLogGroupIdentifier(LogGroupIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue