Class ConnectionPolicyTargetCreator
- java.lang.Object
-
- com.twilio.base.Creator<ConnectionPolicyTarget>
-
- com.twilio.rest.voice.v1.connectionpolicy.ConnectionPolicyTargetCreator
-
public class ConnectionPolicyTargetCreator extends Creator<ConnectionPolicyTarget>
-
-
Constructor Summary
Constructors Constructor Description ConnectionPolicyTargetCreator(String pathConnectionPolicySid, URI target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionPolicyTarget
create(TwilioRestClient client)
Execute a request using specified client.ConnectionPolicyTargetCreator
setEnabled(Boolean enabled)
ConnectionPolicyTargetCreator
setFriendlyName(String friendlyName)
ConnectionPolicyTargetCreator
setPriority(Integer priority)
ConnectionPolicyTargetCreator
setTarget(String target)
ConnectionPolicyTargetCreator
setTarget(URI target)
ConnectionPolicyTargetCreator
setWeight(Integer weight)
-
Methods inherited from class com.twilio.base.Creator
create, createAsync, createAsync
-
-
-
-
Method Detail
-
setTarget
public ConnectionPolicyTargetCreator setTarget(URI target)
-
setTarget
public ConnectionPolicyTargetCreator setTarget(String target)
-
setFriendlyName
public ConnectionPolicyTargetCreator setFriendlyName(String friendlyName)
-
setPriority
public ConnectionPolicyTargetCreator setPriority(Integer priority)
-
setWeight
public ConnectionPolicyTargetCreator setWeight(Integer weight)
-
setEnabled
public ConnectionPolicyTargetCreator setEnabled(Boolean enabled)
-
create
public ConnectionPolicyTarget create(TwilioRestClient client)
Description copied from class:Creator
Execute a request using specified client.- Specified by:
create
in classCreator<ConnectionPolicyTarget>
- Parameters:
client
- client used to make request- Returns:
- Requested object
-
-