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

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

/**
 * This code was generated by
 * \ / _    _  _|   _  _
 *  | (_)\/(_)(_|\/| |(/_  v1.0.0
 *       /       /
 */

package com.twilio.twiml.voice;

import com.twilio.twiml.TwiML;

/**
 * TwiML wrapper for {@code }
 */
public class Sim extends TwiML {
    private final String simSid;

    /**
     * For XML Serialization/Deserialization
     */
    private Sim() {
        this(new Builder((String) null));
    }

    /**
     * Create a new {@code } element
     */
    private Sim(Builder b) {
        super("Sim", b);
        this.simSid = b.simSid;
    }

    /**
     * The body of the TwiML element
     * 
     * @return Element body as a string if present else null
     */
    protected String getElementBody() {
        return this.getSimSid() == null ? null : this.getSimSid();
    }

    /**
     * SIM SID
     * 
     * @return SIM SID
     */
    public String getSimSid() {
        return simSid;
    }

    /**
     * Create a new {@code } element
     */
    public static class Builder extends TwiML.Builder {
        private String simSid;

        /**
         * Create a {@code } with simSid
         */
        public Builder(String simSid) {
            this.simSid = simSid;
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy