code: public void setCaptionFormats(java.util.Collection<CaptionFormat> captionFormats) {
          if (captionFormats == null) {
              this.captionFormats = null;
              return;
          }
  
          this.captionFormats = new com.amazonaws.internal.SdkInternalList<CaptionFormat>(captionFormats);
      }
docs: <p>
  The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an
  error.
  </p>
  
  @param captionFormats
  The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder
  returns an error.