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

package com.azure.resourcemanager.securityinsights.models;

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

/** User information that made some action. */
@Fluent
public final class UserInfo {
    /*
     * The email of the user.
     */
    @JsonProperty(value = "email", access = JsonProperty.Access.WRITE_ONLY)
    private String email;

    /*
     * The name of the user.
     */
    @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
    private String name;

    /*
     * The object id of the user.
     */
    @JsonProperty(value = "objectId")
    private UUID objectId;

    /**
     * Get the email property: The email of the user.
     *
     * @return the email value.
     */
    public String email() {
        return this.email;
    }

    /**
     * Get the name property: The name of the user.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Get the objectId property: The object id of the user.
     *
     * @return the objectId value.
     */
    public UUID objectId() {
        return this.objectId;
    }

    /**
     * Set the objectId property: The object id of the user.
     *
     * @param objectId the objectId value to set.
     * @return the UserInfo object itself.
     */
    public UserInfo withObjectId(UUID objectId) {
        this.objectId = objectId;
        return this;
    }

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