Package com.twitter.clientlib.model
Class Place
- java.lang.Object
-
- com.twitter.clientlib.model.Place
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Place extends Object
Place
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Place.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_CONTAINED_WITHIN
static String
SERIALIZED_NAME_COUNTRY
static String
SERIALIZED_NAME_COUNTRY_CODE
static String
SERIALIZED_NAME_FULL_NAME
static String
SERIALIZED_NAME_GEO
static String
SERIALIZED_NAME_ID
static String
SERIALIZED_NAME_NAME
static String
SERIALIZED_NAME_PLACE_TYPE
-
Constructor Summary
Constructors Constructor Description Place()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Place
addContainedWithinItem(String containedWithinItem)
Place
containedWithin(List<String> containedWithin)
Place
country(String country)
Place
countryCode(String countryCode)
boolean
equals(Object o)
static Place
fromJson(String jsonString)
Create an instance of Place given an JSON stringPlace
fullName(String fullName)
Place
geo(Geo geo)
List<String>
getContainedWithin()
Get containedWithinString
getCountry()
The full name of the county in which this place exists.String
getCountryCode()
A two-letter ISO 3166-1 alpha-2 country code.String
getFullName()
The full name of this place.Geo
getGeo()
Get geoString
getId()
The identifier for this place.String
getName()
The human readable name of this place.PlaceType
getPlaceType()
Get placeTypeint
hashCode()
Place
id(String id)
Place
name(String name)
Place
placeType(PlaceType placeType)
void
setContainedWithin(List<String> containedWithin)
void
setCountry(String country)
void
setCountryCode(String countryCode)
void
setFullName(String fullName)
void
setGeo(Geo geo)
void
setId(String id)
void
setName(String name)
void
setPlaceType(PlaceType placeType)
String
toJson()
Convert an instance of Place to an JSON stringString
toString()
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CONTAINED_WITHIN
public static final String SERIALIZED_NAME_CONTAINED_WITHIN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY
public static final String SERIALIZED_NAME_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY_CODE
public static final String SERIALIZED_NAME_COUNTRY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FULL_NAME
public static final String SERIALIZED_NAME_FULL_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GEO
public static final String SERIALIZED_NAME_GEO
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PLACE_TYPE
public static final String SERIALIZED_NAME_PLACE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContainedWithin
@Nullable public List<String> getContainedWithin()
Get containedWithin- Returns:
- containedWithin
-
getCountry
@Nullable public String getCountry()
The full name of the county in which this place exists.- Returns:
- country
-
setCountry
public void setCountry(String country)
-
getCountryCode
@Nullable public String getCountryCode()
A two-letter ISO 3166-1 alpha-2 country code.- Returns:
- countryCode
-
setCountryCode
public void setCountryCode(String countryCode)
-
setFullName
public void setFullName(String fullName)
-
setGeo
public void setGeo(Geo geo)
-
setId
public void setId(String id)
-
setName
public void setName(String name)
-
setPlaceType
public void setPlaceType(PlaceType placeType)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
Validates 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 Place
-
fromJson
public static Place fromJson(String jsonString) throws IOException
Create an instance of Place given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of Place
- Throws:
IOException
- if the JSON string is invalid with respect to Place
-
toJson
public String toJson()
Convert an instance of Place to an JSON string- Returns:
- JSON string
-
-