/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a log stream, which is a sequence of log events from a single
* emitter of logs.See Also:
AWS API
* Reference
The name of the log stream.
*/ inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; } /** *The name of the log stream.
*/ inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; } /** *The name of the log stream.
*/ inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; } /** *The name of the log stream.
*/ inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::move(value); } /** *The name of the log stream.
*/ inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); } /** *The name of the log stream.
*/ inline LogStream& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;} /** *The name of the log stream.
*/ inline LogStream& WithLogStreamName(Aws::String&& value) { SetLogStreamName(std::move(value)); return *this;} /** *The name of the log stream.
*/ inline LogStream& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;} /** *The creation time of the stream, expressed as the number of milliseconds * after Jan 1, 1970 00:00:00 UTC.
*/ inline long long GetCreationTime() const{ return m_creationTime; } /** *The creation time of the stream, expressed as the number of milliseconds * after Jan 1, 1970 00:00:00 UTC.
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *The creation time of the stream, expressed as the number of milliseconds * after Jan 1, 1970 00:00:00 UTC.
*/ inline void SetCreationTime(long long value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *The creation time of the stream, expressed as the number of milliseconds * after Jan 1, 1970 00:00:00 UTC.
*/ inline LogStream& WithCreationTime(long long value) { SetCreationTime(value); return *this;} /** *The time of the first event, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.
*/ inline long long GetFirstEventTimestamp() const{ return m_firstEventTimestamp; } /** *The time of the first event, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.
*/ inline bool FirstEventTimestampHasBeenSet() const { return m_firstEventTimestampHasBeenSet; } /** *The time of the first event, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.
*/ inline void SetFirstEventTimestamp(long long value) { m_firstEventTimestampHasBeenSet = true; m_firstEventTimestamp = value; } /** *The time of the first event, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.
*/ inline LogStream& WithFirstEventTimestamp(long long value) { SetFirstEventTimestamp(value); return *this;} /** *The time of the most recent log event in the log stream in CloudWatch Logs.
* This number is expressed as the number of milliseconds after Jan 1, 1970
* 00:00:00 UTC. The lastEventTime value updates on an eventual
* consistency basis. It typically updates in less than an hour from ingestion, but
* in rare situations might take longer.
The time of the most recent log event in the log stream in CloudWatch Logs.
* This number is expressed as the number of milliseconds after Jan 1, 1970
* 00:00:00 UTC. The lastEventTime value updates on an eventual
* consistency basis. It typically updates in less than an hour from ingestion, but
* in rare situations might take longer.
The time of the most recent log event in the log stream in CloudWatch Logs.
* This number is expressed as the number of milliseconds after Jan 1, 1970
* 00:00:00 UTC. The lastEventTime value updates on an eventual
* consistency basis. It typically updates in less than an hour from ingestion, but
* in rare situations might take longer.
The time of the most recent log event in the log stream in CloudWatch Logs.
* This number is expressed as the number of milliseconds after Jan 1, 1970
* 00:00:00 UTC. The lastEventTime value updates on an eventual
* consistency basis. It typically updates in less than an hour from ingestion, but
* in rare situations might take longer.
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 * 00:00:00 UTC.
*/ inline long long GetLastIngestionTime() const{ return m_lastIngestionTime; } /** *The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 * 00:00:00 UTC.
*/ inline bool LastIngestionTimeHasBeenSet() const { return m_lastIngestionTimeHasBeenSet; } /** *The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 * 00:00:00 UTC.
*/ inline void SetLastIngestionTime(long long value) { m_lastIngestionTimeHasBeenSet = true; m_lastIngestionTime = value; } /** *The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 * 00:00:00 UTC.
*/ inline LogStream& WithLastIngestionTime(long long value) { SetLastIngestionTime(value); return *this;} /** *The sequence token.
*/ inline const Aws::String& GetUploadSequenceToken() const{ return m_uploadSequenceToken; } /** *The sequence token.
*/ inline bool UploadSequenceTokenHasBeenSet() const { return m_uploadSequenceTokenHasBeenSet; } /** *The sequence token.
*/ inline void SetUploadSequenceToken(const Aws::String& value) { m_uploadSequenceTokenHasBeenSet = true; m_uploadSequenceToken = value; } /** *The sequence token.
*/ inline void SetUploadSequenceToken(Aws::String&& value) { m_uploadSequenceTokenHasBeenSet = true; m_uploadSequenceToken = std::move(value); } /** *The sequence token.
*/ inline void SetUploadSequenceToken(const char* value) { m_uploadSequenceTokenHasBeenSet = true; m_uploadSequenceToken.assign(value); } /** *The sequence token.
*/ inline LogStream& WithUploadSequenceToken(const Aws::String& value) { SetUploadSequenceToken(value); return *this;} /** *The sequence token.
*/ inline LogStream& WithUploadSequenceToken(Aws::String&& value) { SetUploadSequenceToken(std::move(value)); return *this;} /** *The sequence token.
*/ inline LogStream& WithUploadSequenceToken(const char* value) { SetUploadSequenceToken(value); return *this;} /** *The Amazon Resource Name (ARN) of the log stream.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the log stream.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the log stream.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the log stream.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the log stream.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the log stream.
*/ inline LogStream& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the log stream.
*/ inline LogStream& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the log stream.
*/ inline LogStream& WithArn(const char* value) { SetArn(value); return *this;} private: Aws::String m_logStreamName; bool m_logStreamNameHasBeenSet; long long m_creationTime; bool m_creationTimeHasBeenSet; long long m_firstEventTimestamp; bool m_firstEventTimestampHasBeenSet; long long m_lastEventTimestamp; bool m_lastEventTimestampHasBeenSet; long long m_lastIngestionTime; bool m_lastIngestionTimeHasBeenSet; Aws::String m_uploadSequenceToken; bool m_uploadSequenceTokenHasBeenSet; Aws::String m_arn; bool m_arnHasBeenSet; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws