/** * 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, which is a record of activity that was recorded by * the application or resource being monitored.

See Also:

AWS * API Reference

*/ class InputLogEvent { public: AWS_CLOUDWATCHLOGS_API InputLogEvent(); AWS_CLOUDWATCHLOGS_API InputLogEvent(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API InputLogEvent& 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 InputLogEvent& WithTimestamp(long long value) { SetTimestamp(value); return *this;} /** *

The raw event message. Each log event can be no larger than 256 KB.

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

The raw event message. Each log event can be no larger than 256 KB.

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

The raw event message. Each log event can be no larger than 256 KB.

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

The raw event message. Each log event can be no larger than 256 KB.

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

The raw event message. Each log event can be no larger than 256 KB.

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

The raw event message. Each log event can be no larger than 256 KB.

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

The raw event message. Each log event can be no larger than 256 KB.

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

The raw event message. Each log event can be no larger than 256 KB.

*/ inline InputLogEvent& WithMessage(const char* value) { SetMessage(value); return *this;} private: long long m_timestamp; bool m_timestampHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws