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

/** Parameters to diagnose a workspace. */
@Fluent
public final class DiagnoseWorkspaceParameters {
    /*
     * Value of Parameters
     */
    @JsonProperty(value = "value")
    private DiagnoseRequestProperties value;

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

    /**
     * Get the value property: Value of Parameters.
     *
     * @return the value value.
     */
    public DiagnoseRequestProperties value() {
        return this.value;
    }

    /**
     * Set the value property: Value of Parameters.
     *
     * @param value the value value to set.
     * @return the DiagnoseWorkspaceParameters object itself.
     */
    public DiagnoseWorkspaceParameters withValue(DiagnoseRequestProperties value) {
        this.value = value;
        return this;
    }

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