Package com.adyen.model.balanceplatform
Class Name
- java.lang.Object
-
- com.adyen.model.balanceplatform.Name
-
public class Name extends Object
Name
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static className.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_FIRST_NAMEstatic StringSERIALIZED_NAME_LAST_NAME
-
Constructor Summary
Constructors Constructor Description Name()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)NamefirstName(String firstName)static NamefromJson(String jsonString)Create an instance of Name given an JSON stringStringgetFirstName()The first name.StringgetLastName()The last name.inthashCode()NamelastName(String lastName)voidsetFirstName(String firstName)voidsetLastName(String lastName)StringtoJson()Convert an instance of Name to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_FIRST_NAME
public static final String SERIALIZED_NAME_FIRST_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LAST_NAME
public static final String SERIALIZED_NAME_LAST_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFirstName
public String getFirstName()
The first name.- Returns:
- firstName
-
setFirstName
public void setFirstName(String firstName)
-
getLastName
public String getLastName()
The last name.- Returns:
- lastName
-
setLastName
public void setLastName(String lastName)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException- Throws:
IOException
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON ObjectstrictValidation- reject (new) fields missing from the specifications- Throws:
IOException- if the JSON Object is invalid with respect to Name
-
fromJson
public static Name fromJson(String jsonString) throws IOException
Create an instance of Name given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Name
- Throws:
IOException- if the JSON string is invalid with respect to Name
-
toJson
public String toJson()
Convert an instance of Name to an JSON string- Returns:
- JSON string
-
-