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

package com.azure.resourcemanager.avs.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.avs.models.VMTypeEnum;
import com.fasterxml.jackson.annotation.JsonProperty;

/** NSX Virtual Machine Properties. */
@Fluent
public final class WorkloadNetworkVirtualMachineProperties {
    /*
     * Display name of the VM.
     */
    @JsonProperty(value = "displayName")
    private String displayName;

    /*
     * Virtual machine type.
     */
    @JsonProperty(value = "vmType", access = JsonProperty.Access.WRITE_ONLY)
    private VMTypeEnum vmType;

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

    /**
     * Get the displayName property: Display name of the VM.
     *
     * @return the displayName value.
     */
    public String displayName() {
        return this.displayName;
    }

    /**
     * Set the displayName property: Display name of the VM.
     *
     * @param displayName the displayName value to set.
     * @return the WorkloadNetworkVirtualMachineProperties object itself.
     */
    public WorkloadNetworkVirtualMachineProperties withDisplayName(String displayName) {
        this.displayName = displayName;
        return this;
    }

    /**
     * Get the vmType property: Virtual machine type.
     *
     * @return the vmType value.
     */
    public VMTypeEnum vmType() {
        return this.vmType;
    }

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