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

/** Demographic criteria for a clinical trial. */
@Fluent
public final class ClinicalTrialDemographics {
    /*
     * Indication of the sex of people who may participate in the clinical trial.
     */
    @JsonProperty(value = "acceptedSex")
    private ClinicalTrialAcceptedSex acceptedSex;

    /*
     * A definition of the range of ages accepted by a clinical trial. Contains a minimum age and/or a maximum age.
     */
    @JsonProperty(value = "acceptedAgeRange")
    private AcceptedAgeRange acceptedAgeRange;

    /** Creates an instance of ClinicalTrialDemographics class. */
    public ClinicalTrialDemographics() {}

    /**
     * Get the acceptedSex property: Indication of the sex of people who may participate in the clinical trial.
     *
     * @return the acceptedSex value.
     */
    public ClinicalTrialAcceptedSex getAcceptedSex() {
        return this.acceptedSex;
    }

    /**
     * Set the acceptedSex property: Indication of the sex of people who may participate in the clinical trial.
     *
     * @param acceptedSex the acceptedSex value to set.
     * @return the ClinicalTrialDemographics object itself.
     */
    public ClinicalTrialDemographics setAcceptedSex(ClinicalTrialAcceptedSex acceptedSex) {
        this.acceptedSex = acceptedSex;
        return this;
    }

    /**
     * Get the acceptedAgeRange property: A definition of the range of ages accepted by a clinical trial. Contains a
     * minimum age and/or a maximum age.
     *
     * @return the acceptedAgeRange value.
     */
    public AcceptedAgeRange getAcceptedAgeRange() {
        return this.acceptedAgeRange;
    }

    /**
     * Set the acceptedAgeRange property: A definition of the range of ages accepted by a clinical trial. Contains a
     * minimum age and/or a maximum age.
     *
     * @param acceptedAgeRange the acceptedAgeRange value to set.
     * @return the ClinicalTrialDemographics object itself.
     */
    public ClinicalTrialDemographics setAcceptedAgeRange(AcceptedAgeRange acceptedAgeRange) {
        this.acceptedAgeRange = acceptedAgeRange;
        return this;
    }
}
