com.twilio.twiml.MessagingResponse Maven / Gradle / Ivy
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
package com.twilio.twiml;
import com.twilio.twiml.messaging.Message;
import com.twilio.twiml.messaging.Redirect;
/**
* TwiML wrapper for {@code }
*/
public class MessagingResponse extends TwiML {
/**
* For XML Serialization/Deserialization
*/
private MessagingResponse() {
this(new Builder());
}
/**
* Create a new {@code } element
*/
private MessagingResponse(Builder b) {
super("Response", b);
}
/**
* Create a new {@code } element
*/
public static class Builder extends TwiML.Builder {
/**
* Add a child {@code } element
*/
public Builder message(Message message) {
this.children.add(message);
return this;
}
/**
* Add a child {@code } element
*/
public Builder redirect(Redirect redirect) {
this.children.add(redirect);
return this;
}
/**
* Create and return resulting {@code } element
*/
public MessagingResponse build() {
return new MessagingResponse(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy