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

/** Identity that will be used to access key vault for encryption at rest. */
@Fluent
public final class IdentityForCmk {
    /*
     * The ArmId of the user assigned identity that will be used to access the customer managed key vault
     */
    @JsonProperty(value = "userAssignedIdentity")
    private String userAssignedIdentity;

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

    /**
     * Get the userAssignedIdentity property: The ArmId of the user assigned identity that will be used to access the
     * customer managed key vault.
     *
     * @return the userAssignedIdentity value.
     */
    public String userAssignedIdentity() {
        return this.userAssignedIdentity;
    }

    /**
     * Set the userAssignedIdentity property: The ArmId of the user assigned identity that will be used to access the
     * customer managed key vault.
     *
     * @param userAssignedIdentity the userAssignedIdentity value to set.
     * @return the IdentityForCmk object itself.
     */
    public IdentityForCmk withUserAssignedIdentity(String userAssignedIdentity) {
        this.userAssignedIdentity = userAssignedIdentity;
        return this;
    }

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