/* * 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 application-insights-2018-11-25.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.ApplicationInsights.Model { /// /// An object that defines the log patterns that belongs to a LogPatternSet. /// public partial class LogPattern { private string _pattern; private string _patternName; private string _patternSetName; private int? _rank; /// /// Gets and sets the property Pattern. /// /// A regular expression that defines the log pattern. A log pattern can contain as many /// as 50 characters, and it cannot be empty. The pattern must be DFA compatible. Patterns /// that utilize forward lookahead or backreference constructions are not supported. /// /// [AWSProperty(Min=1, Max=50)] public string Pattern { get { return this._pattern; } set { this._pattern = value; } } // Check to see if Pattern property is set internal bool IsSetPattern() { return this._pattern != null; } /// /// Gets and sets the property PatternName. /// /// The name of the log pattern. A log pattern name can contain as many as 50 characters, /// and it cannot be empty. The characters can be Unicode letters, digits, or one of the /// following symbols: period, dash, underscore. /// /// [AWSProperty(Min=1, Max=50)] public string PatternName { get { return this._patternName; } set { this._patternName = value; } } // Check to see if PatternName property is set internal bool IsSetPatternName() { return this._patternName != null; } /// /// Gets and sets the property PatternSetName. /// /// The name of the log pattern. A log pattern name can contain as many as 30 characters, /// and it cannot be empty. The characters can be Unicode letters, digits, or one of the /// following symbols: period, dash, underscore. /// /// [AWSProperty(Min=1, Max=30)] public string PatternSetName { get { return this._patternSetName; } set { this._patternSetName = value; } } // Check to see if PatternSetName property is set internal bool IsSetPatternSetName() { return this._patternSetName != null; } /// /// Gets and sets the property Rank. /// /// Rank of the log pattern. Must be a value between 1 and 1,000,000. /// The patterns are sorted by rank, so we recommend that you set your highest priority /// patterns with the lowest rank. A pattern of rank 1 will be the first /// to get matched to a log line. A pattern of rank 1,000,000 will be last /// to get matched. When you configure custom log patterns from the console, a Low /// severity pattern translates to a 750,000 rank. A Medium /// severity pattern translates to a 500,000 rank. And a High /// severity pattern translates to a 250,000 rank. Rank values less than /// 1 or greater than 1,000,000 are reserved for AWS-provided /// patterns. /// /// public int Rank { get { return this._rank.GetValueOrDefault(); } set { this._rank = value; } } // Check to see if Rank property is set internal bool IsSetRank() { return this._rank.HasValue; } } }