001package com.plivo.api.xml;
002
003import javax.xml.bind.annotation.XmlAttribute;
004import javax.xml.bind.annotation.XmlRootElement;
005import javax.xml.bind.annotation.XmlValue;
006
007@XmlRootElement(name = "User")
008public class User extends PlivoXml implements DialNestable {
009
010  @XmlAttribute
011  private String sendDigits;
012
013  @XmlAttribute
014  private Boolean sendOnPreanswer;
015
016  @XmlAttribute
017  private String sipHeaders;
018
019  @XmlValue
020  private String content;
021
022  public User(String content) {
023    this.content = content;
024  }
025
026  private User() {
027  }
028
029  public User content(String content) {
030    this.content = content;
031    return this;
032  }
033
034  public String sendDigits() {
035    return this.sendDigits;
036  }
037
038  public Boolean sendOnPreanswer() {
039    return this.sendOnPreanswer;
040  }
041
042  public String sipHeaders() {
043    return this.sipHeaders;
044  }
045
046  public String content() {
047    return this.content;
048  }
049
050  public User sendDigits(final String sendDigits) {
051    this.sendDigits = sendDigits;
052    return this;
053  }
054
055  public User sendOnPreanswer(final Boolean sendOnPreanswer) {
056    this.sendOnPreanswer = sendOnPreanswer;
057    return this;
058  }
059
060  public User sipHeaders(final String sipHeaders) {
061    this.sipHeaders = sipHeaders;
062    return this;
063  }
064}