Constructor and Description |
---|
ChannelCreator(String pathServiceSid)
Construct a new ChannelCreator.
|
Modifier and Type | Method and Description |
---|---|
Channel |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
ChannelCreator |
setAttributes(String attributes)
A valid JSON string that contains application-specific data..
|
ChannelCreator |
setCreatedBy(String createdBy)
The `identity` of the User that created the channel.
|
ChannelCreator |
setDateCreated(ZonedDateTime dateCreated)
The date, specified in ISO
8601 format, to assign to the resource as the date it was created.
|
ChannelCreator |
setDateUpdated(ZonedDateTime dateUpdated)
The date, specified in ISO
8601 format, to assign to the resource as the date it was last updated.
|
ChannelCreator |
setFriendlyName(String friendlyName)
A descriptive string that you create to describe the new resource.
|
ChannelCreator |
setType(Channel.ChannelType type)
The visibility of the channel.
|
ChannelCreator |
setUniqueName(String uniqueName)
An application-defined string that uniquely identifies the resource.
|
ChannelCreator |
setXTwilioWebhookEnabled(Channel.WebhookEnabledType xTwilioWebhookEnabled)
The X-Twilio-Webhook-Enabled HTTP request header.
|
create, createAsync, createAsync
public ChannelCreator(String pathServiceSid)
pathServiceSid
- The SID of the Service to create the Channel resource
underpublic ChannelCreator setFriendlyName(String friendlyName)
friendlyName
- A string to describe the new resourcepublic ChannelCreator setUniqueName(String uniqueName)
uniqueName
- An application-defined string that uniquely identifies the
Channel resourcepublic ChannelCreator setAttributes(String attributes)
attributes
- A valid JSON string that contains application-specific datapublic ChannelCreator setType(Channel.ChannelType type)
type
- The visibility of the channelpublic ChannelCreator setDateCreated(ZonedDateTime dateCreated)
dateCreated
- The ISO 8601 date and time in GMT when the resource was
createdpublic ChannelCreator setDateUpdated(ZonedDateTime dateUpdated)
dateUpdated
- The ISO 8601 date and time in GMT when the resource was
updatedpublic ChannelCreator setCreatedBy(String createdBy)
createdBy
- The identity of the User that created the Channelpublic ChannelCreator setXTwilioWebhookEnabled(Channel.WebhookEnabledType xTwilioWebhookEnabled)
xTwilioWebhookEnabled
- The X-Twilio-Webhook-Enabled HTTP request headerpublic Channel create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.