/*
* 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
{
///
/// This is the response object from the DescribeProvisioningTemplate operation.
///
public partial class DescribeProvisioningTemplateResponse : AmazonWebServiceResponse
{
private DateTime? _creationDate;
private int? _defaultVersionId;
private string _description;
private bool? _enabled;
private DateTime? _lastModifiedDate;
private ProvisioningHook _preProvisioningHook;
private string _provisioningRoleArn;
private string _templateArn;
private string _templateBody;
private string _templateName;
private TemplateType _type;
///
/// Gets and sets the property CreationDate.
///
/// The date when the provisioning template was created.
///
///
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
///
/// Gets and sets the property DefaultVersionId.
///
/// The default fleet template version ID.
///
///
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 if the provisioning template is enabled, 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 LastModifiedDate.
///
/// The date when the provisioning template was last modified.
///
///
public DateTime LastModifiedDate
{
get { return this._lastModifiedDate.GetValueOrDefault(); }
set { this._lastModifiedDate = value; }
}
// Check to see if LastModifiedDate property is set
internal bool IsSetLastModifiedDate()
{
return this._lastModifiedDate.HasValue;
}
///
/// Gets and sets the property PreProvisioningHook.
///
/// Gets information about a pre-provisioned hook.
///
///
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 TemplateArn.
///
/// The ARN of the provisioning template.
///
///
public string TemplateArn
{
get { return this._templateArn; }
set { this._templateArn = value; }
}
// Check to see if TemplateArn property is set
internal bool IsSetTemplateArn()
{
return this._templateArn != null;
}
///
/// Gets and sets the property TemplateBody.
///
/// The JSON formatted contents of the provisioning template.
///
///
[AWSProperty(Min=0, Max=10240)]
public string TemplateBody
{
get { return this._templateBody; }
set { this._templateBody = value; }
}
// Check to see if TemplateBody property is set
internal bool IsSetTemplateBody()
{
return this._templateBody != null;
}
///
/// Gets and sets the property TemplateName.
///
/// The name of the provisioning template.
///
///
[AWSProperty(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;
}
///
/// Gets and sets the property Type.
///
/// The type you define in a provisioning template. You can create a template with only
/// one type. You can't change the template type after its creation. The default value
/// is FLEET_PROVISIONING
. For more information about provisioning template,
/// see: Provisioning
/// template.
///
///
public TemplateType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}