code: public DescribeAgentVersionsResult withAgentVersions(AgentVersion... agentVersions) {
          if (this.agentVersions == null) {
              setAgentVersions(new com.amazonaws.internal.SdkInternalList<AgentVersion>(agentVersions.length));
          }
          for (AgentVersion ele : agentVersions) {
              this.agentVersions.add(ele);
          }
          return this;
      }
docs: <p>
  The agent versions for the specified stack or configuration manager. Note that this value is the complete version
  number, not the abbreviated number used by the console.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setAgentVersions(java.util.Collection)} or {@link #withAgentVersions(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param agentVersions
  The agent versions for the specified stack or configuration manager. Note that this value is the complete
  version number, not the abbreviated number used by the console.
  @return Returns a reference to this object so that method calls can be chained together.