/** * Constructs a new ChangeBatch object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param changes * Information about the changes to make to the record sets. */ public ChangeBatch(java.util.List<Change> changes) { setChanges(changes); }
/** * <p> * Information about the changes to make to the record sets. * </p> * * @param changes * Information about the changes to make to the record sets. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeBatch withChanges(java.util.Collection<Change> changes) { setChanges(changes); return this; }
/** * <p> * Information about the changes to make to the record sets. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setChanges(java.util.Collection)} or {@link #withChanges(java.util.Collection)} if you want to override * the existing values. * </p> * * @param changes * Information about the changes to make to the record sets. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeBatch withChanges(Change... changes) { if (this.changes == null) { setChanges(new com.amazonaws.internal.SdkInternalList<Change>(changes.length)); } for (Change ele : changes) { this.changes.add(ele); } return this; }