com.bandwidth.voice.models.Track Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bandwidth-sdk Show documentation
Show all versions of bandwidth-sdk Show documentation
The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs
/*
* 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 Track type.
*/
public class Track {
@JsonInclude(JsonInclude.Include.NON_NULL)
private String detectedLanguage;
@JsonInclude(JsonInclude.Include.NON_NULL)
private String track;
@JsonInclude(JsonInclude.Include.NON_NULL)
private String transcript;
@JsonInclude(JsonInclude.Include.NON_NULL)
private Double confidence;
/**
* Default constructor.
*/
public Track() {
}
/**
* Initialization constructor.
* @param detectedLanguage String value for detectedLanguag3.
* @param track String value for track.
* @param transcript String value for transcript.
* @param confidence Double value for confidence.
*/
public Track(
String detectedLanguage,
String track,
String transcript,
Double confidence) {
this.detectedLanguage = detectedLanguage;
this.track = track;
this.transcript = transcript;
this.confidence = confidence;
}
/**
* Getter for DetectedLanguage.
* @return Returns the String
*/
@JsonGetter("detectedLanguage")
public String getDetectedLanguage() {
return detectedLanguage;
}
/**
* Setter for DetectedLanguage.
* @param detectedLanguage Value for String
*/
@JsonSetter("detectedLanguage")
public void setDetectedLanguage(String detectedLanguage) {
this.detectedLanguage = detectedLanguage;
}
/**
* Getter for Track.
* @return Returns the String
*/
@JsonGetter("track")
public String getTrack() {
return track;
}
/**
* Setter for Track.
* @param track Value for String
*/
@JsonSetter("track")
public void setTrack(String track) {
this.track = track;
}
/**
* Getter for transcript.
* @return Returns the String
*/
@JsonGetter("transcript")
public String getTranscript() {
return transcript;
}
/**
* Setter for transcript.
* @param transcript Value for String
*/
@JsonSetter("transcript")
public void setTranscript(String transcript) {
this.transcript = transcript;
}
/**
* Getter for OrigTo.
* @return Returns the String
*/
@JsonGetter("confidence")
public Double getConfidence() {
return confidence;
}
/**
* Setter for OrigTo.
* @param confidence Value for String
*/
@JsonSetter("confidence")
public void setConfidence(Double confidence) {
this.confidence = confidence;
}
/**
* Converts this Track into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "Track [" + "detectedLanguage=" + detectedLanguage + ", track=" + track + ", transcript=" + transcript
+ ", confidence=" + confidence + "]";
}
/**
* Builds a new {@link Track.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link Track.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.detectedLanguage(getDetectedLanguage())
.track(getTrack())
.transcript(getTranscript())
.confidence(getConfidence());
return builder;
}
/**
* Class to build instances of {@link Track}.
*/
public static class Builder {
private String detectedLanguage;
private String track;
private String transcript;
private Double confidence;
/**
* Setter for detectedLanguage.
* @param detectedLanguage String value for detectedLanguage.
* @return Builder
*/
public Builder detectedLanguage(String detectedLanguage) {
this.detectedLanguage = detectedLanguage;
return this;
}
/**
* Setter for track.
* @param track String value for track.
* @return Builder
*/
public Builder track(String track) {
this.track = track;
return this;
}
/**
* Setter for transcript.
* @param transcript String value for transcript.
* @return Builder
*/
public Builder transcript(String transcript) {
this.transcript = transcript;
return this;
}
/**
* Setter for confidence.
* @param confidence String value for confidence.
* @return Builder
*/
public Builder confidence(Double confidence) {
this.confidence = confidence;
return this;
}
/**
* Builds a new {@link Track} object using the set fields.
* @return {@link Track}
*/
public Track build() {
return new Track(detectedLanguage, track, transcript, confidence);
}
}
}