Package com.boldsign.model
Class PhoneNumber
- java.lang.Object
-
- com.boldsign.model.PhoneNumber
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.8.0") public class PhoneNumber extends Object
PhoneNumber
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhoneNumber.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COUNTRY_CODEstatic StringSERIALIZED_NAME_NUMBER
-
Constructor Summary
Constructors Constructor Description PhoneNumber()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PhoneNumbercountryCode(String countryCode)Map<String,Object>createFormData()booleanequals(Object o)static PhoneNumberfromJson(String jsonString)Create an instance of PhoneNumber given an JSON stringStringgetCountryCode()Get countryCodeStringgetNumber()Get numberinthashCode()PhoneNumbernumber(String number)voidsetCountryCode(String countryCode)voidsetNumber(String number)StringtoJson()Convert an instance of PhoneNumber to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_COUNTRY_CODE
public static final String SERIALIZED_NAME_COUNTRY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NUMBER
public static final String SERIALIZED_NAME_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
countryCode
public PhoneNumber countryCode(String countryCode)
-
setCountryCode
public void setCountryCode(String countryCode)
-
number
public PhoneNumber number(String number)
-
setNumber
public void setNumber(String number)
-
createFormData
public Map<String,Object> createFormData() throws ApiException
- Throws:
ApiException
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to PhoneNumber
-
fromJson
public static PhoneNumber fromJson(String jsonString) throws IOException
Create an instance of PhoneNumber given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PhoneNumber
- Throws:
IOException- if the JSON string is invalid with respect to PhoneNumber
-
toJson
public String toJson()
Convert an instance of PhoneNumber to an JSON string- Returns:
- JSON string
-
-