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 |
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.
|
create, createAsync, createAsync
public ChannelCreator(String pathServiceSid)
pathServiceSid
- The SID of the Service to create the 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
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 Channel create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.