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

com.twilio.sdk.verbs.Sip Maven / Gradle / Ivy

There is a newer version: 7.0.0-rc-10
Show newest version
package com.twilio.sdk.verbs;

import java.util.ArrayList;

public class Sip extends Verb {


    /**
     * Instantiates a new Sip.
     */
    public Sip(final String uri) {
        super(V_SIP, uri);
        this.allowedVerbs = new ArrayList();
        this.allowedVerbs.add(Verb.V_URI);
    }

    /**
     * Instantiates a new Sip Noun with no URI.
     */
    public Sip() {
        this(null);
    }

    public void setUsername(String username) {
        this.set("username", username);
    }

    public void setPassword(String password) {
        this.set("password", password);
    }

    /**
     * Sets the url.
     *
     * @param url the waiting url
     */
    public void setUrl(String url){
       this.set("url", url);
    }

    /**
     * Sets the method.
     *
     * @param method the new method
     */
    public void setMethod(String method){
       this.set("method", method);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy