Package com.twilio.rest.notify.v1
Class ServiceCreator
- java.lang.Object
-
- com.twilio.base.Creator<Service>
-
- com.twilio.rest.notify.v1.ServiceCreator
-
-
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
setAlexaSkillId(String alexaSkillId)
Deprecated..ServiceCreator
setApnCredentialSid(String apnCredentialSid)
The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings..ServiceCreator
setDefaultAlexaNotificationProtocolVersion(String defaultAlexaNotificationProtocolVersion)
Deprecated..ServiceCreator
setDefaultApnNotificationProtocolVersion(String defaultApnNotificationProtocolVersion)
The protocol version to use for sending APNS notifications.ServiceCreator
setDefaultFcmNotificationProtocolVersion(String defaultFcmNotificationProtocolVersion)
The protocol version to use for sending FCM notifications.ServiceCreator
setDefaultGcmNotificationProtocolVersion(String defaultGcmNotificationProtocolVersion)
The protocol version to use for sending GCM notifications.ServiceCreator
setFacebookMessengerPageId(String facebookMessengerPageId)
Deprecated..ServiceCreator
setFcmCredentialSid(String fcmCredentialSid)
The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for FCM Bindings..ServiceCreator
setFriendlyName(String friendlyName)
A descriptive string that you create to describe the resource.ServiceCreator
setGcmCredentialSid(String gcmCredentialSid)
The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings..ServiceCreator
setLogEnabled(Boolean logEnabled)
Whether to log notifications.ServiceCreator
setMessagingServiceSid(String messagingServiceSid)
The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings.-
Methods inherited from class com.twilio.base.Creator
create, createAsync, createAsync
-
-
-
-
Method Detail
-
setFriendlyName
public ServiceCreator setFriendlyName(String friendlyName)
A descriptive string that you create to describe the resource. It can be up to 64 characters long..- Parameters:
friendlyName
- A string to describe the resource- Returns:
- this
-
setApnCredentialSid
public ServiceCreator setApnCredentialSid(String apnCredentialSid)
The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings..- Parameters:
apnCredentialSid
- The SID of the Credential to use for APN Bindings- Returns:
- this
-
setGcmCredentialSid
public ServiceCreator setGcmCredentialSid(String gcmCredentialSid)
The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings..- Parameters:
gcmCredentialSid
- The SID of the Credential to use for GCM Bindings- Returns:
- this
-
setMessagingServiceSid
public ServiceCreator setMessagingServiceSid(String messagingServiceSid)
The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications..- Parameters:
messagingServiceSid
- The SID of the Messaging Service to use for SMS Bindings- Returns:
- this
-
setFacebookMessengerPageId
public ServiceCreator setFacebookMessengerPageId(String facebookMessengerPageId)
Deprecated..- Parameters:
facebookMessengerPageId
- Deprecated- Returns:
- this
-
setDefaultApnNotificationProtocolVersion
public ServiceCreator setDefaultApnNotificationProtocolVersion(String defaultApnNotificationProtocolVersion)
The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource..- Parameters:
defaultApnNotificationProtocolVersion
- The protocol version to use for sending APNS notifications- Returns:
- this
-
setDefaultGcmNotificationProtocolVersion
public ServiceCreator setDefaultGcmNotificationProtocolVersion(String defaultGcmNotificationProtocolVersion)
The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource..- Parameters:
defaultGcmNotificationProtocolVersion
- The protocol version to use for sending GCM notifications- Returns:
- this
-
setFcmCredentialSid
public ServiceCreator setFcmCredentialSid(String fcmCredentialSid)
The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for FCM Bindings..- Parameters:
fcmCredentialSid
- The SID of the Credential to use for FCM Bindings- Returns:
- this
-
setDefaultFcmNotificationProtocolVersion
public ServiceCreator setDefaultFcmNotificationProtocolVersion(String defaultFcmNotificationProtocolVersion)
The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource..- Parameters:
defaultFcmNotificationProtocolVersion
- The protocol version to use for sending FCM notifications- Returns:
- this
-
setLogEnabled
public ServiceCreator setLogEnabled(Boolean logEnabled)
Whether to log notifications. Can be: `true` or `false` and the default is `true`..- Parameters:
logEnabled
- Whether to log notifications- Returns:
- this
-
setAlexaSkillId
public ServiceCreator setAlexaSkillId(String alexaSkillId)
Deprecated..- Parameters:
alexaSkillId
- Deprecated- Returns:
- this
-
setDefaultAlexaNotificationProtocolVersion
public ServiceCreator setDefaultAlexaNotificationProtocolVersion(String defaultAlexaNotificationProtocolVersion)
Deprecated..- Parameters:
defaultAlexaNotificationProtocolVersion
- Deprecated- Returns:
- this
-
create
public Service create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
-
-