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

package com.azure.resourcemanager.synapse.models;

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

/** Grant sql control to managed identity. */
@Fluent
public class ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity {
    /*
     * Desired state
     */
    @JsonProperty(value = "desiredState")
    private DesiredState desiredState;

    /*
     * Actual state
     */
    @JsonProperty(value = "actualState", access = JsonProperty.Access.WRITE_ONLY)
    private ActualState actualState;

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

    /**
     * Get the desiredState property: Desired state.
     *
     * @return the desiredState value.
     */
    public DesiredState desiredState() {
        return this.desiredState;
    }

    /**
     * Set the desiredState property: Desired state.
     *
     * @param desiredState the desiredState value to set.
     * @return the ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity object itself.
     */
    public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity withDesiredState(
        DesiredState desiredState) {
        this.desiredState = desiredState;
        return this;
    }

    /**
     * Get the actualState property: Actual state.
     *
     * @return the actualState value.
     */
    public ActualState actualState() {
        return this.actualState;
    }

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