public class IpAddress extends Resource
Modifier and Type | Method and Description |
---|---|
static IpAddressCreator |
creator(String pathIpAccessControlListSid,
String friendlyName,
String ipAddress)
Create a IpAddressCreator to execute create.
|
static IpAddressCreator |
creator(String pathAccountSid,
String pathIpAccessControlListSid,
String friendlyName,
String ipAddress)
Create a IpAddressCreator to execute create.
|
static IpAddressDeleter |
deleter(String pathIpAccessControlListSid,
String pathSid)
Create a IpAddressDeleter to execute delete.
|
static IpAddressDeleter |
deleter(String pathAccountSid,
String pathIpAccessControlListSid,
String pathSid)
Create a IpAddressDeleter to execute delete.
|
boolean |
equals(Object o) |
static IpAddressFetcher |
fetcher(String pathIpAccessControlListSid,
String pathSid)
Create a IpAddressFetcher to execute fetch.
|
static IpAddressFetcher |
fetcher(String pathAccountSid,
String pathIpAccessControlListSid,
String pathSid)
Create a IpAddressFetcher to execute fetch.
|
static IpAddress |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a IpAddress object using the provided
ObjectMapper.
|
static IpAddress |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a IpAddress object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The unique id of the Account that is responsible for this resource..
|
Integer |
getCidrPrefixLength()
Returns An integer representing the length of the CIDR prefix to use with
this IP address when accepting traffic.
|
ZonedDateTime |
getDateCreated()
Returns The date that this resource was created, given as GMT in RFC 2822
format..
|
ZonedDateTime |
getDateUpdated()
Returns The date that this resource was last updated, given as GMT in RFC
2822 format..
|
String |
getFriendlyName()
Returns A human readable descriptive text for this resource, up to 64
characters long..
|
String |
getIpAccessControlListSid()
Returns The unique id of the IpAccessControlList resource that includes this
resource..
|
String |
getIpAddress()
Returns An IP address in dotted decimal notation from which you want to
accept traffic.
|
String |
getSid()
Returns A 34 character string that uniquely identifies this resource..
|
String |
getUri()
Returns The URI for this resource, relative to https://api.twilio.com.
|
int |
hashCode() |
static IpAddressReader |
reader(String pathIpAccessControlListSid)
Create a IpAddressReader to execute read.
|
static IpAddressReader |
reader(String pathAccountSid,
String pathIpAccessControlListSid)
Create a IpAddressReader to execute read.
|
static IpAddressUpdater |
updater(String pathIpAccessControlListSid,
String pathSid)
Create a IpAddressUpdater to execute update.
|
static IpAddressUpdater |
updater(String pathAccountSid,
String pathIpAccessControlListSid,
String pathSid)
Create a IpAddressUpdater to execute update.
|
public static IpAddressReader reader(String pathAccountSid, String pathIpAccessControlListSid)
pathAccountSid
- The unique sid that identifies this accountpathIpAccessControlListSid
- The IpAccessControlList Sid that
identifies the IpAddress resources to readpublic static IpAddressReader reader(String pathIpAccessControlListSid)
pathIpAccessControlListSid
- The IpAccessControlList Sid that
identifies the IpAddress resources to readpublic static IpAddressCreator creator(String pathAccountSid, String pathIpAccessControlListSid, String friendlyName, String ipAddress)
pathAccountSid
- The unique sid that identifies this accountpathIpAccessControlListSid
- The IpAccessControlList Sid with which to
associate the created IpAddress resourcefriendlyName
- A human readable descriptive text for this resource, up
to 64 characters long.ipAddress
- An IP address in dotted decimal notation from which you
want to accept traffic. Any SIP requests from this IP
address will be allowed by Twilio. IPv4 only supported
today.public static IpAddressCreator creator(String pathIpAccessControlListSid, String friendlyName, String ipAddress)
pathIpAccessControlListSid
- The IpAccessControlList Sid with which to
associate the created IpAddress resourcefriendlyName
- A human readable descriptive text for this resource, up
to 64 characters long.ipAddress
- An IP address in dotted decimal notation from which you
want to accept traffic. Any SIP requests from this IP
address will be allowed by Twilio. IPv4 only supported
today.public static IpAddressFetcher fetcher(String pathAccountSid, String pathIpAccessControlListSid, String pathSid)
pathAccountSid
- The unique sid that identifies this accountpathIpAccessControlListSid
- The IpAccessControlList Sid that
identifies the IpAddress resources to fetchpathSid
- A string that identifies the IpAddress resource to fetchpublic static IpAddressFetcher fetcher(String pathIpAccessControlListSid, String pathSid)
pathIpAccessControlListSid
- The IpAccessControlList Sid that
identifies the IpAddress resources to fetchpathSid
- A string that identifies the IpAddress resource to fetchpublic static IpAddressUpdater updater(String pathAccountSid, String pathIpAccessControlListSid, String pathSid)
pathAccountSid
- The unique sid that identifies this accountpathIpAccessControlListSid
- The IpAccessControlList Sid that
identifies the IpAddress resources to
updatepathSid
- A string that identifies the IpAddress resource to updatepublic static IpAddressUpdater updater(String pathIpAccessControlListSid, String pathSid)
pathIpAccessControlListSid
- The IpAccessControlList Sid that
identifies the IpAddress resources to
updatepathSid
- A string that identifies the IpAddress resource to updatepublic static IpAddressDeleter deleter(String pathAccountSid, String pathIpAccessControlListSid, String pathSid)
pathAccountSid
- The unique sid that identifies this accountpathIpAccessControlListSid
- The IpAccessControlList Sid that
identifies the IpAddress resources to
deletepathSid
- A string that identifies the resource to deletepublic static IpAddressDeleter deleter(String pathIpAccessControlListSid, String pathSid)
pathIpAccessControlListSid
- The IpAccessControlList Sid that
identifies the IpAddress resources to
deletepathSid
- A string that identifies the resource to deletepublic static IpAddress fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static IpAddress fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getAccountSid()
public final String getFriendlyName()
public final String getIpAddress()
public final Integer getCidrPrefixLength()
public final String getIpAccessControlListSid()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getUri()
Copyright © 2019 Twilio, Inc. All Rights Reserved.