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

package com.azure.health.insights.clinicalmatching.models;

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

/** `GeoJSON` object properties. */
@Immutable
public final class AreaProperties {
    /*
     * `GeoJSON` object sub-type.
     */
    @JsonProperty(value = "subType", required = true)
    private GeoJsonPropertiesSubType subType;

    /*
     * The radius of the area's circle, in meters.
     */
    @JsonProperty(value = "radius", required = true)
    private double radius;

    /**
     * Creates an instance of AreaProperties class.
     *
     * @param subType the subType value to set.
     * @param radius the radius value to set.
     */
    @JsonCreator
    public AreaProperties(
            @JsonProperty(value = "subType", required = true) GeoJsonPropertiesSubType subType,
            @JsonProperty(value = "radius", required = true) double radius) {
        this.subType = subType;
        this.radius = radius;
    }

    /**
     * Get the subType property: `GeoJSON` object sub-type.
     *
     * @return the subType value.
     */
    public GeoJsonPropertiesSubType getSubType() {
        return this.subType;
    }

    /**
     * Get the radius property: The radius of the area's circle, in meters.
     *
     * @return the radius value.
     */
    public double getRadius() {
        return this.radius;
    }
}
