public SourceProperties withCpus(CPU... cpus) {
        if (this.cpus == null) {
            setCpus(new java.util.ArrayList<CPU>(cpus.length));
        }
        for (CPU ele : cpus) {
            this.cpus.add(ele);
        }
        return this;
    }
<p>
An array of CPUs.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCpus(java.util.Collection)} or {@link #withCpus(java.util.Collection)} if you want to override the
existing values.
</p>

@param cpus
       An array of CPUs.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-drs/src/main/java/com/amazonaws/services/drs/model/SourceProperties.java