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

com.twilio.twiml.voice.Stop Maven / Gradle / Ivy

There is a newer version: 10.1.5
Show newest version
/**
 * This code was generated by
 * \ / _    _  _|   _  _
 *  | (_)\/(_)(_|\/| |(/_  v1.0.0
 *       /       /
 */

package com.twilio.twiml.voice;

import com.twilio.twiml.TwiML;

/**
 * TwiML wrapper for {@code }
 */
public class Stop extends TwiML {
    /**
     * For XML Serialization/Deserialization
     */
    private Stop() {
        this(new Builder());
    }

    /**
     * Create a new {@code } element
     */
    private Stop(Builder b) {
        super("Stop", b);
    }

    /**
     * Create a new {@code } element
     */
    public static class Builder extends TwiML.Builder {
        /**
         * Add a child {@code } element
         */
        public Builder stream(Stream stream) {
            this.children.add(stream);
            return this;
        }

        /**
         * Add a child {@code } element
         */
        public Builder siprec(Siprec siprec) {
            this.children.add(siprec);
            return this;
        }

        /**
         * Create and return resulting {@code } element
         */
        public Stop build() {
            return new Stop(this);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy