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

package com.azure.health.insights.clinicalmatching.models;

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

/** A person's contact details. */
@Fluent
public final class ContactDetails {
    /*
     * The person's name.
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * The person's email.
     */
    @JsonProperty(value = "email")
    private String email;

    /*
     * A person's phone number.
     */
    @JsonProperty(value = "phone")
    private String phone;

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

    /**
     * Get the name property: The person's name.
     *
     * @return the name value.
     */
    public String getName() {
        return this.name;
    }

    /**
     * Set the name property: The person's name.
     *
     * @param name the name value to set.
     * @return the ContactDetails object itself.
     */
    public ContactDetails setName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the email property: The person's email.
     *
     * @return the email value.
     */
    public String getEmail() {
        return this.email;
    }

    /**
     * Set the email property: The person's email.
     *
     * @param email the email value to set.
     * @return the ContactDetails object itself.
     */
    public ContactDetails setEmail(String email) {
        this.email = email;
        return this;
    }

    /**
     * Get the phone property: A person's phone number.
     *
     * @return the phone value.
     */
    public String getPhone() {
        return this.phone;
    }

    /**
     * Set the phone property: A person's phone number.
     *
     * @param phone the phone value to set.
     * @return the ContactDetails object itself.
     */
    public ContactDetails setPhone(String phone) {
        this.phone = phone;
        return this;
    }
}
