code: public CreateAssociationBatchResult withFailed(FailedCreateAssociation... failed) {
          if (this.failed == null) {
              setFailed(new com.amazonaws.internal.SdkInternalList<FailedCreateAssociation>(failed.length));
          }
          for (FailedCreateAssociation ele : failed) {
              this.failed.add(ele);
          }
          return this;
      }
docs: <p>
  Information about the associations that failed.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setFailed(java.util.Collection)} or {@link #withFailed(java.util.Collection)} if you want to override the
  existing values.
  </p>
  
  @param failed
  Information about the associations that failed.
  @return Returns a reference to this object so that method calls can be chained together.