public DocumentationPartLocation withName(String name) {
        setName(name);
        return this;
    }
<p>
The name of the targeted API entity. It is a valid and required field for the API entity types of
<code>AUTHORIZER</code>, <code>MODEL</code>, <code>PATH_PARAMETER</code>, <code>QUERY_PARAMETER</code>,
<code>REQUEST_HEADER</code>, <code>REQUEST_BODY</code> and <code>RESPONSE_HEADER</code>. It is an invalid field
for any other entity type.
</p>

@param name
       The name of the targeted API entity. It is a valid and required field for the API entity types of
       <code>AUTHORIZER</code>, <code>MODEL</code>, <code>PATH_PARAMETER</code>, <code>QUERY_PARAMETER</code>,
       <code>REQUEST_HEADER</code>, <code>REQUEST_BODY</code> and <code>RESPONSE_HEADER</code>. It is an invalid
       field for any other entity type.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/model/DocumentationPartLocation.java