/* * 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 resiliencehub-2020-04-30.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.ResilienceHub.Model { /// /// Defines a test recommendation. /// public partial class TestRecommendation { private string _appComponentName; private List _dependsOnAlarms = new List(); private string _description; private string _intent; private List _items = new List(); private string _name; private string _prerequisite; private string _recommendationId; private string _referenceId; private TestRisk _risk; private TestType _type; /// /// Gets and sets the property AppComponentName. /// /// The name of the Application Component. /// /// public string AppComponentName { get { return this._appComponentName; } set { this._appComponentName = value; } } // Check to see if AppComponentName property is set internal bool IsSetAppComponentName() { return this._appComponentName != null; } /// /// Gets and sets the property DependsOnAlarms. /// /// A list of recommended alarms that are used in the test and must be exported before /// or with the test. /// /// [AWSProperty(Min=1, Max=200)] public List DependsOnAlarms { get { return this._dependsOnAlarms; } set { this._dependsOnAlarms = value; } } // Check to see if DependsOnAlarms property is set internal bool IsSetDependsOnAlarms() { return this._dependsOnAlarms != null && this._dependsOnAlarms.Count > 0; } /// /// Gets and sets the property Description. /// /// The description for the test recommendation. /// /// [AWSProperty(Min=1, Max=500)] 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 Intent. /// /// The intent of the test recommendation. /// /// [AWSProperty(Min=0, Max=500)] public string Intent { get { return this._intent; } set { this._intent = value; } } // Check to see if Intent property is set internal bool IsSetIntent() { return this._intent != null; } /// /// Gets and sets the property Items. /// /// The test recommendation items. /// /// public List Items { get { return this._items; } set { this._items = value; } } // Check to see if Items property is set internal bool IsSetItems() { return this._items != null && this._items.Count > 0; } /// /// Gets and sets the property Name. /// /// The name of the test recommendation. /// /// [AWSProperty(Min=1, Max=500)] 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 Prerequisite. /// /// The prerequisite of the test recommendation. /// /// [AWSProperty(Min=1, Max=500)] public string Prerequisite { get { return this._prerequisite; } set { this._prerequisite = value; } } // Check to see if Prerequisite property is set internal bool IsSetPrerequisite() { return this._prerequisite != null; } /// /// Gets and sets the property RecommendationId. /// /// Identifier for the test recommendation. /// /// public string RecommendationId { get { return this._recommendationId; } set { this._recommendationId = value; } } // Check to see if RecommendationId property is set internal bool IsSetRecommendationId() { return this._recommendationId != null; } /// /// Gets and sets the property ReferenceId. /// /// The reference identifier for the test recommendation. /// /// [AWSProperty(Required=true, Min=1, Max=500)] public string ReferenceId { get { return this._referenceId; } set { this._referenceId = value; } } // Check to see if ReferenceId property is set internal bool IsSetReferenceId() { return this._referenceId != null; } /// /// Gets and sets the property Risk. /// /// The level of risk for this test recommendation. /// /// public TestRisk Risk { get { return this._risk; } set { this._risk = value; } } // Check to see if Risk property is set internal bool IsSetRisk() { return this._risk != null; } /// /// Gets and sets the property Type. /// /// The type of test recommendation. /// /// public TestType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }