Package ai.reveng.model
Class LocationOutputBody
java.lang.Object
ai.reveng.model.LocationOutputBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LocationOutputBody
extends Object
LocationOutputBody
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCurrency code for this locationstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncountryCode(String countryCode) currency(LocationOutputBody.CurrencyEnum currency) booleanstatic LocationOutputBodyCreate an instance of LocationOutputBody given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Country nameISO 3166-1 alpha-2 country codeCurrency code for this locationinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCountry(String country) voidsetCountryCode(String countryCode) voidsetCurrency(LocationOutputBody.CurrencyEnum currency) toJson()Convert an instance of LocationOutputBody to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_COUNTRY
- See Also:
-
SERIALIZED_NAME_COUNTRY_CODE
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LocationOutputBody
public LocationOutputBody()
-
-
Method Details
-
country
-
getCountry
Country name- Returns:
- country
-
setCountry
-
countryCode
-
getCountryCode
ISO 3166-1 alpha-2 country code- Returns:
- countryCode
-
setCountryCode
-
currency
-
getCurrency
Currency code for this location- Returns:
- currency
-
setCurrency
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the LocationOutputBody instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to LocationOutputBody
-
fromJson
Create an instance of LocationOutputBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LocationOutputBody
- Throws:
IOException- if the JSON string is invalid with respect to LocationOutputBody
-
toJson
Convert an instance of LocationOutputBody to an JSON string- Returns:
- JSON string
-