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

package com.azure.resourcemanager.datalakestore.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.UUID;

/** The encryption identity properties. */
@Fluent
public class EncryptionIdentity {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(EncryptionIdentity.class);

    /*
     * The type of encryption being used. Currently the only supported type is
     * 'SystemAssigned'.
     */
    @JsonProperty(value = "type", required = true)
    private String type;

    /*
     * The principal identifier associated with the encryption.
     */
    @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY)
    private UUID principalId;

    /*
     * The tenant identifier associated with the encryption.
     */
    @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY)
    private UUID tenantId;

    /** Creates an instance of EncryptionIdentity class. */
    public EncryptionIdentity() {
        type = "SystemAssigned";
    }

    /**
     * Get the type property: The type of encryption being used. Currently the only supported type is 'SystemAssigned'.
     *
     * @return the type value.
     */
    public String type() {
        return this.type;
    }

    /**
     * Set the type property: The type of encryption being used. Currently the only supported type is 'SystemAssigned'.
     *
     * @param type the type value to set.
     * @return the EncryptionIdentity object itself.
     */
    public EncryptionIdentity withType(String type) {
        this.type = type;
        return this;
    }

    /**
     * Get the principalId property: The principal identifier associated with the encryption.
     *
     * @return the principalId value.
     */
    public UUID principalId() {
        return this.principalId;
    }

    /**
     * Get the tenantId property: The tenant identifier associated with the encryption.
     *
     * @return the tenantId value.
     */
    public UUID tenantId() {
        return this.tenantId;
    }

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