/* * Copyright 2010-2023 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. */ package com.amazonaws.services.iot.model; import java.io.Serializable; public class DescribeProvisioningTemplateResult implements Serializable { /** *
* The ARN of the provisioning template. *
*/ private String templateArn; /** ** The name of the provisioning template. *
*
* Constraints:
* Length: 1 - 36
* Pattern: ^[0-9A-Za-z_-]+$
*/
private String templateName;
/**
*
* The description of the provisioning template. *
*
* Constraints:
* Length: 0 - 500
* Pattern: [^\p{C}]*
*/
private String description;
/**
*
* The date when the provisioning template was created. *
*/ private java.util.Date creationDate; /** ** The date when the provisioning template was last modified. *
*/ private java.util.Date lastModifiedDate; /** ** The default fleet template version ID. *
*/ private Integer defaultVersionId; /** ** The JSON formatted contents of the provisioning template. *
*
* Constraints:
* Length: 0 - 10240
* Pattern: [\s\S]*
*/
private String templateBody;
/**
*
* True if the provisioning template is enabled, otherwise false. *
*/ private Boolean enabled; /** ** The ARN of the role associated with the provisioning template. This IoT * role grants permission to provision a device. *
*
* Constraints:
* Length: 20 - 2048
*/
private String provisioningRoleArn;
/**
*
* Gets information about a pre-provisioned hook. *
*/ private ProvisioningHook preProvisioningHook; /** *
* 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.
*
* Constraints:
* Allowed Values: FLEET_PROVISIONING, JITP
*/
private String type;
/**
*
* The ARN of the provisioning template. *
* * @return* The ARN of the provisioning template. *
*/ public String getTemplateArn() { return templateArn; } /** ** The ARN of the provisioning template. *
* * @param templateArn* The ARN of the provisioning template. *
*/ public void setTemplateArn(String templateArn) { this.templateArn = templateArn; } /** ** The ARN of the provisioning template. *
** Returns a reference to this object so that method calls can be chained * together. * * @param templateArn
* The ARN of the provisioning template. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeProvisioningTemplateResult withTemplateArn(String templateArn) { this.templateArn = templateArn; return this; } /** ** The name of the provisioning template. *
*
* Constraints:
* Length: 1 - 36
* Pattern: ^[0-9A-Za-z_-]+$
*
* @return
* The name of the provisioning template. *
*/ public String getTemplateName() { return templateName; } /** ** The name of the provisioning template. *
*
* Constraints:
* Length: 1 - 36
* Pattern: ^[0-9A-Za-z_-]+$
*
* @param templateName
* The name of the provisioning template. *
*/ public void setTemplateName(String templateName) { this.templateName = templateName; } /** ** The name of the provisioning template. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 36
* Pattern: ^[0-9A-Za-z_-]+$
*
* @param templateName
* The name of the provisioning template. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeProvisioningTemplateResult withTemplateName(String templateName) { this.templateName = templateName; return this; } /** ** The description of the provisioning template. *
*
* Constraints:
* Length: 0 - 500
* Pattern: [^\p{C}]*
*
* @return
* The description of the provisioning template. *
*/ public String getDescription() { return description; } /** ** The description of the provisioning template. *
*
* Constraints:
* Length: 0 - 500
* Pattern: [^\p{C}]*
*
* @param description
* The description of the provisioning template. *
*/ public void setDescription(String description) { this.description = description; } /** ** The description of the provisioning template. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 0 - 500
* Pattern: [^\p{C}]*
*
* @param description
* The description of the provisioning template. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeProvisioningTemplateResult withDescription(String description) { this.description = description; return this; } /** ** The date when the provisioning template was created. *
* * @return* The date when the provisioning template was created. *
*/ public java.util.Date getCreationDate() { return creationDate; } /** ** The date when the provisioning template was created. *
* * @param creationDate* The date when the provisioning template was created. *
*/ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** ** The date when the provisioning template was created. *
** Returns a reference to this object so that method calls can be chained * together. * * @param creationDate
* The date when the provisioning template was created. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeProvisioningTemplateResult withCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; return this; } /** ** The date when the provisioning template was last modified. *
* * @return* The date when the provisioning template was last modified. *
*/ public java.util.Date getLastModifiedDate() { return lastModifiedDate; } /** ** The date when the provisioning template was last modified. *
* * @param lastModifiedDate* The date when the provisioning template was last modified. *
*/ public void setLastModifiedDate(java.util.Date lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } /** ** The date when the provisioning template was last modified. *
** Returns a reference to this object so that method calls can be chained * together. * * @param lastModifiedDate
* The date when the provisioning template was last modified. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeProvisioningTemplateResult withLastModifiedDate(java.util.Date lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; return this; } /** ** The default fleet template version ID. *
* * @return* The default fleet template version ID. *
*/ public Integer getDefaultVersionId() { return defaultVersionId; } /** ** The default fleet template version ID. *
* * @param defaultVersionId* The default fleet template version ID. *
*/ public void setDefaultVersionId(Integer defaultVersionId) { this.defaultVersionId = defaultVersionId; } /** ** The default fleet template version ID. *
** Returns a reference to this object so that method calls can be chained * together. * * @param defaultVersionId
* The default fleet template version ID. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeProvisioningTemplateResult withDefaultVersionId(Integer defaultVersionId) { this.defaultVersionId = defaultVersionId; return this; } /** ** The JSON formatted contents of the provisioning template. *
*
* Constraints:
* Length: 0 - 10240
* Pattern: [\s\S]*
*
* @return
* The JSON formatted contents of the provisioning template. *
*/ public String getTemplateBody() { return templateBody; } /** ** The JSON formatted contents of the provisioning template. *
*
* Constraints:
* Length: 0 - 10240
* Pattern: [\s\S]*
*
* @param templateBody
* The JSON formatted contents of the provisioning template. *
*/ public void setTemplateBody(String templateBody) { this.templateBody = templateBody; } /** ** The JSON formatted contents of the provisioning template. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 0 - 10240
* Pattern: [\s\S]*
*
* @param templateBody
* The JSON formatted contents of the provisioning template. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeProvisioningTemplateResult withTemplateBody(String templateBody) { this.templateBody = templateBody; return this; } /** ** True if the provisioning template is enabled, otherwise false. *
* * @return* True if the provisioning template is enabled, otherwise false. *
*/ public Boolean isEnabled() { return enabled; } /** ** True if the provisioning template is enabled, otherwise false. *
* * @return* True if the provisioning template is enabled, otherwise false. *
*/ public Boolean getEnabled() { return enabled; } /** ** True if the provisioning template is enabled, otherwise false. *
* * @param enabled* True if the provisioning template is enabled, otherwise false. *
*/ public void setEnabled(Boolean enabled) { this.enabled = enabled; } /** ** True if the provisioning template is enabled, otherwise false. *
** Returns a reference to this object so that method calls can be chained * together. * * @param enabled
* True if the provisioning template is enabled, otherwise false. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeProvisioningTemplateResult withEnabled(Boolean enabled) { this.enabled = enabled; return this; } /** ** The ARN of the role associated with the provisioning template. This IoT * role grants permission to provision a device. *
*
* Constraints:
* Length: 20 - 2048
*
* @return
* The ARN of the role associated with the provisioning template. * This IoT role grants permission to provision a device. *
*/ public String getProvisioningRoleArn() { return provisioningRoleArn; } /** ** The ARN of the role associated with the provisioning template. This IoT * role grants permission to provision a device. *
*
* Constraints:
* Length: 20 - 2048
*
* @param provisioningRoleArn
* The ARN of the role associated with the provisioning template. * This IoT role grants permission to provision a device. *
*/ public void setProvisioningRoleArn(String provisioningRoleArn) { this.provisioningRoleArn = provisioningRoleArn; } /** ** The ARN of the role associated with the provisioning template. This IoT * role grants permission to provision a device. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 20 - 2048
*
* @param provisioningRoleArn
* The ARN of the role associated with the provisioning template. * This IoT role grants permission to provision a device. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeProvisioningTemplateResult withProvisioningRoleArn(String provisioningRoleArn) { this.provisioningRoleArn = provisioningRoleArn; return this; } /** ** Gets information about a pre-provisioned hook. *
* * @return* Gets information about a pre-provisioned hook. *
*/ public ProvisioningHook getPreProvisioningHook() { return preProvisioningHook; } /** ** Gets information about a pre-provisioned hook. *
* * @param preProvisioningHook* Gets information about a pre-provisioned hook. *
*/ public void setPreProvisioningHook(ProvisioningHook preProvisioningHook) { this.preProvisioningHook = preProvisioningHook; } /** ** Gets information about a pre-provisioned hook. *
** Returns a reference to this object so that method calls can be chained * together. * * @param preProvisioningHook
* Gets information about a pre-provisioned hook. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeProvisioningTemplateResult withPreProvisioningHook( ProvisioningHook preProvisioningHook) { this.preProvisioningHook = preProvisioningHook; return this; } /** *
* 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.
*
* Constraints:
* Allowed Values: FLEET_PROVISIONING, JITP
*
* @return
* 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.
*
* 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.
*
* Constraints:
* Allowed Values: FLEET_PROVISIONING, JITP
*
* @param 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: FLEET_PROVISIONING, JITP
*
* @param 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.
*
* 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.
*
* Constraints:
* Allowed Values: FLEET_PROVISIONING, JITP
*
* @param 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: FLEET_PROVISIONING, JITP
*
* @param 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.
*