/** * 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 { /** *

Represents a log event.

See Also:

AWS * API Reference

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

The time the event occurred, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.

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

The time the event occurred, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.

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

The time the event occurred, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.

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

The time the event occurred, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.

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

The data contained in the log event.

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

The data contained in the log event.

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

The data contained in the log event.

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

The data contained in the log event.

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

The data contained in the log event.

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

The data contained in the log event.

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

The data contained in the log event.

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

The data contained in the log event.

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

The time the event was ingested, expressed as the number of milliseconds * after Jan 1, 1970 00:00:00 UTC.

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

The time the event was ingested, expressed as the number of milliseconds * after Jan 1, 1970 00:00:00 UTC.

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

The time the event was ingested, expressed as the number of milliseconds * after Jan 1, 1970 00:00:00 UTC.

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

The time the event was ingested, expressed as the number of milliseconds * after Jan 1, 1970 00:00:00 UTC.

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