/** * <p/> * * @param agents * @return Returns a reference to this object so that method calls can be chained together. */ public AgentsAlreadyRunningAssessmentException withAgents(java.util.Collection<AgentAlreadyRunningAssessment> agents) { setAgents(agents); return this; }
/** * <p/> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAgents(java.util.Collection)} or {@link #withAgents(java.util.Collection)} if you want to override the * existing values. * </p> * * @param agents * @return Returns a reference to this object so that method calls can be chained together. */ public AgentsAlreadyRunningAssessmentException withAgents(AgentAlreadyRunningAssessment... agents) { if (this.agents == null) { setAgents(new java.util.ArrayList<AgentAlreadyRunningAssessment>(agents.length)); } for (AgentAlreadyRunningAssessment ele : agents) { this.agents.add(ele); } return this; }
/** * <p/> * * @param agents * @return Returns a reference to this object so that method calls can be chained together. */ public AgentsAlreadyRunningAssessmentException withAgents(java.util.Collection<AgentAlreadyRunningAssessment> agents) { setAgents(agents); return this; }
/** * <p/> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAgents(java.util.Collection)} or {@link #withAgents(java.util.Collection)} if you want to override the * existing values. * </p> * * @param agents * @return Returns a reference to this object so that method calls can be chained together. */ public AgentsAlreadyRunningAssessmentException withAgents(AgentAlreadyRunningAssessment... agents) { if (this.agents == null) { setAgents(new java.util.ArrayList<AgentAlreadyRunningAssessment>(agents.length)); } for (AgentAlreadyRunningAssessment ele : agents) { this.agents.add(ele); } return this; }