/*
* 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 recommendation for a CloudWatch alarm.
///
public partial class AlarmRecommendation
{
private string _appComponentName;
private string _description;
private List _items = new List();
private string _name;
private string _prerequisite;
private string _recommendationId;
private string _referenceId;
private AlarmType _type;
///
/// Gets and sets the property AppComponentName.
///
/// The Application Component for the CloudWatch alarm recommendation.
///
///
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 Description.
///
/// The description of the recommendation.
///
///
[AWSProperty(Min=0, 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 Items.
///
/// The list of CloudWatch alarm recommendations.
///
///
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 alarm recommendation.
///
///
[AWSProperty(Required=true, 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 for the alarm 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.
///
/// The identifier of the alarm recommendation.
///
///
[AWSProperty(Required=true)]
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 of the alarm 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 Type.
///
/// The type of alarm recommendation.
///
///
[AWSProperty(Required=true)]
public AlarmType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}