// 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;

/** The object containing the country/region information. */
@Immutable
public final class CountryRegion {
    /*
     * The IP Address's 2-character code [(ISO
     * 3166-1)](https://www.iso.org/iso-3166-country-codes.html) of the country
     * or region. Please note, IP address in ranges reserved for special
     * purpose will return Null for country/region.
     */
    @JsonProperty(value = "isoCode", access = JsonProperty.Access.WRITE_ONLY)
    private String isoCode;

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

    /**
     * Get the isoCode property: The IP Address's 2-character code [(ISO
     * 3166-1)](https://www.iso.org/iso-3166-country-codes.html) of the country or region. Please note, IP address in
     * ranges reserved for special purpose will return Null for country/region.
     *
     * @return the isoCode value.
     */
    public String getIsoCode() {
        return this.isoCode;
    }
}
