Class LogGeographicalContext

java.lang.Object
com.okta.sdk.resource.model.LogGeographicalContext
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-09-23T16:19:57.008753975Z[Etc/UTC]", comments="Generator version: 7.8.0") public class LogGeographicalContext extends Object implements Serializable
Geographical context describes a set of geographic coordinates. In addition to containing latitude and longitude data, the `GeographicalContext` object also contains address data of postal code-level granularity. Within the `Client` object, the geographical context refers to the physical location of the client when it sends the request that triggers this event. All `Transaction` events with `type` equal to `WEB` have a geographical context set. `Transaction` events with `type` equal to `JOB` don't have a geographical context set. The geographical context data can be missing if the geographical data for a request can't be resolved.
See Also:
  • Field Details

  • Constructor Details

    • LogGeographicalContext

      public LogGeographicalContext()
  • Method Details

    • getCity

      @Nullable public String getCity()
      The city that encompasses the area that contains the geolocation coordinates, if available (for example, Seattle, San Francisco)
      Returns:
      city
    • getCountry

      @Nullable public String getCountry()
      Full name of the country that encompasses the area that contains the geolocation coordinates (for example, France, Uganda)
      Returns:
      country
    • geolocation

      public LogGeographicalContext geolocation(LogGeolocation geolocation)
    • getGeolocation

      @Nullable public LogGeolocation getGeolocation()
      Get geolocation
      Returns:
      geolocation
    • setGeolocation

      public void setGeolocation(LogGeolocation geolocation)
    • getPostalCode

      @Nullable public String getPostalCode()
      Postal code of the area that encompasses the geolocation coordinates
      Returns:
      postalCode
    • getState

      @Nullable public String getState()
      Full name of the state or province that encompasses the area that contains the geolocation coordinates (for example, Montana, Ontario)
      Returns:
      state
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object