/* * 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 CreateJobTemplate operation. /// Creates a job template. /// /// /// /// Requires permission to access the CreateJobTemplate /// action. /// /// public partial class CreateJobTemplateRequest : AmazonIoTRequest { private AbortConfig _abortConfig; private string _description; private List _destinationPackageVersions = new List(); private string _document; private string _documentSource; private string _jobArn; private JobExecutionsRetryConfig _jobExecutionsRetryConfig; private JobExecutionsRolloutConfig _jobExecutionsRolloutConfig; private string _jobTemplateId; private List _maintenanceWindows = new List(); private PresignedUrlConfig _presignedUrlConfig; private List _tags = new List(); private TimeoutConfig _timeoutConfig; /// /// Gets and sets the property AbortConfig. /// public AbortConfig AbortConfig { get { return this._abortConfig; } set { this._abortConfig = value; } } // Check to see if AbortConfig property is set internal bool IsSetAbortConfig() { return this._abortConfig != null; } /// /// Gets and sets the property Description. /// /// A description of the job document. /// /// [AWSProperty(Required=true, Max=2028)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property DestinationPackageVersions. /// /// The package version Amazon Resource Names (ARNs) that are installed on the device /// when the job successfully completes. /// /// /// /// Note:The following Length Constraints relates to a single string. Up to five /// strings are allowed. /// /// public List DestinationPackageVersions { get { return this._destinationPackageVersions; } set { this._destinationPackageVersions = value; } } // Check to see if DestinationPackageVersions property is set internal bool IsSetDestinationPackageVersions() { return this._destinationPackageVersions != null && this._destinationPackageVersions.Count > 0; } /// /// Gets and sets the property Document. /// /// The job document. Required if you don't specify a value for documentSource. /// /// [AWSProperty(Max=32768)] public string Document { get { return this._document; } set { this._document = value; } } // Check to see if Document property is set internal bool IsSetDocument() { return this._document != null; } /// /// Gets and sets the property DocumentSource. /// /// An S3 link to the job document to use in the template. Required if you don't specify /// a value for document. /// /// /// /// If the job document resides in an S3 bucket, you must use a placeholder link when /// specifying the document. /// /// /// /// The placeholder link is of the following form: /// /// /// /// ${aws:iot:s3-presigned-url:https://s3.amazonaws.com/bucket/key} /// /// /// /// /// where bucket is your bucket name and key is the object in the bucket /// to which you are linking. /// /// /// [AWSProperty(Min=1, Max=1350)] public string DocumentSource { get { return this._documentSource; } set { this._documentSource = value; } } // Check to see if DocumentSource property is set internal bool IsSetDocumentSource() { return this._documentSource != null; } /// /// Gets and sets the property JobArn. /// /// The ARN of the job to use as the basis for the job template. /// /// public string JobArn { get { return this._jobArn; } set { this._jobArn = value; } } // Check to see if JobArn property is set internal bool IsSetJobArn() { return this._jobArn != null; } /// /// Gets and sets the property JobExecutionsRetryConfig. /// /// Allows you to create the criteria to retry a job. /// /// public JobExecutionsRetryConfig JobExecutionsRetryConfig { get { return this._jobExecutionsRetryConfig; } set { this._jobExecutionsRetryConfig = value; } } // Check to see if JobExecutionsRetryConfig property is set internal bool IsSetJobExecutionsRetryConfig() { return this._jobExecutionsRetryConfig != null; } /// /// Gets and sets the property JobExecutionsRolloutConfig. /// public JobExecutionsRolloutConfig JobExecutionsRolloutConfig { get { return this._jobExecutionsRolloutConfig; } set { this._jobExecutionsRolloutConfig = value; } } // Check to see if JobExecutionsRolloutConfig property is set internal bool IsSetJobExecutionsRolloutConfig() { return this._jobExecutionsRolloutConfig != null; } /// /// Gets and sets the property JobTemplateId. /// /// A unique identifier for the job template. We recommend using a UUID. Alpha-numeric /// characters, "-", and "_" are valid for use here. /// /// [AWSProperty(Required=true, Min=1, Max=64)] public string JobTemplateId { get { return this._jobTemplateId; } set { this._jobTemplateId = value; } } // Check to see if JobTemplateId property is set internal bool IsSetJobTemplateId() { return this._jobTemplateId != null; } /// /// Gets and sets the property MaintenanceWindows. /// /// Allows you to configure an optional maintenance window for the rollout of a job document /// to all devices in the target group for a job. /// /// public List MaintenanceWindows { get { return this._maintenanceWindows; } set { this._maintenanceWindows = value; } } // Check to see if MaintenanceWindows property is set internal bool IsSetMaintenanceWindows() { return this._maintenanceWindows != null && this._maintenanceWindows.Count > 0; } /// /// Gets and sets the property PresignedUrlConfig. /// public PresignedUrlConfig PresignedUrlConfig { get { return this._presignedUrlConfig; } set { this._presignedUrlConfig = value; } } // Check to see if PresignedUrlConfig property is set internal bool IsSetPresignedUrlConfig() { return this._presignedUrlConfig != null; } /// /// Gets and sets the property Tags. /// /// Metadata that can be used to manage the job template. /// /// public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property TimeoutConfig. /// public TimeoutConfig TimeoutConfig { get { return this._timeoutConfig; } set { this._timeoutConfig = value; } } // Check to see if TimeoutConfig property is set internal bool IsSetTimeoutConfig() { return this._timeoutConfig != null; } } }