/*
* 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-jobs-data-2017-09-29.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.IoTJobsDataPlane.Model
{
///
/// Container for the parameters to the StartNextPendingJobExecution operation.
/// Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for
/// a thing.
///
public partial class StartNextPendingJobExecutionRequest : AmazonIoTJobsDataPlaneRequest
{
private Dictionary _statusDetails = new Dictionary();
private long? _stepTimeoutInMinutes;
private string _thingName;
///
/// Gets and sets the property StatusDetails.
///
/// A collection of name/value pairs that describe the status of the job execution. If
/// not specified, the statusDetails are unchanged.
///
///
public Dictionary StatusDetails
{
get { return this._statusDetails; }
set { this._statusDetails = value; }
}
// Check to see if StatusDetails property is set
internal bool IsSetStatusDetails()
{
return this._statusDetails != null && this._statusDetails.Count > 0;
}
///
/// Gets and sets the property StepTimeoutInMinutes.
///
/// Specifies the amount of time this device has to finish execution of this job. If the
/// job execution status is not set to a terminal state before this timer expires, or
/// before the timer is reset (by calling UpdateJobExecution
, setting the
/// status to IN_PROGRESS
and specifying a new timeout value in field stepTimeoutInMinutes
)
/// the job execution status will be automatically set to TIMED_OUT
. Note
/// that setting this timeout has no effect on that job execution timeout which may have
/// been specified when the job was created (CreateJob
using field timeoutConfig
).
///
///
public long StepTimeoutInMinutes
{
get { return this._stepTimeoutInMinutes.GetValueOrDefault(); }
set { this._stepTimeoutInMinutes = value; }
}
// Check to see if StepTimeoutInMinutes property is set
internal bool IsSetStepTimeoutInMinutes()
{
return this._stepTimeoutInMinutes.HasValue;
}
///
/// Gets and sets the property ThingName.
///
/// The name of the thing associated with the device.
///
///
[AWSProperty(Required=true, 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;
}
}
}