/* * 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 UpdateProvisioningTemplate operation. /// Updates a provisioning template. /// /// /// /// Requires permission to access the UpdateProvisioningTemplate /// action. /// /// public partial class UpdateProvisioningTemplateRequest : AmazonIoTRequest { private int? _defaultVersionId; private string _description; private bool? _enabled; private ProvisioningHook _preProvisioningHook; private string _provisioningRoleArn; private bool? _removePreProvisioningHook; private string _templateName; /// /// Gets and sets the property DefaultVersionId. /// /// The ID of the default provisioning template version. /// /// public int DefaultVersionId { get { return this._defaultVersionId.GetValueOrDefault(); } set { this._defaultVersionId = value; } } // Check to see if DefaultVersionId property is set internal bool IsSetDefaultVersionId() { return this._defaultVersionId.HasValue; } /// /// Gets and sets the property Description. /// /// The description of the provisioning template. /// /// [AWSProperty(Min=0, Max=500)] 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 Enabled. /// /// True to enable the provisioning template, otherwise false. /// /// public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// /// Gets and sets the property PreProvisioningHook. /// /// Updates the pre-provisioning hook template. Only supports template of type FLEET_PROVISIONING. /// For more information about provisioning template types, see type. /// /// public ProvisioningHook PreProvisioningHook { get { return this._preProvisioningHook; } set { this._preProvisioningHook = value; } } // Check to see if PreProvisioningHook property is set internal bool IsSetPreProvisioningHook() { return this._preProvisioningHook != null; } /// /// Gets and sets the property ProvisioningRoleArn. /// /// The ARN of the role associated with the provisioning template. This IoT role grants /// permission to provision a device. /// /// [AWSProperty(Min=20, Max=2048)] public string ProvisioningRoleArn { get { return this._provisioningRoleArn; } set { this._provisioningRoleArn = value; } } // Check to see if ProvisioningRoleArn property is set internal bool IsSetProvisioningRoleArn() { return this._provisioningRoleArn != null; } /// /// Gets and sets the property RemovePreProvisioningHook. /// /// Removes pre-provisioning hook template. /// /// public bool RemovePreProvisioningHook { get { return this._removePreProvisioningHook.GetValueOrDefault(); } set { this._removePreProvisioningHook = value; } } // Check to see if RemovePreProvisioningHook property is set internal bool IsSetRemovePreProvisioningHook() { return this._removePreProvisioningHook.HasValue; } /// /// Gets and sets the property TemplateName. /// /// The name of the provisioning template. /// /// [AWSProperty(Required=true, Min=1, Max=36)] public string TemplateName { get { return this._templateName; } set { this._templateName = value; } } // Check to see if TemplateName property is set internal bool IsSetTemplateName() { return this._templateName != null; } } }