public class ConnectionPolicyTarget extends Resource
Modifier and Type | Method and Description |
---|---|
static ConnectionPolicyTargetCreator |
creator(String pathConnectionPolicySid,
URI target)
Create a ConnectionPolicyTargetCreator to execute create.
|
static ConnectionPolicyTargetDeleter |
deleter(String pathConnectionPolicySid,
String pathSid)
Create a ConnectionPolicyTargetDeleter to execute delete.
|
boolean |
equals(Object o) |
static ConnectionPolicyTargetFetcher |
fetcher(String pathConnectionPolicySid,
String pathSid)
Create a ConnectionPolicyTargetFetcher to execute fetch.
|
static ConnectionPolicyTarget |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a ConnectionPolicyTarget object using the
provided ObjectMapper.
|
static ConnectionPolicyTarget |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a ConnectionPolicyTarget object using the
provided ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
String |
getConnectionPolicySid()
Returns The SID of the Connection Policy that owns the Target.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT when the resource was last updated.
|
Boolean |
getEnabled()
Returns Whether the target is enabled.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the resource.
|
Integer |
getPriority()
Returns The relative importance of the target.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
URI |
getTarget()
Returns The SIP address you want Twilio to route your calls to.
|
URI |
getUrl()
Returns The absolute URL of the resource.
|
Integer |
getWeight()
Returns The value that determines the relative load the Target should receive
compared to others with the same priority.
|
int |
hashCode() |
static ConnectionPolicyTargetReader |
reader(String pathConnectionPolicySid)
Create a ConnectionPolicyTargetReader to execute read.
|
static ConnectionPolicyTargetUpdater |
updater(String pathConnectionPolicySid,
String pathSid)
Create a ConnectionPolicyTargetUpdater to execute update.
|
public static ConnectionPolicyTargetCreator creator(String pathConnectionPolicySid, URI target)
pathConnectionPolicySid
- The SID of the Connection Policy that owns
the Targettarget
- The SIP address you want Twilio to route your calls topublic static ConnectionPolicyTargetFetcher fetcher(String pathConnectionPolicySid, String pathSid)
pathConnectionPolicySid
- The SID of the Connection Policy that owns
the TargetpathSid
- The unique string that identifies the resourcepublic static ConnectionPolicyTargetReader reader(String pathConnectionPolicySid)
pathConnectionPolicySid
- The SID of the Connection Policy from which
to read the Targetspublic static ConnectionPolicyTargetUpdater updater(String pathConnectionPolicySid, String pathSid)
pathConnectionPolicySid
- The SID of the Connection Policy that owns
the TargetpathSid
- The unique string that identifies the resourcepublic static ConnectionPolicyTargetDeleter deleter(String pathConnectionPolicySid, String pathSid)
pathConnectionPolicySid
- The SID of the Connection Policy that owns
the TargetpathSid
- The unique string that identifies the resourcepublic static ConnectionPolicyTarget fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static ConnectionPolicyTarget fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getConnectionPolicySid()
public final String getSid()
public final String getFriendlyName()
public final URI getTarget()
public final Integer getPriority()
public final Integer getWeight()
public final Boolean getEnabled()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.