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

package com.azure.resourcemanager.machinelearning.models;

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

/** The VirtualMachineSecretsSchema model. */
@Fluent
public class VirtualMachineSecretsSchema {
    /*
     * Admin credentials for virtual machine.
     */
    @JsonProperty(value = "administratorAccount")
    private VirtualMachineSshCredentials administratorAccount;

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

    /**
     * Get the administratorAccount property: Admin credentials for virtual machine.
     *
     * @return the administratorAccount value.
     */
    public VirtualMachineSshCredentials administratorAccount() {
        return this.administratorAccount;
    }

    /**
     * Set the administratorAccount property: Admin credentials for virtual machine.
     *
     * @param administratorAccount the administratorAccount value to set.
     * @return the VirtualMachineSecretsSchema object itself.
     */
    public VirtualMachineSecretsSchema withAdministratorAccount(VirtualMachineSshCredentials administratorAccount) {
        this.administratorAccount = administratorAccount;
        return this;
    }

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