/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchLogs { namespace Model { /** *

This object contains the information for one log event returned in a Live * Tail stream.

See Also:

AWS * API Reference

*/ class LiveTailSessionLogEvent { public: AWS_CLOUDWATCHLOGS_API LiveTailSessionLogEvent(); AWS_CLOUDWATCHLOGS_API LiveTailSessionLogEvent(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API LiveTailSessionLogEvent& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the log stream that ingested this log event.

*/ inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; } /** *

The name of the log stream that ingested this log event.

*/ inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; } /** *

The name of the log stream that ingested this log event.

*/ inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; } /** *

The name of the log stream that ingested this log event.

*/ inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::move(value); } /** *

The name of the log stream that ingested this log event.

*/ inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); } /** *

The name of the log stream that ingested this log event.

*/ inline LiveTailSessionLogEvent& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;} /** *

The name of the log stream that ingested this log event.

*/ inline LiveTailSessionLogEvent& WithLogStreamName(Aws::String&& value) { SetLogStreamName(std::move(value)); return *this;} /** *

The name of the log stream that ingested this log event.

*/ inline LiveTailSessionLogEvent& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;} /** *

The name or ARN of the log group that ingested this log event.

*/ inline const Aws::String& GetLogGroupIdentifier() const{ return m_logGroupIdentifier; } /** *

The name or ARN of the log group that ingested this log event.

*/ inline bool LogGroupIdentifierHasBeenSet() const { return m_logGroupIdentifierHasBeenSet; } /** *

The name or ARN of the log group that ingested this log event.

*/ inline void SetLogGroupIdentifier(const Aws::String& value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier = value; } /** *

The name or ARN of the log group that ingested this log event.

*/ inline void SetLogGroupIdentifier(Aws::String&& value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier = std::move(value); } /** *

The name or ARN of the log group that ingested this log event.

*/ inline void SetLogGroupIdentifier(const char* value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier.assign(value); } /** *

The name or ARN of the log group that ingested this log event.

*/ inline LiveTailSessionLogEvent& WithLogGroupIdentifier(const Aws::String& value) { SetLogGroupIdentifier(value); return *this;} /** *

The name or ARN of the log group that ingested this log event.

*/ inline LiveTailSessionLogEvent& WithLogGroupIdentifier(Aws::String&& value) { SetLogGroupIdentifier(std::move(value)); return *this;} /** *

The name or ARN of the log group that ingested this log event.

*/ inline LiveTailSessionLogEvent& WithLogGroupIdentifier(const char* value) { SetLogGroupIdentifier(value); return *this;} /** *

The log event message text.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The log event message text.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The log event message text.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The log event message text.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The log event message text.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The log event message text.

*/ inline LiveTailSessionLogEvent& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The log event message text.

*/ inline LiveTailSessionLogEvent& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The log event message text.

*/ inline LiveTailSessionLogEvent& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The timestamp specifying when this log event was created.

*/ inline long long GetTimestamp() const{ return m_timestamp; } /** *

The timestamp specifying when this log event was created.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The timestamp specifying when this log event was created.

*/ inline void SetTimestamp(long long value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The timestamp specifying when this log event was created.

*/ inline LiveTailSessionLogEvent& WithTimestamp(long long value) { SetTimestamp(value); return *this;} /** *

The timestamp specifying when this log event was ingested into the log * group.

*/ inline long long GetIngestionTime() const{ return m_ingestionTime; } /** *

The timestamp specifying when this log event was ingested into the log * group.

*/ inline bool IngestionTimeHasBeenSet() const { return m_ingestionTimeHasBeenSet; } /** *

The timestamp specifying when this log event was ingested into the log * group.

*/ inline void SetIngestionTime(long long value) { m_ingestionTimeHasBeenSet = true; m_ingestionTime = value; } /** *

The timestamp specifying when this log event was ingested into the log * group.

*/ inline LiveTailSessionLogEvent& WithIngestionTime(long long value) { SetIngestionTime(value); return *this;} private: Aws::String m_logStreamName; bool m_logStreamNameHasBeenSet = false; Aws::String m_logGroupIdentifier; bool m_logGroupIdentifierHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; long long m_timestamp; bool m_timestampHasBeenSet = false; long long m_ingestionTime; bool m_ingestionTimeHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws