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

package com.azure.resourcemanager.databricks.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.UUID;

/** Provides details of the entity that created/updated the workspace. */
@Immutable
public final class CreatedBy {
    /*
     * The Object ID that created the workspace.
     */
    @JsonProperty(value = "oid", access = JsonProperty.Access.WRITE_ONLY)
    private UUID oid;

    /*
     * The Personal Object ID corresponding to the object ID above
     */
    @JsonProperty(value = "puid", access = JsonProperty.Access.WRITE_ONLY)
    private String puid;

    /*
     * The application ID of the application that initiated the creation of the workspace. For example, Azure Portal.
     */
    @JsonProperty(value = "applicationId", access = JsonProperty.Access.WRITE_ONLY)
    private UUID applicationId;

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

    /**
     * Get the oid property: The Object ID that created the workspace.
     *
     * @return the oid value.
     */
    public UUID oid() {
        return this.oid;
    }

    /**
     * Get the puid property: The Personal Object ID corresponding to the object ID above.
     *
     * @return the puid value.
     */
    public String puid() {
        return this.puid;
    }

    /**
     * Get the applicationId property: The application ID of the application that initiated the creation of the
     * workspace. For example, Azure Portal.
     *
     * @return the applicationId value.
     */
    public UUID applicationId() {
        return this.applicationId;
    }

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