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

package com.azure.resourcemanager.customerinsights.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The definition of a prediction grade. */
@Fluent
public final class PredictionGradesItem {
    /*
     * Name of the grade.
     */
    @JsonProperty(value = "gradeName")
    private String gradeName;

    /*
     * Minimum score threshold.
     */
    @JsonProperty(value = "minScoreThreshold")
    private Integer minScoreThreshold;

    /*
     * Maximum score threshold.
     */
    @JsonProperty(value = "maxScoreThreshold")
    private Integer maxScoreThreshold;

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

    /**
     * Get the gradeName property: Name of the grade.
     *
     * @return the gradeName value.
     */
    public String gradeName() {
        return this.gradeName;
    }

    /**
     * Set the gradeName property: Name of the grade.
     *
     * @param gradeName the gradeName value to set.
     * @return the PredictionGradesItem object itself.
     */
    public PredictionGradesItem withGradeName(String gradeName) {
        this.gradeName = gradeName;
        return this;
    }

    /**
     * Get the minScoreThreshold property: Minimum score threshold.
     *
     * @return the minScoreThreshold value.
     */
    public Integer minScoreThreshold() {
        return this.minScoreThreshold;
    }

    /**
     * Set the minScoreThreshold property: Minimum score threshold.
     *
     * @param minScoreThreshold the minScoreThreshold value to set.
     * @return the PredictionGradesItem object itself.
     */
    public PredictionGradesItem withMinScoreThreshold(Integer minScoreThreshold) {
        this.minScoreThreshold = minScoreThreshold;
        return this;
    }

    /**
     * Get the maxScoreThreshold property: Maximum score threshold.
     *
     * @return the maxScoreThreshold value.
     */
    public Integer maxScoreThreshold() {
        return this.maxScoreThreshold;
    }

    /**
     * Set the maxScoreThreshold property: Maximum score threshold.
     *
     * @param maxScoreThreshold the maxScoreThreshold value to set.
     * @return the PredictionGradesItem object itself.
     */
    public PredictionGradesItem withMaxScoreThreshold(Integer maxScoreThreshold) {
        this.maxScoreThreshold = maxScoreThreshold;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
