/* * 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 summary of the mitigation action tasks. /// public partial class DetectMitigationActionsTaskSummary { private List _actionsDefinition = new List(); private bool? _onlyActiveViolationsIncluded; private bool? _suppressedAlertsIncluded; private DetectMitigationActionsTaskTarget _target; private DateTime? _taskEndTime; private string _taskId; private DateTime? _taskStartTime; private DetectMitigationActionsTaskStatistics _taskStatistics; private DetectMitigationActionsTaskStatus _taskStatus; private ViolationEventOccurrenceRange _violationEventOccurrenceRange; /// /// Gets and sets the property ActionsDefinition. /// /// The definition of the actions. /// /// public List ActionsDefinition { get { return this._actionsDefinition; } set { this._actionsDefinition = value; } } // Check to see if ActionsDefinition property is set internal bool IsSetActionsDefinition() { return this._actionsDefinition != null && this._actionsDefinition.Count > 0; } /// /// Gets and sets the property OnlyActiveViolationsIncluded. /// /// Includes only active violations. /// /// public bool OnlyActiveViolationsIncluded { get { return this._onlyActiveViolationsIncluded.GetValueOrDefault(); } set { this._onlyActiveViolationsIncluded = value; } } // Check to see if OnlyActiveViolationsIncluded property is set internal bool IsSetOnlyActiveViolationsIncluded() { return this._onlyActiveViolationsIncluded.HasValue; } /// /// Gets and sets the property SuppressedAlertsIncluded. /// /// Includes suppressed alerts. /// /// public bool SuppressedAlertsIncluded { get { return this._suppressedAlertsIncluded.GetValueOrDefault(); } set { this._suppressedAlertsIncluded = value; } } // Check to see if SuppressedAlertsIncluded property is set internal bool IsSetSuppressedAlertsIncluded() { return this._suppressedAlertsIncluded.HasValue; } /// /// Gets and sets the property Target. /// /// Specifies the ML Detect findings to which the mitigation actions are applied. /// /// public DetectMitigationActionsTaskTarget Target { get { return this._target; } set { this._target = value; } } // Check to see if Target property is set internal bool IsSetTarget() { return this._target != null; } /// /// Gets and sets the property TaskEndTime. /// /// The date the task ended. /// /// public DateTime TaskEndTime { get { return this._taskEndTime.GetValueOrDefault(); } set { this._taskEndTime = value; } } // Check to see if TaskEndTime property is set internal bool IsSetTaskEndTime() { return this._taskEndTime.HasValue; } /// /// 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 TaskStartTime. /// /// The date the task 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; } /// /// Gets and sets the property TaskStatistics. /// /// The statistics of a mitigation action task. /// /// public DetectMitigationActionsTaskStatistics TaskStatistics { get { return this._taskStatistics; } set { this._taskStatistics = value; } } // Check to see if TaskStatistics property is set internal bool IsSetTaskStatistics() { return this._taskStatistics != null; } /// /// Gets and sets the property TaskStatus. /// /// The status of the task. /// /// public DetectMitigationActionsTaskStatus TaskStatus { get { return this._taskStatus; } set { this._taskStatus = value; } } // Check to see if TaskStatus property is set internal bool IsSetTaskStatus() { return this._taskStatus != null; } /// /// Gets and sets the property ViolationEventOccurrenceRange. /// /// Specifies the time period of which violation events occurred between. /// /// public ViolationEventOccurrenceRange ViolationEventOccurrenceRange { get { return this._violationEventOccurrenceRange; } set { this._violationEventOccurrenceRange = value; } } // Check to see if ViolationEventOccurrenceRange property is set internal bool IsSetViolationEventOccurrenceRange() { return this._violationEventOccurrenceRange != null; } } }