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 classPlace.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CONTAINED_WITHINstatic StringSERIALIZED_NAME_COUNTRYstatic StringSERIALIZED_NAME_COUNTRY_CODEstatic StringSERIALIZED_NAME_FULL_NAMEstatic StringSERIALIZED_NAME_GEOstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_PLACE_TYPE
-
Constructor Summary
Constructors Constructor Description Place()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PlaceaddContainedWithinItem(String containedWithinItem)PlacecontainedWithin(List<String> containedWithin)Placecountry(String country)PlacecountryCode(String countryCode)booleanequals(Object o)static PlacefromJson(String jsonString)Create an instance of Place given an JSON stringPlacefullName(String fullName)Placegeo(Geo geo)List<String>getContainedWithin()Get containedWithinStringgetCountry()The full name of the county in which this place exists.StringgetCountryCode()A two-letter ISO 3166-1 alpha-2 country codeStringgetFullName()The full name of this place.GeogetGeo()Get geoStringgetId()The identifier for this placeStringgetName()The human readable name of this place.PlaceTypegetPlaceType()Get placeTypeinthashCode()Placeid(String id)Placename(String name)PlaceplaceType(PlaceType placeType)voidsetContainedWithin(List<String> containedWithin)voidsetCountry(String country)voidsetCountryCode(String countryCode)voidsetFullName(String fullName)voidsetGeo(Geo geo)voidsetId(String id)voidsetName(String name)voidsetPlaceType(PlaceType placeType)StringtoJson()Convert an instance of Place 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_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_COUNTRY_CODE
public static final String SERIALIZED_NAME_COUNTRY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PLACE_TYPE
public static final String SERIALIZED_NAME_PLACE_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FULL_NAME
public static final String SERIALIZED_NAME_FULL_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY
public static final String SERIALIZED_NAME_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONTAINED_WITHIN
public static final String SERIALIZED_NAME_CONTAINED_WITHIN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GEO
public static final String SERIALIZED_NAME_GEO
- See Also:
- Constant Field Values
-
-
Method Detail
-
setId
public void setId(String id)
-
setName
public void setName(String name)
-
getCountryCode
@Nullable public String getCountryCode()
A two-letter ISO 3166-1 alpha-2 country code- Returns:
- countryCode
-
setCountryCode
public void setCountryCode(String countryCode)
-
setPlaceType
public void setPlaceType(PlaceType placeType)
-
setFullName
public void setFullName(String fullName)
-
getCountry
@Nullable public String getCountry()
The full name of the county in which this place exists.- Returns:
- country
-
setCountry
public void setCountry(String country)
-
getContainedWithin
@Nullable public List<String> getContainedWithin()
Get containedWithin- Returns:
- containedWithin
-
setGeo
public void setGeo(Geo geo)
-
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 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
-
-