Package com.adyen.model.management
Class Name2
- java.lang.Object
-
- com.adyen.model.management.Name2
-
public class Name2 extends Object
Name2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static className2.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 Name2()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Name2firstName(String firstName)static Name2fromJson(String jsonString)Create an instance of Name2 given an JSON stringStringgetFirstName()The first name.StringgetLastName()The last name.inthashCode()Name2lastName(String lastName)voidsetFirstName(String firstName)voidsetLastName(String lastName)StringtoJson()Convert an instance of Name2 to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)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 IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to Name2
-
fromJson
public static Name2 fromJson(String jsonString) throws IOException
Create an instance of Name2 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Name2
- Throws:
IOException- if the JSON string is invalid with respect to Name2
-
toJson
public String toJson()
Convert an instance of Name2 to an JSON string- Returns:
- JSON string
-
-