public CreateCoreDefinitionVersionRequest withCores(java.util.Collection<Core> cores) {
        setCores(cores);
        return this;
    }
A list of cores in the core definition version.

@param cores
       A list of cores in the core definition version.
@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/CreateCoreDefinitionVersionRequest.java