public UpdateDocumentationPartResult withLocation(DocumentationPartLocation location) {
        setLocation(location);
        return this;
    }
<p>
The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity
type. All the valid location fields are not required. If not explicitly specified, a valid location field is
treated as a wildcard and associated documentation content may be inherited by matching entities, unless
overridden.
</p>

@param location
       The location of the API entity to which the documentation applies. Valid fields depend on the targeted API
       entity type. All the valid location fields are not required. If not explicitly specified, a valid location
       field is treated as a wildcard and associated documentation content may be inherited by matching entities,
       unless overridden.
@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/UpdateDocumentationPartResult.java