/** * Use this in place of valueOf. * * @param value * real value * @return AgentHealth corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static AgentHealth fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (AgentHealth enumEntry : AgentHealth.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * The current health state of the agent. * </p> * * @param agentHealth * The current health state of the agent. * @return Returns a reference to this object so that method calls can be chained together. * @see AgentHealth */ public AssessmentRunAgent withAgentHealth(AgentHealth agentHealth) { this.agentHealth = agentHealth.toString(); return this; }
/** * <p> * The health status of the Amazon Inspector Agent. * </p> * * @param agentHealth * The health status of the Amazon Inspector Agent. * @return Returns a reference to this object so that method calls can be chained together. * @see AgentHealth */ public AgentPreview withAgentHealth(AgentHealth agentHealth) { this.agentHealth = agentHealth.toString(); return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return AgentHealth corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static AgentHealth fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (AgentHealth enumEntry : AgentHealth.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * The current health state of the agent. Values can be set to <b>HEALTHY</b> or <b>UNHEALTHY</b>. * </p> * * @param agentHealths * The current health state of the agent. Values can be set to <b>HEALTHY</b> or <b>UNHEALTHY</b>. * @return Returns a reference to this object so that method calls can be chained together. * @see AgentHealth */ public AgentFilter withAgentHealths(AgentHealth... agentHealths) { java.util.ArrayList<String> agentHealthsCopy = new java.util.ArrayList<String>(agentHealths.length); for (AgentHealth value : agentHealths) { agentHealthsCopy.add(value.toString()); } if (getAgentHealths() == null) { setAgentHealths(agentHealthsCopy); } else { getAgentHealths().addAll(agentHealthsCopy); } return this; }
/** * <p> * The health status of the Amazon Inspector Agent. * </p> * * @param agentHealth * The health status of the Amazon Inspector Agent. * @return Returns a reference to this object so that method calls can be chained together. * @see AgentHealth */ public AgentPreview withAgentHealth(AgentHealth agentHealth) { this.agentHealth = agentHealth.toString(); return this; }
/** * <p> * The current health state of the agent. * </p> * * @param agentHealth * The current health state of the agent. * @return Returns a reference to this object so that method calls can be chained together. * @see AgentHealth */ public AssessmentRunAgent withAgentHealth(AgentHealth agentHealth) { this.agentHealth = agentHealth.toString(); return this; }
/** * <p> * The current health state of the agent. Values can be set to <b>HEALTHY</b> or <b>UNHEALTHY</b>. * </p> * * @param agentHealths * The current health state of the agent. Values can be set to <b>HEALTHY</b> or <b>UNHEALTHY</b>. * @return Returns a reference to this object so that method calls can be chained together. * @see AgentHealth */ public AgentFilter withAgentHealths(AgentHealth... agentHealths) { java.util.ArrayList<String> agentHealthsCopy = new java.util.ArrayList<String>(agentHealths.length); for (AgentHealth value : agentHealths) { agentHealthsCopy.add(value.toString()); } if (getAgentHealths() == null) { setAgentHealths(agentHealthsCopy); } else { getAgentHealths().addAll(agentHealthsCopy); } return this; }