// 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.Fluent;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Details of a research facility where a clinical trial is conducted. */
@Fluent
public final class ClinicalTrialResearchFacility {
    /*
     * The facility's name.
     */
    @JsonProperty(value = "name", required = true)
    private String name;

    /*
     * City name.
     */
    @JsonProperty(value = "city")
    private String city;

    /*
     * State name.
     */
    @JsonProperty(value = "state")
    private String state;

    /*
     * Country/region name.
     */
    @JsonProperty(value = "countryOrRegion", required = true)
    private String countryOrRegion;

    /**
     * Creates an instance of ClinicalTrialResearchFacility class.
     *
     * @param name the name value to set.
     * @param countryOrRegion the countryOrRegion value to set.
     */
    @JsonCreator
    public ClinicalTrialResearchFacility(
            @JsonProperty(value = "name", required = true) String name,
            @JsonProperty(value = "countryOrRegion", required = true) String countryOrRegion) {
        this.name = name;
        this.countryOrRegion = countryOrRegion;
    }

    /**
     * Get the name property: The facility's name.
     *
     * @return the name value.
     */
    public String getName() {
        return this.name;
    }

    /**
     * Get the city property: City name.
     *
     * @return the city value.
     */
    public String getCity() {
        return this.city;
    }

    /**
     * Set the city property: City name.
     *
     * @param city the city value to set.
     * @return the ClinicalTrialResearchFacility object itself.
     */
    public ClinicalTrialResearchFacility setCity(String city) {
        this.city = city;
        return this;
    }

    /**
     * Get the state property: State name.
     *
     * @return the state value.
     */
    public String getState() {
        return this.state;
    }

    /**
     * Set the state property: State name.
     *
     * @param state the state value to set.
     * @return the ClinicalTrialResearchFacility object itself.
     */
    public ClinicalTrialResearchFacility setState(String state) {
        this.state = state;
        return this;
    }

    /**
     * Get the countryOrRegion property: Country/region name.
     *
     * @return the countryOrRegion value.
     */
    public String getCountryOrRegion() {
        return this.countryOrRegion;
    }
}
