/* * 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 ssm-2014-11-06.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.SimpleSystemsManagement.Model { /// /// Includes information about the specified association. /// public partial class AssociationExecution { private AlarmConfiguration _alarmConfiguration; private string _associationId; private string _associationVersion; private DateTime? _createdTime; private string _detailedStatus; private string _executionId; private DateTime? _lastExecutionDate; private string _resourceCountByStatus; private string _status; private List _triggeredAlarms = new List(); /// /// Gets and sets the property AlarmConfiguration. /// public AlarmConfiguration AlarmConfiguration { get { return this._alarmConfiguration; } set { this._alarmConfiguration = value; } } // Check to see if AlarmConfiguration property is set internal bool IsSetAlarmConfiguration() { return this._alarmConfiguration != null; } /// /// Gets and sets the property AssociationId. /// /// The association ID. /// /// public string AssociationId { get { return this._associationId; } set { this._associationId = value; } } // Check to see if AssociationId property is set internal bool IsSetAssociationId() { return this._associationId != null; } /// /// Gets and sets the property AssociationVersion. /// /// The association version. /// /// public string AssociationVersion { get { return this._associationVersion; } set { this._associationVersion = value; } } // Check to see if AssociationVersion property is set internal bool IsSetAssociationVersion() { return this._associationVersion != null; } /// /// Gets and sets the property CreatedTime. /// /// The time the execution started. /// /// public DateTime CreatedTime { get { return this._createdTime.GetValueOrDefault(); } set { this._createdTime = value; } } // Check to see if CreatedTime property is set internal bool IsSetCreatedTime() { return this._createdTime.HasValue; } /// /// Gets and sets the property DetailedStatus. /// /// Detailed status information about the execution. /// /// public string DetailedStatus { get { return this._detailedStatus; } set { this._detailedStatus = value; } } // Check to see if DetailedStatus property is set internal bool IsSetDetailedStatus() { return this._detailedStatus != null; } /// /// Gets and sets the property ExecutionId. /// /// The execution ID for the association. /// /// public string ExecutionId { get { return this._executionId; } set { this._executionId = value; } } // Check to see if ExecutionId property is set internal bool IsSetExecutionId() { return this._executionId != null; } /// /// Gets and sets the property LastExecutionDate. /// /// The date of the last execution. /// /// public DateTime LastExecutionDate { get { return this._lastExecutionDate.GetValueOrDefault(); } set { this._lastExecutionDate = value; } } // Check to see if LastExecutionDate property is set internal bool IsSetLastExecutionDate() { return this._lastExecutionDate.HasValue; } /// /// Gets and sets the property ResourceCountByStatus. /// /// An aggregate status of the resources in the execution based on the status type. /// /// public string ResourceCountByStatus { get { return this._resourceCountByStatus; } set { this._resourceCountByStatus = value; } } // Check to see if ResourceCountByStatus property is set internal bool IsSetResourceCountByStatus() { return this._resourceCountByStatus != null; } /// /// Gets and sets the property Status. /// /// The status of the association execution. /// /// public string 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 TriggeredAlarms. /// /// The CloudWatch alarms that were invoked by the association. /// /// [AWSProperty(Min=1, Max=1)] public List TriggeredAlarms { get { return this._triggeredAlarms; } set { this._triggeredAlarms = value; } } // Check to see if TriggeredAlarms property is set internal bool IsSetTriggeredAlarms() { return this._triggeredAlarms != null && this._triggeredAlarms.Count > 0; } } }