/* * 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 job execution object represents the execution of a job on a particular device. /// public partial class JobExecution { private long? _approximateSecondsBeforeTimedOut; private long? _executionNumber; private bool? _forceCanceled; private string _jobId; private DateTime? _lastUpdatedAt; private DateTime? _queuedAt; private DateTime? _startedAt; private JobExecutionStatus _status; private JobExecutionStatusDetails _statusDetails; private string _thingArn; private long? _versionNumber; /// /// Gets and sets the property ApproximateSecondsBeforeTimedOut. /// /// The estimated number of seconds that remain before the job execution status will be /// changed to TIMED_OUT. The timeout interval can be anywhere between 1 /// minute and 7 days (1 to 10080 minutes). The actual job execution timeout can occur /// up to 60 seconds later than the estimated duration. This value will not be included /// if the job execution has reached a terminal status. /// /// public long ApproximateSecondsBeforeTimedOut { get { return this._approximateSecondsBeforeTimedOut.GetValueOrDefault(); } set { this._approximateSecondsBeforeTimedOut = value; } } // Check to see if ApproximateSecondsBeforeTimedOut property is set internal bool IsSetApproximateSecondsBeforeTimedOut() { return this._approximateSecondsBeforeTimedOut.HasValue; } /// /// Gets and sets the property ExecutionNumber. /// /// A string (consisting of the digits "0" through "9") which identifies this particular /// job execution on this particular device. It can be used in commands which return or /// update job execution information. /// /// public long ExecutionNumber { get { return this._executionNumber.GetValueOrDefault(); } set { this._executionNumber = value; } } // Check to see if ExecutionNumber property is set internal bool IsSetExecutionNumber() { return this._executionNumber.HasValue; } /// /// Gets and sets the property ForceCanceled. /// /// Will be true if the job execution was canceled with the optional force /// parameter set to true. /// /// public bool ForceCanceled { get { return this._forceCanceled.GetValueOrDefault(); } set { this._forceCanceled = value; } } // Check to see if ForceCanceled property is set internal bool IsSetForceCanceled() { return this._forceCanceled.HasValue; } /// /// Gets and sets the property JobId. /// /// The unique identifier you assigned to the job when it was created. /// /// [AWSProperty(Min=1, Max=64)] public string JobId { get { return this._jobId; } set { this._jobId = value; } } // Check to see if JobId property is set internal bool IsSetJobId() { return this._jobId != null; } /// /// Gets and sets the property LastUpdatedAt. /// /// The time, in seconds since the epoch, when the job execution was last 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 QueuedAt. /// /// The time, in seconds since the epoch, when the job execution was queued. /// /// public DateTime QueuedAt { get { return this._queuedAt.GetValueOrDefault(); } set { this._queuedAt = value; } } // Check to see if QueuedAt property is set internal bool IsSetQueuedAt() { return this._queuedAt.HasValue; } /// /// Gets and sets the property StartedAt. /// /// The time, in seconds since the epoch, when the job execution started. /// /// public DateTime StartedAt { get { return this._startedAt.GetValueOrDefault(); } set { this._startedAt = value; } } // Check to see if StartedAt property is set internal bool IsSetStartedAt() { return this._startedAt.HasValue; } /// /// Gets and sets the property Status. /// /// The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, /// CANCELED, or REJECTED). /// /// public JobExecutionStatus 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 StatusDetails. /// /// A collection of name/value pairs that describe the status of the job execution. /// /// public JobExecutionStatusDetails StatusDetails { get { return this._statusDetails; } set { this._statusDetails = value; } } // Check to see if StatusDetails property is set internal bool IsSetStatusDetails() { return this._statusDetails != null; } /// /// Gets and sets the property ThingArn. /// /// The ARN of the thing on which the job execution is running. /// /// public string ThingArn { get { return this._thingArn; } set { this._thingArn = value; } } // Check to see if ThingArn property is set internal bool IsSetThingArn() { return this._thingArn != null; } /// /// Gets and sets the property VersionNumber. /// /// The version of the job execution. Job execution versions are incremented each time /// they are updated by a device. /// /// public long VersionNumber { get { return this._versionNumber.GetValueOrDefault(); } set { this._versionNumber = value; } } // Check to see if VersionNumber property is set internal bool IsSetVersionNumber() { return this._versionNumber.HasValue; } } }