Class Regulation
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.numbers.v2.regulatorycompliance.Regulation
-
- All Implemented Interfaces:
Serializable
public class Regulation extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRegulation.EndUserType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static RegulationFetcherfetcher(String pathSid)static RegulationfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Regulation object using the provided ObjectMapper.static RegulationfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Regulation object using the provided ObjectMapper.Regulation.EndUserTypegetEndUserType()StringgetFriendlyName()StringgetIsoCountry()StringgetNumberType()Map<String,Object>getRequirements()StringgetSid()URIgetUrl()inthashCode()static RegulationReaderreader()
-
-
-
Method Detail
-
fetcher
public static RegulationFetcher fetcher(String pathSid)
-
reader
public static RegulationReader reader()
-
fromJson
public static Regulation fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Regulation object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Regulation object represented by the provided JSON
-
fromJson
public static Regulation fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Regulation object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Regulation object represented by the provided JSON
-
getSid
public final String getSid()
-
getFriendlyName
public final String getFriendlyName()
-
getIsoCountry
public final String getIsoCountry()
-
getNumberType
public final String getNumberType()
-
getEndUserType
public final Regulation.EndUserType getEndUserType()
-
getUrl
public final URI getUrl()
-
-