Package com.twilio.rest.preview.sync
Class ServiceCreator
- java.lang.Object
-
- com.twilio.base.Creator<Service>
-
- com.twilio.rest.preview.sync.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 Summary
Constructors Constructor Description ServiceCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Service
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.ServiceCreator
setAclEnabled(Boolean aclEnabled)
The acl_enabled.ServiceCreator
setFriendlyName(String friendlyName)
The friendly_name.ServiceCreator
setReachabilityWebhooksEnabled(Boolean reachabilityWebhooksEnabled)
The reachability_webhooks_enabled.ServiceCreator
setWebhookUrl(String webhookUrl)
The webhook_url.ServiceCreator
setWebhookUrl(URI webhookUrl)
The webhook_url.-
Methods inherited from class com.twilio.base.Creator
create, createAsync, createAsync
-
-
-
-
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.
-
-