Class Bundle
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.numbers.v2.regulatorycompliance.Bundle
-
- All Implemented Interfaces:
Serializable
public class Bundle extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBundle.EndUserTypestatic classBundle.SortBystatic classBundle.SortDirectionstatic classBundle.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BundleCreatorcreator(String friendlyName, String email)static BundleDeleterdeleter(String pathSid)booleanequals(Object o)static BundleFetcherfetcher(String pathSid)static BundlefromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Bundle object using the provided ObjectMapper.static BundlefromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Bundle object using the provided ObjectMapper.StringgetAccountSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetEmail()StringgetFriendlyName()Map<String,String>getLinks()StringgetRegulationSid()StringgetSid()Bundle.StatusgetStatus()URIgetStatusCallback()URIgetUrl()ZonedDateTimegetValidUntil()inthashCode()static BundleReaderreader()static BundleUpdaterupdater(String pathSid)
-
-
-
Method Detail
-
creator
public static BundleCreator creator(String friendlyName, String email)
-
fetcher
public static BundleFetcher fetcher(String pathSid)
-
deleter
public static BundleDeleter deleter(String pathSid)
-
reader
public static BundleReader reader()
-
updater
public static BundleUpdater updater(String pathSid)
-
fromJson
public static Bundle fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Bundle object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Bundle object represented by the provided JSON
-
fromJson
public static Bundle fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Bundle object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Bundle object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getRegulationSid
public final String getRegulationSid()
-
getFriendlyName
public final String getFriendlyName()
-
getStatus
public final Bundle.Status getStatus()
-
getValidUntil
public final ZonedDateTime getValidUntil()
-
getEmail
public final String getEmail()
-
getStatusCallback
public final URI getStatusCallback()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-