/* * 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 { /// /// Describes which mitigation actions should be executed. /// public partial class DetectMitigationActionExecution { private string _actionName; private string _errorCode; private DateTime? _executionEndDate; private DateTime? _executionStartDate; private string _message; private DetectMitigationActionExecutionStatus _status; private string _taskId; private string _thingName; private string _violationId; /// /// Gets and sets the property ActionName. /// /// The friendly name that uniquely identifies the mitigation action. /// /// [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 ErrorCode. /// /// The error code of a mitigation action. /// /// 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 ExecutionEndDate. /// /// The date a mitigation action ended. /// /// public DateTime ExecutionEndDate { get { return this._executionEndDate.GetValueOrDefault(); } set { this._executionEndDate = value; } } // Check to see if ExecutionEndDate property is set internal bool IsSetExecutionEndDate() { return this._executionEndDate.HasValue; } /// /// Gets and sets the property ExecutionStartDate. /// /// The date a mitigation action was started. /// /// public DateTime ExecutionStartDate { get { return this._executionStartDate.GetValueOrDefault(); } set { this._executionStartDate = value; } } // Check to see if ExecutionStartDate property is set internal bool IsSetExecutionStartDate() { return this._executionStartDate.HasValue; } /// /// Gets and sets the property Message. /// /// The message of a mitigation action. /// /// [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 Status. /// /// The status of a mitigation action. /// /// public DetectMitigationActionExecutionStatus 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 of the task. /// /// [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; } /// /// Gets and sets the property ThingName. /// /// The name of the thing. /// /// [AWSProperty(Min=1, Max=128)] public string ThingName { get { return this._thingName; } set { this._thingName = value; } } // Check to see if ThingName property is set internal bool IsSetThingName() { return this._thingName != null; } /// /// Gets and sets the property ViolationId. /// /// The unique identifier of the violation. /// /// [AWSProperty(Min=1, Max=128)] public string ViolationId { get { return this._violationId; } set { this._violationId = value; } } // Check to see if ViolationId property is set internal bool IsSetViolationId() { return this._violationId != null; } } }