code: public AgentFilter withAgentHealthCodes(String... agentHealthCodes) {
          if (this.agentHealthCodes == null) {
              setAgentHealthCodes(new java.util.ArrayList<String>(agentHealthCodes.length));
          }
          for (String ele : agentHealthCodes) {
              this.agentHealthCodes.add(ele);
          }
          return this;
      }
docs: <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>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setAgentHealthCodes(java.util.Collection)} or {@link #withAgentHealthCodes(java.util.Collection)} if you
  want to override the existing values.
  </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