code: public TrustedAdvisorCheckResult withFlaggedResources(TrustedAdvisorResourceDetail... flaggedResources) {
          if (this.flaggedResources == null) {
              setFlaggedResources(new com.amazonaws.internal.SdkInternalList<TrustedAdvisorResourceDetail>(flaggedResources.length));
          }
          for (TrustedAdvisorResourceDetail ele : flaggedResources) {
              this.flaggedResources.add(ele);
          }
          return this;
      }
docs: <p>
  The details about each resource listed in the check result.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setFlaggedResources(java.util.Collection)} or {@link #withFlaggedResources(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param flaggedResources
  The details about each resource listed in the check result.
  @return Returns a reference to this object so that method calls can be chained together.