// 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.fluent.models;

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

/** SessionHost properties that can be patched. */
@Fluent
public final class SessionHostPatchProperties {
    /*
     * Allow a new session.
     */
    @JsonProperty(value = "allowNewSession")
    private Boolean allowNewSession;

    /*
     * User assigned to SessionHost.
     */
    @JsonProperty(value = "assignedUser")
    private String assignedUser;

    /*
     * Friendly name of SessionHost
     */
    @JsonProperty(value = "friendlyName")
    private String friendlyName;

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

    /**
     * Get the allowNewSession property: Allow a new session.
     *
     * @return the allowNewSession value.
     */
    public Boolean allowNewSession() {
        return this.allowNewSession;
    }

    /**
     * Set the allowNewSession property: Allow a new session.
     *
     * @param allowNewSession the allowNewSession value to set.
     * @return the SessionHostPatchProperties object itself.
     */
    public SessionHostPatchProperties withAllowNewSession(Boolean allowNewSession) {
        this.allowNewSession = allowNewSession;
        return this;
    }

    /**
     * Get the assignedUser property: User assigned to SessionHost.
     *
     * @return the assignedUser value.
     */
    public String assignedUser() {
        return this.assignedUser;
    }

    /**
     * Set the assignedUser property: User assigned to SessionHost.
     *
     * @param assignedUser the assignedUser value to set.
     * @return the SessionHostPatchProperties object itself.
     */
    public SessionHostPatchProperties withAssignedUser(String assignedUser) {
        this.assignedUser = assignedUser;
        return this;
    }

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

    /**
     * Set the friendlyName property: Friendly name of SessionHost.
     *
     * @param friendlyName the friendlyName value to set.
     * @return the SessionHostPatchProperties object itself.
     */
    public SessionHostPatchProperties withFriendlyName(String friendlyName) {
        this.friendlyName = friendlyName;
        return this;
    }

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