com.twilio.twiml.messaging.Body Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twilio Show documentation
Show all versions of twilio Show documentation
Twilio Java Helper Library
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
package com.twilio.twiml.messaging;
import com.twilio.twiml.TwiML;
/**
* TwiML wrapper for {@code }
*/
public class Body extends TwiML {
private final String message;
/**
* For XML Serialization/Deserialization
*/
private Body() {
this(new Builder((String) null));
}
/**
* Create a new {@code } element
*/
private Body(Builder b) {
super("Body", b);
this.message = b.message;
}
/**
* The body of the TwiML element
*
* @return Element body as a string if present else null
*/
protected String getElementBody() {
return this.getMessage() == null ? null : this.getMessage();
}
/**
* Message Body
*
* @return Message Body
*/
public String getMessage() {
return message;
}
/**
* Create a new {@code } element
*/
public static class Builder extends TwiML.Builder {
private String message;
/**
* Create a {@code } with message
*/
public Builder(String message) {
this.message = message;
}
/**
* Create and return resulting {@code } element
*/
public Body build() {
return new Body(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy