/** * <p> * The format of the input media file. * </p> * * @param mediaFormat * The format of the input media file. * @return Returns a reference to this object so that method calls can be chained together. * @see MediaFormat */ public TranscriptionJob withMediaFormat(MediaFormat mediaFormat) { this.mediaFormat = mediaFormat.toString(); return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return MediaFormat corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static MediaFormat fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (MediaFormat enumEntry : MediaFormat.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * The format of the input media file. * </p> * * @param mediaFormat * The format of the input media file. * @return Returns a reference to this object so that method calls can be chained together. * @see MediaFormat */ public StartTranscriptionJobRequest withMediaFormat(MediaFormat mediaFormat) { this.mediaFormat = mediaFormat.toString(); return this; }
/** * <p> * The format of the input media file. * </p> * <p> * <b>Constraints:</b><br/> * <b>Allowed Values: </b>mp3, mp4, wav, flac * * @param mediaFormat <p> * The format of the input media file. * </p> * @see MediaFormat */ public void setMediaFormat(MediaFormat mediaFormat) { this.mediaFormat = mediaFormat.toString(); }
/** * <p> * The format of the input media file. * </p> * <p> * <b>Constraints:</b><br/> * <b>Allowed Values: </b>mp3, mp4, wav, flac * * @param mediaFormat <p> * The format of the input media file. * </p> * @see MediaFormat */ public void setMediaFormat(MediaFormat mediaFormat) { this.mediaFormat = mediaFormat.toString(); }
/** * <p> * The format of the input media file. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * <p> * <b>Constraints:</b><br/> * <b>Allowed Values: </b>mp3, mp4, wav, flac * * @param mediaFormat <p> * The format of the input media file. * </p> * @return A reference to this updated object so that method calls can be * chained together. * @see MediaFormat */ public TranscriptionJob withMediaFormat(MediaFormat mediaFormat) { this.mediaFormat = mediaFormat.toString(); return this; }
/** * <p> * The format of the input media file. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * <p> * <b>Constraints:</b><br/> * <b>Allowed Values: </b>mp3, mp4, wav, flac * * @param mediaFormat <p> * The format of the input media file. * </p> * @return A reference to this updated object so that method calls can be * chained together. * @see MediaFormat */ public StartTranscriptionJobRequest withMediaFormat(MediaFormat mediaFormat) { this.mediaFormat = mediaFormat.toString(); return this; }