code: public PutRemediationConfigurationsResult withFailedBatches(FailedRemediationBatch... failedBatches) {
          if (this.failedBatches == null) {
              setFailedBatches(new com.amazonaws.internal.SdkInternalList<FailedRemediationBatch>(failedBatches.length));
          }
          for (FailedRemediationBatch ele : failedBatches) {
              this.failedBatches.add(ele);
          }
          return this;
      }
docs: <p>
  Returns a list of failed remediation batch objects.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setFailedBatches(java.util.Collection)} or {@link #withFailedBatches(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param failedBatches
  Returns a list of failed remediation batch objects.
  @return Returns a reference to this object so that method calls can be chained together.