public CreateResourceDefinitionVersionRequest withResources(java.util.Collection<Resource> resources) {
        setResources(resources);
        return this;
    }
A list of resources.

@param resources
       A list of resources.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/CreateResourceDefinitionVersionRequest.java