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

package com.azure.resourcemanager.datadog.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** User info. */
@Fluent
public final class UserInfo {
    /*
     * Name of the user
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * Email of the user used by Datadog for contacting them if needed
     */
    @JsonProperty(value = "emailAddress")
    private String emailAddress;

    /*
     * Phone number of the user used by Datadog for contacting them if needed
     */
    @JsonProperty(value = "phoneNumber")
    private String phoneNumber;

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

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

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

    /**
     * Get the emailAddress property: Email of the user used by Datadog for contacting them if needed.
     *
     * @return the emailAddress value.
     */
    public String emailAddress() {
        return this.emailAddress;
    }

    /**
     * Set the emailAddress property: Email of the user used by Datadog for contacting them if needed.
     *
     * @param emailAddress the emailAddress value to set.
     * @return the UserInfo object itself.
     */
    public UserInfo withEmailAddress(String emailAddress) {
        this.emailAddress = emailAddress;
        return this;
    }

    /**
     * Get the phoneNumber property: Phone number of the user used by Datadog for contacting them if needed.
     *
     * @return the phoneNumber value.
     */
    public String phoneNumber() {
        return this.phoneNumber;
    }

    /**
     * Set the phoneNumber property: Phone number of the user used by Datadog for contacting them if needed.
     *
     * @param phoneNumber the phoneNumber value to set.
     * @return the UserInfo object itself.
     */
    public UserInfo withPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
        return this;
    }

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