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

/** Information on the client (user or application) that made some action. */
@Fluent
public final class ClientInfo {
    /*
     * The email of the client.
     */
    @JsonProperty(value = "email")
    private String email;

    /*
     * The name of the client.
     */
    @JsonProperty(value = "name")
    private String name;

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

    /*
     * The user principal name of the client.
     */
    @JsonProperty(value = "userPrincipalName")
    private String userPrincipalName;

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

    /**
     * Set the email property: The email of the client.
     *
     * @param email the email value to set.
     * @return the ClientInfo object itself.
     */
    public ClientInfo withEmail(String email) {
        this.email = email;
        return this;
    }

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

    /**
     * Set the name property: The name of the client.
     *
     * @param name the name value to set.
     * @return the ClientInfo object itself.
     */
    public ClientInfo withName(String name) {
        this.name = name;
        return this;
    }

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

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

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

    /**
     * Set the userPrincipalName property: The user principal name of the client.
     *
     * @param userPrincipalName the userPrincipalName value to set.
     * @return the ClientInfo object itself.
     */
    public ClientInfo withUserPrincipalName(String userPrincipalName) {
        this.userPrincipalName = userPrincipalName;
        return this;
    }

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