public DocumentationPartLocation withType(String type) {
        setType(type);
        return this;
    }
<p>
The type of API entity to which the documentation content applies. Valid values are <code>API</code>,
<code>AUTHORIZER</code>, <code>MODEL</code>, <code>RESOURCE</code>, <code>METHOD</code>,
<code>PATH_PARAMETER</code>, <code>QUERY_PARAMETER</code>, <code>REQUEST_HEADER</code>, <code>REQUEST_BODY</code>, <code>RESPONSE</code>, <code>RESPONSE_HEADER</code>, and <code>RESPONSE_BODY</code>. Content inheritance does
not apply to any entity of the <code>API</code>, <code>AUTHORIZER</code>, <code>METHOD</code>, <code>MODEL</code>, <code>REQUEST_BODY</code>, or <code>RESOURCE</code> type.
</p>

@param type
       The type of API entity to which the documentation content applies. Valid values are <code>API</code>,
       <code>AUTHORIZER</code>, <code>MODEL</code>, <code>RESOURCE</code>, <code>METHOD</code>,
       <code>PATH_PARAMETER</code>, <code>QUERY_PARAMETER</code>, <code>REQUEST_HEADER</code>,
       <code>REQUEST_BODY</code>, <code>RESPONSE</code>, <code>RESPONSE_HEADER</code>, and
       <code>RESPONSE_BODY</code>. Content inheritance does not apply to any entity of the <code>API</code>,
       <code>AUTHORIZER</code>, <code>METHOD</code>, <code>MODEL</code>, <code>REQUEST_BODY</code>, or
       <code>RESOURCE</code> type.
@return Returns a reference to this object so that method calls can be chained together.
@see DocumentationPartType
aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/model/DocumentationPartLocation.java