com.plivo.api.xml.Stream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plivo-java Show documentation
Show all versions of plivo-java Show documentation
A Java SDK to make voice calls & send SMS using Plivo and to generate Plivo XML
package com.plivo.api.xml;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlValue;
@XmlRootElement(name = "Stream")
public class Stream extends PlivoXml implements ResponseNestable {
@XmlValue
private String content;
@XmlAttribute
private Boolean bidirectional;
@XmlAttribute
private String audioTrack;
@XmlAttribute
private Integer streamTimeout;
@XmlAttribute
private String statusCallbackUrl;
@XmlAttribute
private String statusCallbackMethod;
@XmlAttribute
private String contentType;
@XmlAttribute
private String extraHeaders;
@XmlAttribute
private Boolean keepCallAlive;
private Stream() {
}
public Stream(String content) {
this.content = content;
}
public Boolean bidirectional() {
return this.bidirectional;
}
public String audioTrack() {
return this.audioTrack;
}
public Integer streamTimeout() {
return this.streamTimeout;
}
public String statusCallbackUrl() {
return this.statusCallbackUrl;
}
public String statusCallbackMethod() {
return this.statusCallbackMethod;
}
public String extraHeaders() {
return this.extraHeaders;
}
public String contentType() {
return this.contentType;
}
public Boolean keepCallAlive() {
return this.keepCallAlive;
}
public Stream bidirectional(final Boolean bidirectional) {
this.bidirectional = bidirectional;
return this;
}
public Stream audioTrack(final String audioTrack) {
this.audioTrack = audioTrack;
return this;
}
public Stream streamTimeout(final Integer streamTimeout) {
this.streamTimeout = streamTimeout;
return this;
}
public Stream statusCallbackUrl(final String statusCallbackUrl) {
this.statusCallbackUrl = statusCallbackUrl;
return this;
}
public Stream statusCallbackMethod(final String statusCallbackMethod) {
this.statusCallbackMethod = statusCallbackMethod;
return this;
}
public Stream contentType(final String contentType) {
this.contentType = contentType;
return this;
}
public Stream extraHeaders(final String extraHeaders) {
this.extraHeaders = extraHeaders;
return this;
}
public Stream keepCallAlive(final Boolean keepCallAlive) {
this.keepCallAlive = keepCallAlive;
return this;
}
}