/** * The list of all ActiveMQ usernames for the specified broker. * * @param users * The list of all ActiveMQ usernames for the specified broker. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBrokerResult withUsers(java.util.Collection<UserSummary> users) { setUsers(users); return this; }
/** * The list of all ActiveMQ usernames for the specified broker. * <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 * The list of all ActiveMQ usernames for the specified broker. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBrokerResult withUsers(UserSummary... users) { if (this.users == null) { setUsers(new java.util.ArrayList<UserSummary>(users.length)); } for (UserSummary ele : users) { this.users.add(ele); } return this; }
describeBrokerResult.setUsers(new ListUnmarshaller<UserSummary>(UserSummaryJsonUnmarshaller.getInstance()).unmarshall(context));
/** * The list of all ActiveMQ usernames for the specified broker. * * @param users * The list of all ActiveMQ usernames for the specified broker. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBrokerResult withUsers(java.util.Collection<UserSummary> users) { setUsers(users); return this; }
/** * The list of all ActiveMQ usernames for the specified broker. * <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 * The list of all ActiveMQ usernames for the specified broker. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBrokerResult withUsers(UserSummary... users) { if (this.users == null) { setUsers(new java.util.ArrayList<UserSummary>(users.length)); } for (UserSummary ele : users) { this.users.add(ele); } return this; }
describeBrokerResult.setUsers(new ListUnmarshaller<UserSummary>(UserSummaryJsonUnmarshaller.getInstance()).unmarshall(context));