Class IpAccessControlList
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.trunking.v1.trunk.IpAccessControlList
-
- All Implemented Interfaces:
Serializable
public class IpAccessControlList extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IpAccessControlListCreator
creator(String pathTrunkSid, String ipAccessControlListSid)
Create a IpAccessControlListCreator to execute create.static IpAccessControlListDeleter
deleter(String pathTrunkSid, String pathSid)
Create a IpAccessControlListDeleter to execute delete.boolean
equals(Object o)
static IpAccessControlListFetcher
fetcher(String pathTrunkSid, String pathSid)
Create a IpAccessControlListFetcher to execute fetch.static IpAccessControlList
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a IpAccessControlList object using the provided ObjectMapper.static IpAccessControlList
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a IpAccessControlList object using the provided ObjectMapper.String
getAccountSid()
Returns The The SID of the Account that created the resource.org.joda.time.DateTime
getDateCreated()
Returns The The RFC 2822 date and time in GMT when the resource was created.org.joda.time.DateTime
getDateUpdated()
Returns The The RFC 2822 date and time in GMT when the resource was last updated.String
getFriendlyName()
Returns The The string that you assigned to describe the resource.String
getSid()
Returns The The unique string that identifies the resource.String
getTrunkSid()
Returns The The SID of the Trunk the resource is associated with.URI
getUrl()
Returns The The absolute URL of the resource.int
hashCode()
static IpAccessControlListReader
reader(String pathTrunkSid)
Create a IpAccessControlListReader to execute read.String
toString()
-
-
-
Method Detail
-
fetcher
public static IpAccessControlListFetcher fetcher(String pathTrunkSid, String pathSid)
Create a IpAccessControlListFetcher to execute fetch.- Parameters:
pathTrunkSid
- The SID of the Trunk from which to fetch the IP Access Control ListpathSid
- The unique string that identifies the resource- Returns:
- IpAccessControlListFetcher capable of executing the fetch
-
deleter
public static IpAccessControlListDeleter deleter(String pathTrunkSid, String pathSid)
Create a IpAccessControlListDeleter to execute delete.- Parameters:
pathTrunkSid
- The SID of the Trunk from which to delete the IP Access Control ListpathSid
- The unique string that identifies the resource- Returns:
- IpAccessControlListDeleter capable of executing the delete
-
creator
public static IpAccessControlListCreator creator(String pathTrunkSid, String ipAccessControlListSid)
Create a IpAccessControlListCreator to execute create.- Parameters:
pathTrunkSid
- The SID of the Trunk to associate the IP Access Control List withipAccessControlListSid
- The SID of the IP Access Control List that you want to associate with the trunk- Returns:
- IpAccessControlListCreator capable of executing the create
-
reader
public static IpAccessControlListReader reader(String pathTrunkSid)
Create a IpAccessControlListReader to execute read.- Parameters:
pathTrunkSid
- The SID of the Trunk from which to read the IP Access Control Lists- Returns:
- IpAccessControlListReader capable of executing the read
-
fromJson
public static IpAccessControlList fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a IpAccessControlList object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- IpAccessControlList object represented by the provided JSON
-
fromJson
public static IpAccessControlList fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a IpAccessControlList object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- IpAccessControlList object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
Returns The The SID of the Account that created the resource.- Returns:
- The SID of the Account that created the resource
-
getSid
public final String getSid()
Returns The The unique string that identifies the resource.- Returns:
- The unique string that identifies the resource
-
getTrunkSid
public final String getTrunkSid()
Returns The The SID of the Trunk the resource is associated with.- Returns:
- The SID of the Trunk the resource is associated with
-
getFriendlyName
public final String getFriendlyName()
Returns The The string that you assigned to describe the resource.- Returns:
- The string that you assigned to describe the resource
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The RFC 2822 date and time in GMT when the resource was created.- Returns:
- The RFC 2822 date and time in GMT when the resource was created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The RFC 2822 date and time in GMT when the resource was last updated.- Returns:
- The RFC 2822 date and time in GMT when the resource was last updated
-
getUrl
public final URI getUrl()
Returns The The absolute URL of the resource.- Returns:
- The absolute URL of the resource
-
-