Class ValidationRequest
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.api.v2010.account.ValidationRequest
-
- All Implemented Interfaces:
Serializable
public class ValidationRequest extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ValidationRequestCreatorcreator(PhoneNumber phoneNumber)static ValidationRequestCreatorcreator(String pathAccountSid, PhoneNumber phoneNumber)booleanequals(Object o)static ValidationRequestfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a ValidationRequest object using the provided ObjectMapper.static ValidationRequestfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a ValidationRequest object using the provided ObjectMapper.StringgetAccountSid()StringgetCallSid()StringgetFriendlyName()PhoneNumbergetPhoneNumber()StringgetValidationCode()inthashCode()
-
-
-
Method Detail
-
creator
public static ValidationRequestCreator creator(PhoneNumber phoneNumber)
-
creator
public static ValidationRequestCreator creator(String pathAccountSid, PhoneNumber phoneNumber)
-
fromJson
public static ValidationRequest fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a ValidationRequest object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- ValidationRequest object represented by the provided JSON
-
fromJson
public static ValidationRequest fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a ValidationRequest object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- ValidationRequest object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getCallSid
public final String getCallSid()
-
getFriendlyName
public final String getFriendlyName()
-
getPhoneNumber
public final PhoneNumber getPhoneNumber()
-
getValidationCode
public final String getValidationCode()
-
-