/*
* 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
{
///
/// Container for the parameters to the DeleteJob operation.
/// Deletes a job and its related job executions.
///
///
///
/// Deleting a job may take time, depending on the number of job executions created for
/// the job and various other factors. While the job is being deleted, the status of the
/// job will be shown as "DELETION_IN_PROGRESS". Attempting to delete or cancel a job
/// whose status is already "DELETION_IN_PROGRESS" will result in an error.
///
///
///
/// Only 10 jobs may have status "DELETION_IN_PROGRESS" at the same time, or a LimitExceededException
/// will occur.
///
///
///
/// Requires permission to access the DeleteJob
/// action.
///
///
public partial class DeleteJobRequest : AmazonIoTRequest
{
private bool? _force;
private string _jobId;
private string _namespaceId;
///
/// Gets and sets the property Force.
///
/// (Optional) When true, you can delete a job which is "IN_PROGRESS". Otherwise, you
/// can only delete a job which is in a terminal state ("COMPLETED" or "CANCELED") or
/// an exception will occur. The default is false.
///
///
///
/// Deleting a job which is "IN_PROGRESS", will cause a device which is executing the
/// job to be unable to access job information or update the job execution status. Use
/// caution and ensure that each device executing a job which is deleted is able to recover
/// to a valid state.
///
///
///
public bool Force
{
get { return this._force.GetValueOrDefault(); }
set { this._force = value; }
}
// Check to see if Force property is set
internal bool IsSetForce()
{
return this._force.HasValue;
}
///
/// Gets and sets the property JobId.
///
/// The ID of the job to be deleted.
///
///
///
/// After a job deletion is completed, you may reuse this jobId when you create a new
/// job. However, this is not recommended, and you must ensure that your devices are not
/// using the jobId to refer to the deleted job.
///
///
[AWSProperty(Required=true, 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 NamespaceId.
///
/// The namespace used to indicate that a job is a customer-managed job.
///
///
///
/// When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs
/// notifications to MQTT topics that contain the value in the following format.
///
///
///
/// $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
///
///
///
///
/// The namespaceId
feature is in public preview.
///
///
///
public string NamespaceId
{
get { return this._namespaceId; }
set { this._namespaceId = value; }
}
// Check to see if NamespaceId property is set
internal bool IsSetNamespaceId()
{
return this._namespaceId != null;
}
}
}