/*
* 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 devops-guru-2020-12-01.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.DevOpsGuru.Model
{
///
/// Information about an anomaly that is related to a recommendation.
///
public partial class RecommendationRelatedAnomaly
{
private string _anomalyId;
private List _resources = new List();
private List _sourceDetails = new List();
///
/// Gets and sets the property AnomalyId.
///
/// The ID of an anomaly that generated the insight with this recommendation.
///
///
[AWSProperty(Min=1, Max=100)]
public string AnomalyId
{
get { return this._anomalyId; }
set { this._anomalyId = value; }
}
// Check to see if AnomalyId property is set
internal bool IsSetAnomalyId()
{
return this._anomalyId != null;
}
///
/// Gets and sets the property Resources.
///
/// An array of objects that represent resources in which DevOps Guru detected anomalous
/// behavior. Each object contains the name and type of the resource.
///
///
public List Resources
{
get { return this._resources; }
set { this._resources = value; }
}
// Check to see if Resources property is set
internal bool IsSetResources()
{
return this._resources != null && this._resources.Count > 0;
}
///
/// Gets and sets the property SourceDetails.
///
/// Information about where the anomalous behavior related the recommendation was found.
/// For example, details in Amazon CloudWatch metrics.
///
///
public List SourceDetails
{
get { return this._sourceDetails; }
set { this._sourceDetails = value; }
}
// Check to see if SourceDetails property is set
internal bool IsSetSourceDetails()
{
return this._sourceDetails != null && this._sourceDetails.Count > 0;
}
}
}