AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LiveTailSessionLogEvent.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 LiveTailSessionLogEvent() = default;
36 AWS_CLOUDWATCHLOGS_API LiveTailSessionLogEvent(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 LiveTailSessionLogEvent& WithLogStreamName(LogStreamNameT&& value) { SetLogStreamName(std::forward<LogStreamNameT>(value)); return *this;}
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) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier = std::forward<LogGroupIdentifierT>(value); }
61 template<typename LogGroupIdentifierT = Aws::String>
62 LiveTailSessionLogEvent& WithLogGroupIdentifier(LogGroupIdentifierT&& value) { SetLogGroupIdentifier(std::forward<LogGroupIdentifierT>(value)); return *this;}
64
66
69 inline const Aws::String& GetMessage() const { return m_message; }
70 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
71 template<typename MessageT = Aws::String>
72 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
73 template<typename MessageT = Aws::String>
74 LiveTailSessionLogEvent& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
76
78
81 inline long long GetTimestamp() const { return m_timestamp; }
82 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
83 inline void SetTimestamp(long long value) { m_timestampHasBeenSet = true; m_timestamp = value; }
84 inline LiveTailSessionLogEvent& WithTimestamp(long long value) { SetTimestamp(value); return *this;}
86
88
92 inline long long GetIngestionTime() const { return m_ingestionTime; }
93 inline bool IngestionTimeHasBeenSet() const { return m_ingestionTimeHasBeenSet; }
94 inline void SetIngestionTime(long long value) { m_ingestionTimeHasBeenSet = true; m_ingestionTime = value; }
95 inline LiveTailSessionLogEvent& WithIngestionTime(long long value) { SetIngestionTime(value); return *this;}
97 private:
98
99 Aws::String m_logStreamName;
100 bool m_logStreamNameHasBeenSet = false;
101
102 Aws::String m_logGroupIdentifier;
103 bool m_logGroupIdentifierHasBeenSet = false;
104
105 Aws::String m_message;
106 bool m_messageHasBeenSet = false;
107
108 long long m_timestamp{0};
109 bool m_timestampHasBeenSet = false;
110
111 long long m_ingestionTime{0};
112 bool m_ingestionTimeHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CloudWatchLogs
117} // 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