public CreateCoreDefinitionVersionRequest withCores(Core... cores) {
        if (this.cores == null) {
            setCores(new java.util.ArrayList<Core>(cores.length));
        }
        for (Core ele : cores) {
            this.cores.add(ele);
        }
        return this;
    }
A list of cores in the core definition version.
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCores(java.util.Collection)} or {@link #withCores(java.util.Collection)} if you want to override the
existing values.
</p>

@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