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

com.bandwidth.voice.models.TranscriptionMetadata 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 TranscriptionMetadata type.
 */
public class TranscriptionMetadata {
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String id;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String status;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String completedTime;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String url;

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

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

    /**
     * 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 Status.
     * The current status of the transcription. Current values are 'none', 'processing',
     * 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional
     * states may be added in the future, so your application must be tolerant of unknown values.
     * @return Returns the String
     */
    @JsonGetter("status")
    public String getStatus() {
        return status;
    }

    /**
     * Setter for Status.
     * The current status of the transcription. Current values are 'none', 'processing',
     * 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional
     * states may be added in the future, so your application must be tolerant of unknown values.
     * @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;
    }

    /**
     * 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;
    }

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

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

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



        /**
         * Setter for id.
         * @param  id  String value for id.
         * @return Builder
         */
        public Builder id(String id) {
            this.id = id;
            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;
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy