// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.maps.geolocation.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;

/** This object is returned from a successful call to IP Address to country/region API. */
@Immutable
public final class IpAddressToLocationResult {
    /*
     * The object containing the country/region information.
     */
    @JsonProperty(value = "countryRegion", access = JsonProperty.Access.WRITE_ONLY)
    private CountryRegion countryRegion;

    /*
     * The IP Address of the request.
     */
    @JsonProperty(value = "ipAddress", access = JsonProperty.Access.WRITE_ONLY)
    private String ipAddress;

    /** Set default constructor to private */
    private IpAddressToLocationResult() {}

    /**
     * Get the countryRegion property: The object containing the country/region information.
     *
     * @return the countryRegion value.
     */
    public CountryRegion getCountryRegion() {
        return this.countryRegion;
    }

    /**
     * Get the ipAddress property: The IP Address of the request.
     *
     * @return the ipAddress value.
     */
    public String getIpAddress() {
        return this.ipAddress;
    }
}
