public ProvisioningArtifactDetail withType(ProvisioningArtifactType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of provisioning artifact.
</p>
<ul>
<li>
<p>
<code>CLOUD_FORMATION_TEMPLATE</code> - CloudFormation template
</p>
</li>
<li>
<p>
<code>TERRAFORM_OPEN_SOURCE</code> - Terraform Open Source configuration file
</p>
</li>
<li>
<p>
<code>TERRAFORM_CLOUD</code> - Terraform Cloud configuration file
</p>
</li>
<li>
<p>
<code>EXTERNAL</code> - External configuration file
</p>
</li>
</ul>

@param type
       The type of provisioning artifact.</p>
       <ul>
       <li>
       <p>
       <code>CLOUD_FORMATION_TEMPLATE</code> - CloudFormation template
       </p>
       </li>
       <li>
       <p>
       <code>TERRAFORM_OPEN_SOURCE</code> - Terraform Open Source configuration file
       </p>
       </li>
       <li>
       <p>
       <code>TERRAFORM_CLOUD</code> - Terraform Cloud configuration file
       </p>
       </li>
       <li>
       <p>
       <code>EXTERNAL</code> - External configuration file
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see ProvisioningArtifactType
aws-java-sdk-servicecatalog/src/main/java/com/amazonaws/services/servicecatalog/model/ProvisioningArtifactDetail.java