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

com.twilio.twiml.voice.Identity 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 Identity extends TwiML {
    private final String clientIdentity;

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

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

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

    /**
     * Identity of the client to dial
     *
     * @return Identity of the client to dial
     */
    public String getClientIdentity() {
        return clientIdentity;
    }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy