/*
* 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 iot-2015-05-28.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.IoT.Model
{
///
/// The findings (results) of the audit.
///
public partial class AuditFinding
{
private string _checkName;
private string _findingId;
private DateTime? _findingTime;
private bool? _isSuppressed;
private NonCompliantResource _nonCompliantResource;
private string _reasonForNonCompliance;
private string _reasonForNonComplianceCode;
private List _relatedResources = new List();
private AuditFindingSeverity _severity;
private string _taskId;
private DateTime? _taskStartTime;
///
/// Gets and sets the property CheckName.
///
/// The audit check that generated this result.
///
///
public string CheckName
{
get { return this._checkName; }
set { this._checkName = value; }
}
// Check to see if CheckName property is set
internal bool IsSetCheckName()
{
return this._checkName != null;
}
///
/// Gets and sets the property FindingId.
///
/// A unique identifier for this set of audit findings. This identifier is used to apply
/// mitigation tasks to one or more sets of findings.
///
///
[AWSProperty(Min=1, Max=128)]
public string FindingId
{
get { return this._findingId; }
set { this._findingId = value; }
}
// Check to see if FindingId property is set
internal bool IsSetFindingId()
{
return this._findingId != null;
}
///
/// Gets and sets the property FindingTime.
///
/// The time the result (finding) was discovered.
///
///
public DateTime FindingTime
{
get { return this._findingTime.GetValueOrDefault(); }
set { this._findingTime = value; }
}
// Check to see if FindingTime property is set
internal bool IsSetFindingTime()
{
return this._findingTime.HasValue;
}
///
/// Gets and sets the property IsSuppressed.
///
/// Indicates whether the audit finding was suppressed or not during reporting.
///
///
public bool IsSuppressed
{
get { return this._isSuppressed.GetValueOrDefault(); }
set { this._isSuppressed = value; }
}
// Check to see if IsSuppressed property is set
internal bool IsSetIsSuppressed()
{
return this._isSuppressed.HasValue;
}
///
/// Gets and sets the property NonCompliantResource.
///
/// The resource that was found to be noncompliant with the audit check.
///
///
public NonCompliantResource NonCompliantResource
{
get { return this._nonCompliantResource; }
set { this._nonCompliantResource = value; }
}
// Check to see if NonCompliantResource property is set
internal bool IsSetNonCompliantResource()
{
return this._nonCompliantResource != null;
}
///
/// Gets and sets the property ReasonForNonCompliance.
///
/// The reason the resource was noncompliant.
///
///
public string ReasonForNonCompliance
{
get { return this._reasonForNonCompliance; }
set { this._reasonForNonCompliance = value; }
}
// Check to see if ReasonForNonCompliance property is set
internal bool IsSetReasonForNonCompliance()
{
return this._reasonForNonCompliance != null;
}
///
/// Gets and sets the property ReasonForNonComplianceCode.
///
/// A code that indicates the reason that the resource was noncompliant.
///
///
public string ReasonForNonComplianceCode
{
get { return this._reasonForNonComplianceCode; }
set { this._reasonForNonComplianceCode = value; }
}
// Check to see if ReasonForNonComplianceCode property is set
internal bool IsSetReasonForNonComplianceCode()
{
return this._reasonForNonComplianceCode != null;
}
///
/// Gets and sets the property RelatedResources.
///
/// The list of related resources.
///
///
public List RelatedResources
{
get { return this._relatedResources; }
set { this._relatedResources = value; }
}
// Check to see if RelatedResources property is set
internal bool IsSetRelatedResources()
{
return this._relatedResources != null && this._relatedResources.Count > 0;
}
///
/// Gets and sets the property Severity.
///
/// The severity of the result (finding).
///
///
public AuditFindingSeverity Severity
{
get { return this._severity; }
set { this._severity = value; }
}
// Check to see if Severity property is set
internal bool IsSetSeverity()
{
return this._severity != null;
}
///
/// Gets and sets the property TaskId.
///
/// The ID of the audit that generated this result (finding).
///
///
[AWSProperty(Min=1, Max=40)]
public string TaskId
{
get { return this._taskId; }
set { this._taskId = value; }
}
// Check to see if TaskId property is set
internal bool IsSetTaskId()
{
return this._taskId != null;
}
///
/// Gets and sets the property TaskStartTime.
///
/// The time the audit started.
///
///
public DateTime TaskStartTime
{
get { return this._taskStartTime.GetValueOrDefault(); }
set { this._taskStartTime = value; }
}
// Check to see if TaskStartTime property is set
internal bool IsSetTaskStartTime()
{
return this._taskStartTime.HasValue;
}
}
}