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

com.plivo.api.xml.Stream Maven / Gradle / Ivy

Go to download

A Java SDK to make voice calls & send SMS using Plivo and to generate Plivo XML

There is a newer version: 5.44.3
Show newest version
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;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy