/*
* 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
{
///
/// Identifies an Amazon Web Services resource and indicates whether it complies with
/// the Config rule that it was evaluated against.
///
public partial class ExternalEvaluation
{
private string _annotation;
private string _complianceResourceId;
private string _complianceResourceType;
private ComplianceType _complianceType;
private DateTime? _orderingTimestamp;
///
/// Gets and sets the property Annotation.
///
/// Supplementary information about the reason of compliance. For example, this task was
/// completed on a specific date.
///
///
[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 ComplianceResourceId.
///
/// The evaluated compliance resource ID. Config accepts only Amazon Web Services account
/// ID.
///
///
[AWSProperty(Required=true, Min=1, Max=768)]
public string ComplianceResourceId
{
get { return this._complianceResourceId; }
set { this._complianceResourceId = value; }
}
// Check to see if ComplianceResourceId property is set
internal bool IsSetComplianceResourceId()
{
return this._complianceResourceId != null;
}
///
/// Gets and sets the property ComplianceResourceType.
///
/// The evaluated compliance resource type. Config accepts AWS::::Account
/// resource type.
///
///
[AWSProperty(Required=true, Min=1, Max=256)]
public string ComplianceResourceType
{
get { return this._complianceResourceType; }
set { this._complianceResourceType = value; }
}
// Check to see if ComplianceResourceType property is set
internal bool IsSetComplianceResourceType()
{
return this._complianceResourceType != null;
}
///
/// Gets and sets the property ComplianceType.
///
/// The compliance of the Amazon Web Services resource. The valid values are COMPLIANT,
/// NON_COMPLIANT,
and NOT_APPLICABLE
.
///
///
[AWSProperty(Required=true)]
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 OrderingTimestamp.
///
/// The time when the compliance was recorded.
///
///
[AWSProperty(Required=true)]
public DateTime OrderingTimestamp
{
get { return this._orderingTimestamp.GetValueOrDefault(); }
set { this._orderingTimestamp = value; }
}
// Check to see if OrderingTimestamp property is set
internal bool IsSetOrderingTimestamp()
{
return this._orderingTimestamp.HasValue;
}
}
}