/* * 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 group. /// public partial class LogGroup { private string _arn; private DateTime? _creationTime; private DataProtectionStatus _dataProtectionStatus; private List _inheritedProperties = new List(); private string _kmsKeyId; private string _logGroupName; private int? _metricFilterCount; private int? _retentionInDays; private long? _storedBytes; /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) of the log group. /// /// 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 log group, 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 DataProtectionStatus. /// /// Displays whether this log group has a protection policy, or whether it had one in /// the past. For more information, see PutDataProtectionPolicy. /// /// public DataProtectionStatus DataProtectionStatus { get { return this._dataProtectionStatus; } set { this._dataProtectionStatus = value; } } // Check to see if DataProtectionStatus property is set internal bool IsSetDataProtectionStatus() { return this._dataProtectionStatus != null; } /// /// Gets and sets the property InheritedProperties. /// /// Displays all the properties that this log group has inherited from account-level settings. /// /// public List InheritedProperties { get { return this._inheritedProperties; } set { this._inheritedProperties = value; } } // Check to see if InheritedProperties property is set internal bool IsSetInheritedProperties() { return this._inheritedProperties != null && this._inheritedProperties.Count > 0; } /// /// Gets and sets the property KmsKeyId. /// /// The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data. /// /// [AWSProperty(Max=256)] public string KmsKeyId { get { return this._kmsKeyId; } set { this._kmsKeyId = value; } } // Check to see if KmsKeyId property is set internal bool IsSetKmsKeyId() { return this._kmsKeyId != null; } /// /// Gets and sets the property LogGroupName. /// /// The name of the log group. /// /// [AWSProperty(Min=1, Max=512)] public string LogGroupName { get { return this._logGroupName; } set { this._logGroupName = value; } } // Check to see if LogGroupName property is set internal bool IsSetLogGroupName() { return this._logGroupName != null; } /// /// Gets and sets the property MetricFilterCount. /// /// The number of metric filters. /// /// public int MetricFilterCount { get { return this._metricFilterCount.GetValueOrDefault(); } set { this._metricFilterCount = value; } } // Check to see if MetricFilterCount property is set internal bool IsSetMetricFilterCount() { return this._metricFilterCount.HasValue; } /// /// Gets and sets the property RetentionInDays. /// public int? RetentionInDays { get { return this._retentionInDays; } set { this._retentionInDays = value; } } // Check to see if RetentionInDays property is set internal bool IsSetRetentionInDays() { return this._retentionInDays.HasValue; } /// /// Gets and sets the property StoredBytes. /// /// The number of bytes stored. /// /// [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; } } }