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

com.bandwidth.voice.models.Transcription 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;

/**
 * This is a model class for Transcription type.
 */
public class Transcription {
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String id;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String url;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String status;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String completedTime;

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

    /**
     * Initialization constructor.
     * @param  id  String value for id.
     * @param  url  String value for url.
     * @param  status  String value for status.
     * @param  completedTime  String value for completedTime.
     */
    public Transcription(
            String id,
            String url,
            String status,
            String completedTime) {
        this.id = id;
        this.url = url;
        this.status = status;
        this.completedTime = completedTime;
    }

    /**
     * Getter for Id.
     * @return Returns the String
     */
    @JsonGetter("id")
    public String getId() {
        return id;
    }

    /**
     * Setter for Id.
     * @param id Value for String
     */
    @JsonSetter("id")
    public void setId(String id) {
        this.id = id;
    }

    /**
     * Getter for Url.
     * @return Returns the String
     */
    @JsonGetter("url")
    public String getUrl() {
        return url;
    }

    /**
     * Setter for Url.
     * @param url Value for String
     */
    @JsonSetter("url")
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * Getter for Status.
     * @return Returns the String
     */
    @JsonGetter("status")
    public String getStatus() {
        return status;
    }

    /**
     * Setter for Status.
     * @param status Value for String
     */
    @JsonSetter("status")
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * Getter for CompletedTime.
     * @return Returns the String
     */
    @JsonGetter("completedTime")
    public String getCompletedTime() {
        return completedTime;
    }

    /**
     * Setter for CompletedTime.
     * @param completedTime Value for String
     */
    @JsonSetter("completedTime")
    public void setCompletedTime(String completedTime) {
        this.completedTime = completedTime;
    }

    /**
     * Converts this Transcription into string format.
     * @return String representation of this class
     */
    @Override
    public String toString() {
        return "Transcription [" + "id=" + id + ", url=" + url + ", status=" + status
                + ", completedTime=" + completedTime + "]";
    }

    /**
     * Builds a new {@link Transcription.Builder} object.
     * Creates the instance with the state of the current model.
     * @return a new {@link Transcription.Builder} object
     */
    public Builder toBuilder() {
        Builder builder = new Builder()
                .id(getId())
                .url(getUrl())
                .status(getStatus())
                .completedTime(getCompletedTime());
        return builder;
    }

    /**
     * Class to build instances of {@link Transcription}.
     */
    public static class Builder {
        private String id;
        private String url;
        private String status;
        private String completedTime;



        /**
         * Setter for id.
         * @param  id  String value for id.
         * @return Builder
         */
        public Builder id(String id) {
            this.id = id;
            return this;
        }

        /**
         * Setter for url.
         * @param  url  String value for url.
         * @return Builder
         */
        public Builder url(String url) {
            this.url = url;
            return this;
        }

        /**
         * Setter for status.
         * @param  status  String value for status.
         * @return Builder
         */
        public Builder status(String status) {
            this.status = status;
            return this;
        }

        /**
         * Setter for completedTime.
         * @param  completedTime  String value for completedTime.
         * @return Builder
         */
        public Builder completedTime(String completedTime) {
            this.completedTime = completedTime;
            return this;
        }

        /**
         * Builds a new {@link Transcription} object using the set fields.
         * @return {@link Transcription}
         */
        public Transcription build() {
            return new Transcription(id, url, status, completedTime);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy