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

package com.azure.resourcemanager.education.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.education.models.JoinRequestStatus;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Join request properties. */
@Fluent
public final class JoinRequestProperties {
    /*
     * First Name
     */
    @JsonProperty(value = "firstName")
    private String firstName;

    /*
     * Last Name
     */
    @JsonProperty(value = "lastName")
    private String lastName;

    /*
     * join request email
     */
    @JsonProperty(value = "email")
    private String email;

    /*
     * Join request status
     */
    @JsonProperty(value = "status")
    private JoinRequestStatus status;

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

    /**
     * Get the firstName property: First Name.
     *
     * @return the firstName value.
     */
    public String firstName() {
        return this.firstName;
    }

    /**
     * Set the firstName property: First Name.
     *
     * @param firstName the firstName value to set.
     * @return the JoinRequestProperties object itself.
     */
    public JoinRequestProperties withFirstName(String firstName) {
        this.firstName = firstName;
        return this;
    }

    /**
     * Get the lastName property: Last Name.
     *
     * @return the lastName value.
     */
    public String lastName() {
        return this.lastName;
    }

    /**
     * Set the lastName property: Last Name.
     *
     * @param lastName the lastName value to set.
     * @return the JoinRequestProperties object itself.
     */
    public JoinRequestProperties withLastName(String lastName) {
        this.lastName = lastName;
        return this;
    }

    /**
     * Get the email property: join request email.
     *
     * @return the email value.
     */
    public String email() {
        return this.email;
    }

    /**
     * Set the email property: join request email.
     *
     * @param email the email value to set.
     * @return the JoinRequestProperties object itself.
     */
    public JoinRequestProperties withEmail(String email) {
        this.email = email;
        return this;
    }

    /**
     * Get the status property: Join request status.
     *
     * @return the status value.
     */
    public JoinRequestStatus status() {
        return this.status;
    }

    /**
     * Set the status property: Join request status.
     *
     * @param status the status value to set.
     * @return the JoinRequestProperties object itself.
     */
    public JoinRequestProperties withStatus(JoinRequestStatus status) {
        this.status = status;
        return this;
    }

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