/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model
{
///
/// Details for an individual security standard control.
///
public partial class StandardsControl
{
private string _controlId;
private ControlStatus _controlStatus;
private DateTime? _controlStatusUpdatedAt;
private string _description;
private string _disabledReason;
private List _relatedRequirements = new List();
private string _remediationUrl;
private SeverityRating _severityRating;
private string _standardsControlArn;
private string _title;
///
/// Gets and sets the property ControlId.
///
/// The identifier of the security standard control.
///
///
public string ControlId
{
get { return this._controlId; }
set { this._controlId = value; }
}
// Check to see if ControlId property is set
internal bool IsSetControlId()
{
return this._controlId != null;
}
///
/// Gets and sets the property ControlStatus.
///
/// The current status of the security standard control. Indicates whether the control
/// is enabled or disabled. Security Hub does not check against disabled controls.
///
///
public ControlStatus ControlStatus
{
get { return this._controlStatus; }
set { this._controlStatus = value; }
}
// Check to see if ControlStatus property is set
internal bool IsSetControlStatus()
{
return this._controlStatus != null;
}
///
/// Gets and sets the property ControlStatusUpdatedAt.
///
/// The date and time that the status of the security standard control was most recently
/// updated.
///
///
public DateTime ControlStatusUpdatedAt
{
get { return this._controlStatusUpdatedAt.GetValueOrDefault(); }
set { this._controlStatusUpdatedAt = value; }
}
// Check to see if ControlStatusUpdatedAt property is set
internal bool IsSetControlStatusUpdatedAt()
{
return this._controlStatusUpdatedAt.HasValue;
}
///
/// Gets and sets the property Description.
///
/// The longer description of the security standard control. Provides information about
/// what the control is checking for.
///
///
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 DisabledReason.
///
/// The reason provided for the most recent change in status for the control.
///
///
public string DisabledReason
{
get { return this._disabledReason; }
set { this._disabledReason = value; }
}
// Check to see if DisabledReason property is set
internal bool IsSetDisabledReason()
{
return this._disabledReason != null;
}
///
/// Gets and sets the property RelatedRequirements.
///
/// The list of requirements that are related to this control.
///
///
public List RelatedRequirements
{
get { return this._relatedRequirements; }
set { this._relatedRequirements = value; }
}
// Check to see if RelatedRequirements property is set
internal bool IsSetRelatedRequirements()
{
return this._relatedRequirements != null && this._relatedRequirements.Count > 0;
}
///
/// Gets and sets the property RemediationUrl.
///
/// A link to remediation information for the control in the Security Hub user documentation.
///
///
public string RemediationUrl
{
get { return this._remediationUrl; }
set { this._remediationUrl = value; }
}
// Check to see if RemediationUrl property is set
internal bool IsSetRemediationUrl()
{
return this._remediationUrl != null;
}
///
/// Gets and sets the property SeverityRating.
///
/// The severity of findings generated from this security standard control.
///
///
///
/// The finding severity is based on an assessment of how easy it would be to compromise
/// Amazon Web Services resources if the issue is detected.
///
///
public SeverityRating SeverityRating
{
get { return this._severityRating; }
set { this._severityRating = value; }
}
// Check to see if SeverityRating property is set
internal bool IsSetSeverityRating()
{
return this._severityRating != null;
}
///
/// Gets and sets the property StandardsControlArn.
///
/// The ARN of the security standard control.
///
///
public string StandardsControlArn
{
get { return this._standardsControlArn; }
set { this._standardsControlArn = value; }
}
// Check to see if StandardsControlArn property is set
internal bool IsSetStandardsControlArn()
{
return this._standardsControlArn != null;
}
///
/// Gets and sets the property Title.
///
/// The title of the security standard control.
///
///
public string Title
{
get { return this._title; }
set { this._title = value; }
}
// Check to see if Title property is set
internal bool IsSetTitle()
{
return this._title != null;
}
}
}