code: 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;
      }
docs: <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