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

/** A definition of the range of ages accepted by a clinical trial. Contains a minimum age and/or a maximum age. */
@Fluent
public final class AcceptedAgeRange {
    /*
     * A person's age, given as a number (value) and a unit (e.g. years, months)
     */
    @JsonProperty(value = "minimumAge")
    private AcceptedAge minimumAge;

    /*
     * A person's age, given as a number (value) and a unit (e.g. years, months)
     */
    @JsonProperty(value = "maximumAge")
    private AcceptedAge maximumAge;

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

    /**
     * Get the minimumAge property: A person's age, given as a number (value) and a unit (e.g. years, months).
     *
     * @return the minimumAge value.
     */
    public AcceptedAge getMinimumAge() {
        return this.minimumAge;
    }

    /**
     * Set the minimumAge property: A person's age, given as a number (value) and a unit (e.g. years, months).
     *
     * @param minimumAge the minimumAge value to set.
     * @return the AcceptedAgeRange object itself.
     */
    public AcceptedAgeRange setMinimumAge(AcceptedAge minimumAge) {
        this.minimumAge = minimumAge;
        return this;
    }

    /**
     * Get the maximumAge property: A person's age, given as a number (value) and a unit (e.g. years, months).
     *
     * @return the maximumAge value.
     */
    public AcceptedAge getMaximumAge() {
        return this.maximumAge;
    }

    /**
     * Set the maximumAge property: A person's age, given as a number (value) and a unit (e.g. years, months).
     *
     * @param maximumAge the maximumAge value to set.
     * @return the AcceptedAgeRange object itself.
     */
    public AcceptedAgeRange setMaximumAge(AcceptedAge maximumAge) {
        this.maximumAge = maximumAge;
        return this;
    }
}
