public class ParticipantCreator extends Creator<Participant>
Constructor and Description |
---|
ParticipantCreator(String pathServiceSid,
String pathSessionSid,
String identifier)
Construct a new ParticipantCreator.
|
Modifier and Type | Method and Description |
---|---|
Participant |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
ParticipantCreator |
setFailOnParticipantConflict(Boolean failOnParticipantConflict)
[Experimental] For accounts with the ProxyAllowParticipantConflict account
flag, setting to true enables per-request opt-in to allowing Proxy to reject
a Participant create request that could cause the same
Identifier/ProxyIdentifier pair to be active in multiple Sessions.
|
ParticipantCreator |
setFriendlyName(String friendlyName)
The string that you assigned to describe the participant.
|
ParticipantCreator |
setProxyIdentifier(String proxyIdentifier)
The proxy phone number to use for the Participant.
|
ParticipantCreator |
setProxyIdentifierSid(String proxyIdentifierSid)
The SID of the Proxy Identifier to assign to the Participant..
|
create, createAsync, createAsync
public ParticipantCreator(String pathServiceSid, String pathSessionSid, String identifier)
pathServiceSid
- The SID of the parent Service resourcepathSessionSid
- The SID of the parent Session resourceidentifier
- The phone number of the Participantpublic ParticipantCreator setFriendlyName(String friendlyName)
friendlyName
- The string that you assigned to describe the participantpublic ParticipantCreator setProxyIdentifier(String proxyIdentifier)
proxyIdentifier
- The proxy phone number to use for the Participantpublic ParticipantCreator setProxyIdentifierSid(String proxyIdentifierSid)
proxyIdentifierSid
- The Proxy Identifier Sidpublic ParticipantCreator setFailOnParticipantConflict(Boolean failOnParticipantConflict)
failOnParticipantConflict
- An experimental parameter to override the
ProxyAllowParticipantConflict account flag
on a per-request basis.public Participant create(TwilioRestClient client)
create
in class Creator<Participant>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.