code: public Source withSourceDetails(SourceDetail... sourceDetails) {
          if (this.sourceDetails == null) {
              setSourceDetails(new com.amazonaws.internal.SdkInternalList<SourceDetail>(sourceDetails.length));
          }
          for (SourceDetail ele : sourceDetails) {
              this.sourceDetails.add(ele);
          }
          return this;
      }
docs: <p>
  Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setSourceDetails(java.util.Collection)} or {@link #withSourceDetails(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param sourceDetails
  Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
  @return Returns a reference to this object so that method calls can be chained together.