/** * Use this in place of valueOf. * * @param value * real value * @return AgentHealthCode corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static AgentHealthCode fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (AgentHealthCode enumEntry : AgentHealthCode.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * The detailed health state of the agent. * </p> * * @param agentHealthCode * The detailed health state of the agent. * @return Returns a reference to this object so that method calls can be chained together. * @see AgentHealthCode */ public AssessmentRunAgent withAgentHealthCode(AgentHealthCode agentHealthCode) { this.agentHealthCode = agentHealthCode.toString(); return this; }
/** * <p> * The detailed health state of the agent. Values can be set to <b>IDLE</b>, <b>RUNNING</b>, <b>SHUTDOWN</b>, * <b>UNHEALTHY</b>, <b>THROTTLED</b>, and <b>UNKNOWN</b>. * </p> * * @param agentHealthCodes * The detailed health state of the agent. Values can be set to <b>IDLE</b>, <b>RUNNING</b>, <b>SHUTDOWN</b>, * <b>UNHEALTHY</b>, <b>THROTTLED</b>, and <b>UNKNOWN</b>. * @return Returns a reference to this object so that method calls can be chained together. * @see AgentHealthCode */ public AgentFilter withAgentHealthCodes(AgentHealthCode... agentHealthCodes) { java.util.ArrayList<String> agentHealthCodesCopy = new java.util.ArrayList<String>(agentHealthCodes.length); for (AgentHealthCode value : agentHealthCodes) { agentHealthCodesCopy.add(value.toString()); } if (getAgentHealthCodes() == null) { setAgentHealthCodes(agentHealthCodesCopy); } else { getAgentHealthCodes().addAll(agentHealthCodesCopy); } return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return AgentHealthCode corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static AgentHealthCode fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (AgentHealthCode enumEntry : AgentHealthCode.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * The detailed health state of the agent. * </p> * * @param agentHealthCode * The detailed health state of the agent. * @return Returns a reference to this object so that method calls can be chained together. * @see AgentHealthCode */ public AssessmentRunAgent withAgentHealthCode(AgentHealthCode agentHealthCode) { this.agentHealthCode = agentHealthCode.toString(); return this; }
/** * <p> * The detailed health state of the agent. Values can be set to <b>IDLE</b>, <b>RUNNING</b>, <b>SHUTDOWN</b>, * <b>UNHEALTHY</b>, <b>THROTTLED</b>, and <b>UNKNOWN</b>. * </p> * * @param agentHealthCodes * The detailed health state of the agent. Values can be set to <b>IDLE</b>, <b>RUNNING</b>, <b>SHUTDOWN</b>, * <b>UNHEALTHY</b>, <b>THROTTLED</b>, and <b>UNKNOWN</b>. * @return Returns a reference to this object so that method calls can be chained together. * @see AgentHealthCode */ public AgentFilter withAgentHealthCodes(AgentHealthCode... agentHealthCodes) { java.util.ArrayList<String> agentHealthCodesCopy = new java.util.ArrayList<String>(agentHealthCodes.length); for (AgentHealthCode value : agentHealthCodes) { agentHealthCodesCopy.add(value.toString()); } if (getAgentHealthCodes() == null) { setAgentHealthCodes(agentHealthCodesCopy); } else { getAgentHealthCodes().addAll(agentHealthCodesCopy); } return this; }