/*
* 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
{
///
/// Returned by ListAuditMitigationActionsTask, this object contains information that
/// describes a mitigation action that has been started.
///
public partial class AuditMitigationActionExecutionMetadata
{
private string _actionId;
private string _actionName;
private DateTime? _endTime;
private string _errorCode;
private string _findingId;
private string _message;
private DateTime? _startTime;
private AuditMitigationActionsExecutionStatus _status;
private string _taskId;
///
/// Gets and sets the property ActionId.
///
/// The unique identifier for the mitigation action being applied by the task.
///
///
public string ActionId
{
get { return this._actionId; }
set { this._actionId = value; }
}
// Check to see if ActionId property is set
internal bool IsSetActionId()
{
return this._actionId != null;
}
///
/// Gets and sets the property ActionName.
///
/// The friendly name of the mitigation action being applied by the task.
///
///
[AWSProperty(Max=128)]
public string ActionName
{
get { return this._actionName; }
set { this._actionName = value; }
}
// Check to see if ActionName property is set
internal bool IsSetActionName()
{
return this._actionName != null;
}
///
/// Gets and sets the property EndTime.
///
/// The date and time when the task was completed or canceled. Blank if the task is still
/// running.
///
///
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
///
/// Gets and sets the property ErrorCode.
///
/// If an error occurred, the code that indicates which type of error occurred.
///
///
public string ErrorCode
{
get { return this._errorCode; }
set { this._errorCode = value; }
}
// Check to see if ErrorCode property is set
internal bool IsSetErrorCode()
{
return this._errorCode != null;
}
///
/// Gets and sets the property FindingId.
///
/// The unique identifier for the findings to which the task and associated mitigation
/// action are applied.
///
///
[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 Message.
///
/// If an error occurred, a message that describes the error.
///
///
[AWSProperty(Max=2048)]
public string Message
{
get { return this._message; }
set { this._message = value; }
}
// Check to see if Message property is set
internal bool IsSetMessage()
{
return this._message != null;
}
///
/// Gets and sets the property StartTime.
///
/// The date and time when the task was started.
///
///
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
///
/// Gets and sets the property Status.
///
/// The current status of the task being executed.
///
///
public AuditMitigationActionsExecutionStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property TaskId.
///
/// The unique identifier for the task that applies the mitigation action.
///
///
[AWSProperty(Min=1, Max=128)]
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;
}
}
}