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

package com.azure.resourcemanager.managednetworkfabric.models;

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

/** Network and credential configuration currently applied on terminal server. */
@Fluent
public class TerminalServerPatchableProperties {
    /*
     * Username for the terminal server connection.
     */
    @JsonProperty(value = "username")
    private String username;

    /*
     * Password for the terminal server connection.
     */
    @JsonProperty(value = "password")
    private String password;

    /*
     * Serial Number of Terminal server.
     */
    @JsonProperty(value = "serialNumber")
    private String serialNumber;

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

    /**
     * Get the username property: Username for the terminal server connection.
     *
     * @return the username value.
     */
    public String username() {
        return this.username;
    }

    /**
     * Set the username property: Username for the terminal server connection.
     *
     * @param username the username value to set.
     * @return the TerminalServerPatchableProperties object itself.
     */
    public TerminalServerPatchableProperties withUsername(String username) {
        this.username = username;
        return this;
    }

    /**
     * Get the password property: Password for the terminal server connection.
     *
     * @return the password value.
     */
    public String password() {
        return this.password;
    }

    /**
     * Set the password property: Password for the terminal server connection.
     *
     * @param password the password value to set.
     * @return the TerminalServerPatchableProperties object itself.
     */
    public TerminalServerPatchableProperties withPassword(String password) {
        this.password = password;
        return this;
    }

    /**
     * Get the serialNumber property: Serial Number of Terminal server.
     *
     * @return the serialNumber value.
     */
    public String serialNumber() {
        return this.serialNumber;
    }

    /**
     * Set the serialNumber property: Serial Number of Terminal server.
     *
     * @param serialNumber the serialNumber value to set.
     * @return the TerminalServerPatchableProperties object itself.
     */
    public TerminalServerPatchableProperties withSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
        return this;
    }

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