/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the logs-2014-03-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudWatchLogs.Model { /// /// Represents a log stream, which is a sequence of log events from a single emitter of /// logs. /// public partial class LogStream { private string _arn; private DateTime? _creationTime; private DateTime? _firstEventTimestamp; private DateTime? _lastEventTimestamp; private DateTime? _lastIngestionTime; private string _logStreamName; private long? _storedBytes; private string _uploadSequenceToken; /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) of the log stream. /// /// public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property CreationTime. /// /// The creation time of the stream, expressed as the number of milliseconds after Jan /// 1, 1970 00:00:00 UTC. /// /// [AWSProperty(Min=0)] public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// /// Gets and sets the property FirstEventTimestamp. /// /// The time of the first event, expressed as the number of milliseconds after Jan /// 1, 1970 00:00:00 UTC. /// /// [AWSProperty(Min=0)] public DateTime FirstEventTimestamp { get { return this._firstEventTimestamp.GetValueOrDefault(); } set { this._firstEventTimestamp = value; } } // Check to see if FirstEventTimestamp property is set internal bool IsSetFirstEventTimestamp() { return this._firstEventTimestamp.HasValue; } /// /// Gets and sets the property LastEventTimestamp. /// /// 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. /// /// [AWSProperty(Min=0)] public DateTime LastEventTimestamp { get { return this._lastEventTimestamp.GetValueOrDefault(); } set { this._lastEventTimestamp = value; } } // Check to see if LastEventTimestamp property is set internal bool IsSetLastEventTimestamp() { return this._lastEventTimestamp.HasValue; } /// /// Gets and sets the property LastIngestionTime. /// /// The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 /// 00:00:00 UTC The lastIngestionTime value updates on an eventual /// consistency basis. It typically updates in less than an hour after ingestion, but /// in rare situations might take longer. /// /// [AWSProperty(Min=0)] public DateTime LastIngestionTime { get { return this._lastIngestionTime.GetValueOrDefault(); } set { this._lastIngestionTime = value; } } // Check to see if LastIngestionTime property is set internal bool IsSetLastIngestionTime() { return this._lastIngestionTime.HasValue; } /// /// Gets and sets the property LogStreamName. /// /// The name of the log stream. /// /// [AWSProperty(Min=1, Max=512)] public string LogStreamName { get { return this._logStreamName; } set { this._logStreamName = value; } } // Check to see if LogStreamName property is set internal bool IsSetLogStreamName() { return this._logStreamName != null; } /// /// Gets and sets the property StoredBytes. /// /// The number of bytes stored. /// /// /// /// Important: As of June 17, 2019, this parameter is no longer supported for /// log streams, and is always reported as zero. This change applies only to log streams. /// The storedBytes parameter for log groups is not affected. /// /// [Obsolete("Starting on June 17, 2019, this parameter will be deprecated for log streams, and will be reported as zero. This change applies only to log streams. The storedBytes parameter for log groups is not affected.")] [AWSProperty(Min=0)] public long StoredBytes { get { return this._storedBytes.GetValueOrDefault(); } set { this._storedBytes = value; } } // Check to see if StoredBytes property is set internal bool IsSetStoredBytes() { return this._storedBytes.HasValue; } /// /// Gets and sets the property UploadSequenceToken. /// /// The sequence token. /// /// /// /// The sequence token is now ignored in PutLogEvents actions. PutLogEvents /// actions are always accepted regardless of receiving an invalid sequence token. You /// don't need to obtain uploadSequenceToken to use a PutLogEvents /// action. /// /// /// [AWSProperty(Min=1)] public string UploadSequenceToken { get { return this._uploadSequenceToken; } set { this._uploadSequenceToken = value; } } // Check to see if UploadSequenceToken property is set internal bool IsSetUploadSequenceToken() { return this._uploadSequenceToken != null; } } }