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

package com.azure.resourcemanager.machinelearning.models;

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

/** Desired scale settings for the amlCompute. */
@Fluent
public final class ScaleSettingsInformation {
    /*
     * scale settings for AML Compute
     */
    @JsonProperty(value = "scaleSettings")
    private ScaleSettings scaleSettings;

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

    /**
     * Get the scaleSettings property: scale settings for AML Compute.
     *
     * @return the scaleSettings value.
     */
    public ScaleSettings scaleSettings() {
        return this.scaleSettings;
    }

    /**
     * Set the scaleSettings property: scale settings for AML Compute.
     *
     * @param scaleSettings the scaleSettings value to set.
     * @return the ScaleSettingsInformation object itself.
     */
    public ScaleSettingsInformation withScaleSettings(ScaleSettings scaleSettings) {
        this.scaleSettings = scaleSettings;
        return this;
    }

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