/*
* 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 auditmanager-2017-07-25.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.AuditManager.Model
{
///
/// A control in Audit Manager.
///
public partial class Control
{
private string _actionPlanInstructions;
private string _actionPlanTitle;
private string _arn;
private List _controlMappingSources = new List();
private string _controlSources;
private DateTime? _createdAt;
private string _createdBy;
private string _description;
private string _id;
private DateTime? _lastUpdatedAt;
private string _lastUpdatedBy;
private string _name;
private Dictionary _tags = new Dictionary();
private string _testingInformation;
private ControlType _type;
///
/// Gets and sets the property ActionPlanInstructions.
///
/// The recommended actions to carry out if the control isn't fulfilled.
///
///
[AWSProperty(Max=1000)]
public string ActionPlanInstructions
{
get { return this._actionPlanInstructions; }
set { this._actionPlanInstructions = value; }
}
// Check to see if ActionPlanInstructions property is set
internal bool IsSetActionPlanInstructions()
{
return this._actionPlanInstructions != null;
}
///
/// Gets and sets the property ActionPlanTitle.
///
/// The title of the action plan for remediating the control.
///
///
[AWSProperty(Max=300)]
public string ActionPlanTitle
{
get { return this._actionPlanTitle; }
set { this._actionPlanTitle = value; }
}
// Check to see if ActionPlanTitle property is set
internal bool IsSetActionPlanTitle()
{
return this._actionPlanTitle != null;
}
///
/// Gets and sets the property Arn.
///
/// The Amazon Resource Name (ARN) of the control.
///
///
[AWSProperty(Min=20, Max=2048)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// Gets and sets the property ControlMappingSources.
///
/// The data mapping sources for the control.
///
///
[AWSProperty(Min=1)]
public List ControlMappingSources
{
get { return this._controlMappingSources; }
set { this._controlMappingSources = value; }
}
// Check to see if ControlMappingSources property is set
internal bool IsSetControlMappingSources()
{
return this._controlMappingSources != null && this._controlMappingSources.Count > 0;
}
///
/// Gets and sets the property ControlSources.
///
/// The data source types that determine where Audit Manager collects evidence from for
/// the control.
///
///
[AWSProperty(Min=1, Max=100)]
public string ControlSources
{
get { return this._controlSources; }
set { this._controlSources = value; }
}
// Check to see if ControlSources property is set
internal bool IsSetControlSources()
{
return this._controlSources != null;
}
///
/// Gets and sets the property CreatedAt.
///
/// The time when the control was created.
///
///
public DateTime CreatedAt
{
get { return this._createdAt.GetValueOrDefault(); }
set { this._createdAt = value; }
}
// Check to see if CreatedAt property is set
internal bool IsSetCreatedAt()
{
return this._createdAt.HasValue;
}
///
/// Gets and sets the property CreatedBy.
///
/// The user or role that created the control.
///
///
[AWSProperty(Min=1, Max=100)]
public string CreatedBy
{
get { return this._createdBy; }
set { this._createdBy = value; }
}
// Check to see if CreatedBy property is set
internal bool IsSetCreatedBy()
{
return this._createdBy != null;
}
///
/// Gets and sets the property Description.
///
/// The description of the control.
///
///
[AWSProperty(Max=1000)]
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 Id.
///
/// The unique identifier for the control.
///
///
[AWSProperty(Min=36, Max=36)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property LastUpdatedAt.
///
/// The time when the control was most recently updated.
///
///
public DateTime LastUpdatedAt
{
get { return this._lastUpdatedAt.GetValueOrDefault(); }
set { this._lastUpdatedAt = value; }
}
// Check to see if LastUpdatedAt property is set
internal bool IsSetLastUpdatedAt()
{
return this._lastUpdatedAt.HasValue;
}
///
/// Gets and sets the property LastUpdatedBy.
///
/// The user or role that most recently updated the control.
///
///
[AWSProperty(Min=1, Max=100)]
public string LastUpdatedBy
{
get { return this._lastUpdatedBy; }
set { this._lastUpdatedBy = value; }
}
// Check to see if LastUpdatedBy property is set
internal bool IsSetLastUpdatedBy()
{
return this._lastUpdatedBy != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the control.
///
///
[AWSProperty(Min=1, Max=300)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property Tags.
///
/// The tags associated with the control.
///
///
[AWSProperty(Min=0, Max=50)]
public Dictionary Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
///
/// Gets and sets the property TestingInformation.
///
/// The steps that you should follow to determine if the control has been satisfied.
///
///
///
[AWSProperty(Max=1000)]
public string TestingInformation
{
get { return this._testingInformation; }
set { this._testingInformation = value; }
}
// Check to see if TestingInformation property is set
internal bool IsSetTestingInformation()
{
return this._testingInformation != null;
}
///
/// Gets and sets the property Type.
///
/// Specifies whether the control is a standard control or a custom control.
///
///
public ControlType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}