AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 LiveTailSessionLogEvent& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;}
51 inline LiveTailSessionLogEvent& WithLogStreamName(Aws::String&& value) { SetLogStreamName(std::move(value)); return *this;}
52 inline LiveTailSessionLogEvent& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;}
54
56
59 inline const Aws::String& GetLogGroupIdentifier() const{ return m_logGroupIdentifier; }
60 inline bool LogGroupIdentifierHasBeenSet() const { return m_logGroupIdentifierHasBeenSet; }
61 inline void SetLogGroupIdentifier(const Aws::String& value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier = value; }
62 inline void SetLogGroupIdentifier(Aws::String&& value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier = std::move(value); }
63 inline void SetLogGroupIdentifier(const char* value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier.assign(value); }
65 inline LiveTailSessionLogEvent& WithLogGroupIdentifier(Aws::String&& value) { SetLogGroupIdentifier(std::move(value)); return *this;}
66 inline LiveTailSessionLogEvent& WithLogGroupIdentifier(const char* value) { SetLogGroupIdentifier(value); return *this;}
68
70
73 inline const Aws::String& GetMessage() const{ return m_message; }
74 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
75 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
76 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
77 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
78 inline LiveTailSessionLogEvent& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
79 inline LiveTailSessionLogEvent& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
80 inline LiveTailSessionLogEvent& WithMessage(const char* value) { SetMessage(value); return *this;}
82
84
87 inline long long GetTimestamp() const{ return m_timestamp; }
88 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
89 inline void SetTimestamp(long long value) { m_timestampHasBeenSet = true; m_timestamp = value; }
90 inline LiveTailSessionLogEvent& WithTimestamp(long long value) { SetTimestamp(value); return *this;}
92
94
98 inline long long GetIngestionTime() const{ return m_ingestionTime; }
99 inline bool IngestionTimeHasBeenSet() const { return m_ingestionTimeHasBeenSet; }
100 inline void SetIngestionTime(long long value) { m_ingestionTimeHasBeenSet = true; m_ingestionTime = value; }
101 inline LiveTailSessionLogEvent& WithIngestionTime(long long value) { SetIngestionTime(value); return *this;}
103 private:
104
105 Aws::String m_logStreamName;
106 bool m_logStreamNameHasBeenSet = false;
107
108 Aws::String m_logGroupIdentifier;
109 bool m_logGroupIdentifierHasBeenSet = false;
110
111 Aws::String m_message;
112 bool m_messageHasBeenSet = false;
113
114 long long m_timestamp;
115 bool m_timestampHasBeenSet = false;
116
117 long long m_ingestionTime;
118 bool m_ingestionTimeHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CloudWatchLogs
123} // namespace Aws
LiveTailSessionLogEvent & WithLogStreamName(const char *value)
LiveTailSessionLogEvent & WithMessage(const char *value)
LiveTailSessionLogEvent & WithIngestionTime(long long value)
LiveTailSessionLogEvent & WithMessage(const Aws::String &value)
LiveTailSessionLogEvent & WithMessage(Aws::String &&value)
LiveTailSessionLogEvent & WithLogGroupIdentifier(Aws::String &&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 & WithLogGroupIdentifier(const Aws::String &value)
LiveTailSessionLogEvent & WithLogGroupIdentifier(const char *value)
LiveTailSessionLogEvent & WithLogStreamName(Aws::String &&value)
LiveTailSessionLogEvent & WithLogStreamName(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API LiveTailSessionLogEvent(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue