Class ServiceCreator


  • public class ServiceCreator
    extends Creator<Service>
    PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
    • Constructor Detail

      • ServiceCreator

        public ServiceCreator()
    • Method Detail

      • setFriendlyName

        public ServiceCreator setFriendlyName​(String friendlyName)
        The friendly_name.
        Parameters:
        friendlyName - The friendly_name
        Returns:
        this
      • setWebhookUrl

        public ServiceCreator setWebhookUrl​(URI webhookUrl)
        The webhook_url.
        Parameters:
        webhookUrl - The webhook_url
        Returns:
        this
      • setWebhookUrl

        public ServiceCreator setWebhookUrl​(String webhookUrl)
        The webhook_url.
        Parameters:
        webhookUrl - The webhook_url
        Returns:
        this
      • setReachabilityWebhooksEnabled

        public ServiceCreator setReachabilityWebhooksEnabled​(Boolean reachabilityWebhooksEnabled)
        The reachability_webhooks_enabled.
        Parameters:
        reachabilityWebhooksEnabled - The reachability_webhooks_enabled
        Returns:
        this
      • setAclEnabled

        public ServiceCreator setAclEnabled​(Boolean aclEnabled)
        The acl_enabled.
        Parameters:
        aclEnabled - The acl_enabled
        Returns:
        this
      • create

        public Service create​(TwilioRestClient client)
        Make the request to the Twilio API to perform the create.
        Specified by:
        create in class Creator<Service>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Created Service