Class Challenge
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.verify.v2.service.entity.Challenge
-
- All Implemented Interfaces:
Serializable
public class Challenge extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Challenge.ChallengeReasons
static class
Challenge.ChallengeStatuses
static class
Challenge.FactorTypes
static class
Challenge.ListOrders
-
Method Summary
-
-
-
Method Detail
-
creator
public static ChallengeCreator creator(String pathServiceSid, String pathIdentity, String factorSid)
-
fetcher
public static ChallengeFetcher fetcher(String pathServiceSid, String pathIdentity, String pathSid)
-
reader
public static ChallengeReader reader(String pathServiceSid, String pathIdentity)
-
updater
public static ChallengeUpdater updater(String pathServiceSid, String pathIdentity, String pathSid)
-
fromJson
public static Challenge fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Challenge object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Challenge object represented by the provided JSON
-
fromJson
public static Challenge fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Challenge object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Challenge object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getServiceSid
public final String getServiceSid()
-
getEntitySid
public final String getEntitySid()
-
getIdentity
public final String getIdentity()
-
getFactorSid
public final String getFactorSid()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getDateResponded
public final ZonedDateTime getDateResponded()
-
getExpirationDate
public final ZonedDateTime getExpirationDate()
-
getStatus
public final Challenge.ChallengeStatuses getStatus()
-
getRespondedReason
public final Challenge.ChallengeReasons getRespondedReason()
-
getFactorType
public final Challenge.FactorTypes getFactorType()
-
getUrl
public final URI getUrl()
-
-