/* * 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 codeguruprofiler-2019-07-18.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.CodeGuruProfiler.Model { /// /// A set of rules used to make a recommendation during an analysis. /// public partial class Pattern { private List _countersToAggregate = new List(); private string _description; private string _id; private string _name; private string _resolutionSteps; private List> _targetFrames = new List>(); private double? _thresholdPercent; /// /// Gets and sets the property CountersToAggregate. /// /// A list of the different counters used to determine if there is a match. /// /// public List CountersToAggregate { get { return this._countersToAggregate; } set { this._countersToAggregate = value; } } // Check to see if CountersToAggregate property is set internal bool IsSetCountersToAggregate() { return this._countersToAggregate != null && this._countersToAggregate.Count > 0; } /// /// Gets and sets the property Description. /// /// The description of the recommendation. This explains a potential inefficiency in a /// profiled application. /// /// public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property Id. /// /// The universally unique identifier (UUID) of this pattern. /// /// public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// /// Gets and sets the property Name. /// /// The name for this pattern. /// /// public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property ResolutionSteps. /// /// A string that contains the steps recommended to address the potential inefficiency. /// /// /// public string ResolutionSteps { get { return this._resolutionSteps; } set { this._resolutionSteps = value; } } // Check to see if ResolutionSteps property is set internal bool IsSetResolutionSteps() { return this._resolutionSteps != null; } /// /// Gets and sets the property TargetFrames. /// /// A list of frame names that were searched during the analysis that generated a recommendation. /// /// public List> TargetFrames { get { return this._targetFrames; } set { this._targetFrames = value; } } // Check to see if TargetFrames property is set internal bool IsSetTargetFrames() { return this._targetFrames != null && this._targetFrames.Count > 0; } /// /// Gets and sets the property ThresholdPercent. /// /// The percentage of time an application spends in one method that triggers a recommendation. /// The percentage of time is the same as the percentage of the total gathered sample /// counts during analysis. /// /// [AWSProperty(Min=0, Max=100)] public double ThresholdPercent { get { return this._thresholdPercent.GetValueOrDefault(); } set { this._thresholdPercent = value; } } // Check to see if ThresholdPercent property is set internal bool IsSetThresholdPercent() { return this._thresholdPercent.HasValue; } } }