public BackupRuleInput withCopyActions(CopyAction... copyActions) {
        if (this.copyActions == null) {
            setCopyActions(new java.util.ArrayList<CopyAction>(copyActions.length));
        }
        for (CopyAction ele : copyActions) {
            this.copyActions.add(ele);
        }
        return this;
    }
<p>
An array of <code>CopyAction</code> objects, which contains the details of the copy operation.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCopyActions(java.util.Collection)} or {@link #withCopyActions(java.util.Collection)} if you want to
override the existing values.
</p>

@param copyActions
       An array of <code>CopyAction</code> objects, which contains the details of the copy operation.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-backup/src/main/java/com/amazonaws/services/backup/model/BackupRuleInput.java