Class ResponsesWebSearchApproximateLocation
java.lang.Object
com.azure.ai.openai.responses.models.ResponsesWebSearchLocation
com.azure.ai.openai.responses.models.ResponsesWebSearchApproximateLocation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResponsesWebSearchLocation>
The ResponsesWebSearchApproximateLocation model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ResponsesWebSearchApproximateLocation class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResponsesWebSearchApproximateLocation from the JsonReader.getCity()Get the city property: Free text input for the city of the user, e.g.Get the country property: The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g.Get the region property: Free text input for the region of the user, e.g.Get the timezone property: The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g.getType()Get the type property: The type property.Set the city property: Free text input for the city of the user, e.g.setCountry(String country) Set the country property: The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g.Set the region property: Free text input for the region of the user, e.g.setTimezone(String timezone) Set the timezone property: The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ResponsesWebSearchApproximateLocation
public ResponsesWebSearchApproximateLocation()Creates an instance of ResponsesWebSearchApproximateLocation class.
-
-
Method Details
-
getType
Get the type property: The type property.- Overrides:
getTypein classResponsesWebSearchLocation- Returns:
- the type value.
-
getCountry
Get the country property: The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.- Returns:
- the country value.
-
setCountry
Set the country property: The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.- Parameters:
country- the country value to set.- Returns:
- the ResponsesWebSearchApproximateLocation object itself.
-
getRegion
Get the region property: Free text input for the region of the user, e.g. `California`.- Returns:
- the region value.
-
setRegion
Set the region property: Free text input for the region of the user, e.g. `California`.- Parameters:
region- the region value to set.- Returns:
- the ResponsesWebSearchApproximateLocation object itself.
-
getCity
Get the city property: Free text input for the city of the user, e.g. `San Francisco`.- Returns:
- the city value.
-
setCity
Set the city property: Free text input for the city of the user, e.g. `San Francisco`.- Parameters:
city- the city value to set.- Returns:
- the ResponsesWebSearchApproximateLocation object itself.
-
getTimezone
Get the timezone property: The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.- Returns:
- the timezone value.
-
setTimezone
Set the timezone property: The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.- Parameters:
timezone- the timezone value to set.- Returns:
- the ResponsesWebSearchApproximateLocation object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResponsesWebSearchLocation>- Overrides:
toJsonin classResponsesWebSearchLocation- Throws:
IOException
-
fromJson
public static ResponsesWebSearchApproximateLocation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResponsesWebSearchApproximateLocation from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResponsesWebSearchApproximateLocation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ResponsesWebSearchApproximateLocation.
-