public PublishTypeRequest withType(ThirdPartyType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of the extension.
</p>
<p>
Conditional: You must specify <code>Arn</code>, or <code>TypeName</code> and <code>Type</code>.
</p>

@param type
       The type of the extension.</p>
       <p>
       Conditional: You must specify <code>Arn</code>, or <code>TypeName</code> and <code>Type</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see ThirdPartyType
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/model/PublishTypeRequest.java