/** * <p> * A list of users. * </p> * * @param users * A list of users. * @return Returns a reference to this object so that method calls can be chained together. */ public ListUsersResult withUsers(java.util.Collection<User> users) { setUsers(users); return this; }
/** * <p> * A list of users. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setUsers(java.util.Collection)} or {@link #withUsers(java.util.Collection)} if you want to override the * existing values. * </p> * * @param users * A list of users. * @return Returns a reference to this object so that method calls can be chained together. */ public ListUsersResult withUsers(User... users) { if (this.users == null) { setUsers(new com.amazonaws.internal.SdkInternalList<User>(users.length)); } for (User ele : users) { this.users.add(ele); } return this; }
/** * <p> * A list of users. * </p> * * @param users * A list of users. * @return Returns a reference to this object so that method calls can be chained together. */ public ListUsersResult withUsers(java.util.Collection<User> users) { setUsers(users); return this; }
/** * <p> * A list of users. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setUsers(java.util.Collection)} or {@link #withUsers(java.util.Collection)} if you want to override the * existing values. * </p> * * @param users * A list of users. * @return Returns a reference to this object so that method calls can be chained together. */ public ListUsersResult withUsers(User... users) { if (this.users == null) { setUsers(new com.amazonaws.internal.SdkInternalList<User>(users.length)); } for (User ele : users) { this.users.add(ele); } return this; }