public SearchEntitiesRequest withEntityTypes(java.util.Collection<String> entityTypes) {
        setEntityTypes(entityTypes);
        return this;
    }
<p>
The entity types for which to search.
</p>

@param entityTypes
       The entity types for which to search.
@return Returns a reference to this object so that method calls can be chained together.
@see EntityType
aws-java-sdk-iotthingsgraph/src/main/java/com/amazonaws/services/iotthingsgraph/model/SearchEntitiesRequest.java