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

/** Key encryption key properties. */
@Fluent
public final class KekIdentityProperties {
    /*
     * User assigned identity resource Id
     */
    @JsonProperty(value = "userAssignedIdentity")
    private String userAssignedIdentity;

    /*
     * Boolean specifying whether to use system assigned identity or not
     */
    @JsonProperty(value = "useSystemAssignedIdentity")
    private Object useSystemAssignedIdentity;

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

    /**
     * Get the userAssignedIdentity property: User assigned identity resource Id.
     *
     * @return the userAssignedIdentity value.
     */
    public String userAssignedIdentity() {
        return this.userAssignedIdentity;
    }

    /**
     * Set the userAssignedIdentity property: User assigned identity resource Id.
     *
     * @param userAssignedIdentity the userAssignedIdentity value to set.
     * @return the KekIdentityProperties object itself.
     */
    public KekIdentityProperties withUserAssignedIdentity(String userAssignedIdentity) {
        this.userAssignedIdentity = userAssignedIdentity;
        return this;
    }

    /**
     * Get the useSystemAssignedIdentity property: Boolean specifying whether to use system assigned identity or not.
     *
     * @return the useSystemAssignedIdentity value.
     */
    public Object useSystemAssignedIdentity() {
        return this.useSystemAssignedIdentity;
    }

    /**
     * Set the useSystemAssignedIdentity property: Boolean specifying whether to use system assigned identity or not.
     *
     * @param useSystemAssignedIdentity the useSystemAssignedIdentity value to set.
     * @return the KekIdentityProperties object itself.
     */
    public KekIdentityProperties withUseSystemAssignedIdentity(Object useSystemAssignedIdentity) {
        this.useSystemAssignedIdentity = useSystemAssignedIdentity;
        return this;
    }

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