All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bandwidth.voice.models.TranscriptionResponse Maven / Gradle / Ivy

Go to download

The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs

There is a newer version: 12.0.0
Show newest version
/*
 * BandwidthLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */

package com.bandwidth.voice.models;

import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
import java.util.List;

/**
 * This is a model class for TranscriptionResponse type.
 */
public class TranscriptionResponse {
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List transcripts;

    /**
     * Default constructor.
     */
    public TranscriptionResponse() {
    }

    /**
     * Initialization constructor.
     * @param  transcripts  List of Transcript value for transcripts.
     */
    public TranscriptionResponse(
            List transcripts) {
        this.transcripts = transcripts;
    }

    /**
     * Getter for Transcripts.
     * @return Returns the List of Transcript
     */
    @JsonGetter("transcripts")
    public List getTranscripts() {
        return transcripts;
    }

    /**
     * Setter for Transcripts.
     * @param transcripts Value for List of Transcript
     */
    @JsonSetter("transcripts")
    public void setTranscripts(List transcripts) {
        this.transcripts = transcripts;
    }

    /**
     * Converts this TranscriptionResponse into string format.
     * @return String representation of this class
     */
    @Override
    public String toString() {
        return "TranscriptionResponse [" + "transcripts=" + transcripts + "]";
    }

    /**
     * Builds a new {@link TranscriptionResponse.Builder} object.
     * Creates the instance with the state of the current model.
     * @return a new {@link TranscriptionResponse.Builder} object
     */
    public Builder toBuilder() {
        Builder builder = new Builder()
                .transcripts(getTranscripts());
        return builder;
    }

    /**
     * Class to build instances of {@link TranscriptionResponse}.
     */
    public static class Builder {
        private List transcripts;



        /**
         * Setter for transcripts.
         * @param  transcripts  List of Transcript value for transcripts.
         * @return Builder
         */
        public Builder transcripts(List transcripts) {
            this.transcripts = transcripts;
            return this;
        }

        /**
         * Builds a new {@link TranscriptionResponse} object using the set fields.
         * @return {@link TranscriptionResponse}
         */
        public TranscriptionResponse build() {
            return new TranscriptionResponse(transcripts);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy