/*
* 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 config-2014-11-12.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.ConfigService.Model
{
///
/// The details of an Config evaluation. Provides the Amazon Web Services resource that
/// was evaluated, the compliance of the resource, related time stamps, and supplementary
/// information.
///
public partial class EvaluationResult
{
private string _annotation;
private ComplianceType _complianceType;
private DateTime? _configRuleInvokedTime;
private EvaluationResultIdentifier _evaluationResultIdentifier;
private DateTime? _resultRecordedTime;
private string _resultToken;
///
/// Gets and sets the property Annotation.
///
/// Supplementary information about how the evaluation determined the compliance.
///
///
[AWSProperty(Min=1, Max=256)]
public string Annotation
{
get { return this._annotation; }
set { this._annotation = value; }
}
// Check to see if Annotation property is set
internal bool IsSetAnnotation()
{
return this._annotation != null;
}
///
/// Gets and sets the property ComplianceType.
///
/// Indicates whether the Amazon Web Services resource complies with the Config rule that
/// evaluated it.
///
///
///
/// For the EvaluationResult
data type, Config supports only the COMPLIANT
,
/// NON_COMPLIANT
, and NOT_APPLICABLE
values. Config does not
/// support the INSUFFICIENT_DATA
value for the EvaluationResult
/// data type.
///
///
public ComplianceType ComplianceType
{
get { return this._complianceType; }
set { this._complianceType = value; }
}
// Check to see if ComplianceType property is set
internal bool IsSetComplianceType()
{
return this._complianceType != null;
}
///
/// Gets and sets the property ConfigRuleInvokedTime.
///
/// The time when the Config rule evaluated the Amazon Web Services resource.
///
///
public DateTime ConfigRuleInvokedTime
{
get { return this._configRuleInvokedTime.GetValueOrDefault(); }
set { this._configRuleInvokedTime = value; }
}
// Check to see if ConfigRuleInvokedTime property is set
internal bool IsSetConfigRuleInvokedTime()
{
return this._configRuleInvokedTime.HasValue;
}
///
/// Gets and sets the property EvaluationResultIdentifier.
///
/// Uniquely identifies the evaluation result.
///
///
public EvaluationResultIdentifier EvaluationResultIdentifier
{
get { return this._evaluationResultIdentifier; }
set { this._evaluationResultIdentifier = value; }
}
// Check to see if EvaluationResultIdentifier property is set
internal bool IsSetEvaluationResultIdentifier()
{
return this._evaluationResultIdentifier != null;
}
///
/// Gets and sets the property ResultRecordedTime.
///
/// The time when Config recorded the evaluation result.
///
///
public DateTime ResultRecordedTime
{
get { return this._resultRecordedTime.GetValueOrDefault(); }
set { this._resultRecordedTime = value; }
}
// Check to see if ResultRecordedTime property is set
internal bool IsSetResultRecordedTime()
{
return this._resultRecordedTime.HasValue;
}
///
/// Gets and sets the property ResultToken.
///
/// An encrypted token that associates an evaluation with an Config rule. The token identifies
/// the rule, the Amazon Web Services resource being evaluated, and the event that triggered
/// the evaluation.
///
///
public string ResultToken
{
get { return this._resultToken; }
set { this._resultToken = value; }
}
// Check to see if ResultToken property is set
internal bool IsSetResultToken()
{
return this._resultToken != null;
}
}
}