// 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;

/** Terminal server patch parameters. */
@Fluent
public class TerminalServerPatchParameters {
    /*
     * Network and credentials configuration already applied to terminal server.
     */
    @JsonProperty(value = "terminalServerConfiguration")
    private TerminalServerPatchableProperties terminalServerConfiguration;

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

    /**
     * Get the terminalServerConfiguration property: Network and credentials configuration already applied to terminal
     * server.
     *
     * @return the terminalServerConfiguration value.
     */
    public TerminalServerPatchableProperties terminalServerConfiguration() {
        return this.terminalServerConfiguration;
    }

    /**
     * Set the terminalServerConfiguration property: Network and credentials configuration already applied to terminal
     * server.
     *
     * @param terminalServerConfiguration the terminalServerConfiguration value to set.
     * @return the TerminalServerPatchParameters object itself.
     */
    public TerminalServerPatchParameters withTerminalServerConfiguration(
        TerminalServerPatchableProperties terminalServerConfiguration) {
        this.terminalServerConfiguration = terminalServerConfiguration;
        return this;
    }

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