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

package com.azure.resourcemanager.workloads.models;

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

/** Gets or sets the Threshold Values for Top Metrics Health. */
@Fluent
public final class SapLandscapeMonitorMetricThresholds {
    /*
     * Gets or sets the name of the threshold.
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * Gets or sets the threshold value for Green.
     */
    @JsonProperty(value = "green")
    private Float green;

    /*
     * Gets or sets the threshold value for Yellow.
     */
    @JsonProperty(value = "yellow")
    private Float yellow;

    /*
     * Gets or sets the threshold value for Red.
     */
    @JsonProperty(value = "red")
    private Float red;

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

    /**
     * Get the name property: Gets or sets the name of the threshold.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: Gets or sets the name of the threshold.
     *
     * @param name the name value to set.
     * @return the SapLandscapeMonitorMetricThresholds object itself.
     */
    public SapLandscapeMonitorMetricThresholds withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the green property: Gets or sets the threshold value for Green.
     *
     * @return the green value.
     */
    public Float green() {
        return this.green;
    }

    /**
     * Set the green property: Gets or sets the threshold value for Green.
     *
     * @param green the green value to set.
     * @return the SapLandscapeMonitorMetricThresholds object itself.
     */
    public SapLandscapeMonitorMetricThresholds withGreen(Float green) {
        this.green = green;
        return this;
    }

    /**
     * Get the yellow property: Gets or sets the threshold value for Yellow.
     *
     * @return the yellow value.
     */
    public Float yellow() {
        return this.yellow;
    }

    /**
     * Set the yellow property: Gets or sets the threshold value for Yellow.
     *
     * @param yellow the yellow value to set.
     * @return the SapLandscapeMonitorMetricThresholds object itself.
     */
    public SapLandscapeMonitorMetricThresholds withYellow(Float yellow) {
        this.yellow = yellow;
        return this;
    }

    /**
     * Get the red property: Gets or sets the threshold value for Red.
     *
     * @return the red value.
     */
    public Float red() {
        return this.red;
    }

    /**
     * Set the red property: Gets or sets the threshold value for Red.
     *
     * @param red the red value to set.
     * @return the SapLandscapeMonitorMetricThresholds object itself.
     */
    public SapLandscapeMonitorMetricThresholds withRed(Float red) {
        this.red = red;
        return this;
    }

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