/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a log event.See Also:
AWS
* API Reference
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; Aws::String m_message; bool m_messageHasBeenSet; long long m_ingestionTime; bool m_ingestionTimeHasBeenSet; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws