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

package com.azure.resourcemanager.desktopvirtualization.models;

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

/** Represents message sent to a UserSession. */
@Fluent
public final class SendMessage {
    /*
     * Title of message.
     */
    @JsonProperty(value = "messageTitle")
    private String messageTitle;

    /*
     * Body of message.
     */
    @JsonProperty(value = "messageBody")
    private String messageBody;

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

    /**
     * Get the messageTitle property: Title of message.
     *
     * @return the messageTitle value.
     */
    public String messageTitle() {
        return this.messageTitle;
    }

    /**
     * Set the messageTitle property: Title of message.
     *
     * @param messageTitle the messageTitle value to set.
     * @return the SendMessage object itself.
     */
    public SendMessage withMessageTitle(String messageTitle) {
        this.messageTitle = messageTitle;
        return this;
    }

    /**
     * Get the messageBody property: Body of message.
     *
     * @return the messageBody value.
     */
    public String messageBody() {
        return this.messageBody;
    }

    /**
     * Set the messageBody property: Body of message.
     *
     * @param messageBody the messageBody value to set.
     * @return the SendMessage object itself.
     */
    public SendMessage withMessageBody(String messageBody) {
        this.messageBody = messageBody;
        return this;
    }

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