@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.6.0") public class Demographics extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Demographics.CustomTypeAdapterFactory |
| Modifier and Type | Field and Description |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_AGE |
static String |
SERIALIZED_NAME_AGE_RANGE |
static String |
SERIALIZED_NAME_GENDER |
static String |
SERIALIZED_NAME_LOCATION_GENERAL |
| Constructor and Description |
|---|
Demographics() |
| Modifier and Type | Method and Description |
|---|---|
Demographics |
age(Integer age) |
Demographics |
ageRange(String ageRange) |
boolean |
equals(Object o) |
static Demographics |
fromJson(String jsonString)
Create an instance of Demographics given an JSON string
|
Demographics |
gender(String gender) |
Integer |
getAge()
Get age
|
String |
getAgeRange()
Get ageRange
|
String |
getGender()
Get gender
|
String |
getLocationGeneral()
Get locationGeneral
|
int |
hashCode() |
Demographics |
locationGeneral(String locationGeneral) |
void |
setAge(Integer age) |
void |
setAgeRange(String ageRange) |
void |
setGender(String gender) |
void |
setLocationGeneral(String locationGeneral) |
String |
toJson()
Convert an instance of Demographics to an JSON string
|
String |
toString() |
static void |
validateJsonElement(com.google.gson.JsonElement jsonElement)
Validates the JSON Element and throws an exception if issues found
|
public static final String SERIALIZED_NAME_AGE
public static final String SERIALIZED_NAME_AGE_RANGE
public static final String SERIALIZED_NAME_GENDER
public static final String SERIALIZED_NAME_LOCATION_GENERAL
public Demographics age(Integer age)
public void setAge(Integer age)
public Demographics ageRange(String ageRange)
public void setAgeRange(String ageRange)
public Demographics gender(String gender)
public void setGender(String gender)
public Demographics locationGeneral(String locationGeneral)
@Nullable public String getLocationGeneral()
public void setLocationGeneral(String locationGeneral)
public static void validateJsonElement(com.google.gson.JsonElement jsonElement)
throws IOException
jsonElement - JSON ElementIOException - if the JSON Element is invalid with respect to Demographicspublic static Demographics fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to Demographicspublic String toJson()
Copyright © 2024. All rights reserved.