public UpdateRecordsRequest withRecordPatches(RecordPatch... recordPatches) {
        if (this.recordPatches == null) {
            setRecordPatches(new com.amazonaws.internal.SdkInternalList<RecordPatch>(recordPatches.length));
        }
        for (RecordPatch ele : recordPatches) {
            this.recordPatches.add(ele);
        }
        return this;
    }
A list of patch operations.
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRecordPatches(java.util.Collection)} or {@link #withRecordPatches(java.util.Collection)} if you want
to override the existing values.
</p>

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