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

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

import com.azure.core.annotation.Immutable;
import com.azure.resourcemanager.scvmm.models.CloudInventoryItem;
import com.azure.resourcemanager.scvmm.models.VirtualMachineInventoryItem;
import com.azure.resourcemanager.scvmm.models.VirtualMachineTemplateInventoryItem;
import com.azure.resourcemanager.scvmm.models.VirtualNetworkInventoryItem;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Defines the resource properties. */
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    include = JsonTypeInfo.As.PROPERTY,
    property = "inventoryType",
    defaultImpl = InventoryItemProperties.class)
@JsonTypeName("InventoryItemProperties")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "Cloud", value = CloudInventoryItem.class),
    @JsonSubTypes.Type(name = "VirtualNetwork", value = VirtualNetworkInventoryItem.class),
    @JsonSubTypes.Type(name = "VirtualMachineTemplate", value = VirtualMachineTemplateInventoryItem.class),
    @JsonSubTypes.Type(name = "VirtualMachine", value = VirtualMachineInventoryItem.class)
})
@Immutable
public class InventoryItemProperties {
    /*
     * Gets the tracked resource id corresponding to the inventory resource.
     */
    @JsonProperty(value = "managedResourceId", access = JsonProperty.Access.WRITE_ONLY)
    private String managedResourceId;

    /*
     * Gets the UUID (which is assigned by VMM) for the inventory item.
     */
    @JsonProperty(value = "uuid", access = JsonProperty.Access.WRITE_ONLY)
    private String uuid;

    /*
     * Gets the Managed Object name in VMM for the inventory item.
     */
    @JsonProperty(value = "inventoryItemName", access = JsonProperty.Access.WRITE_ONLY)
    private String inventoryItemName;

    /*
     * Gets the provisioning state.
     */
    @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
    private String provisioningState;

    /**
     * Get the managedResourceId property: Gets the tracked resource id corresponding to the inventory resource.
     *
     * @return the managedResourceId value.
     */
    public String managedResourceId() {
        return this.managedResourceId;
    }

    /**
     * Get the uuid property: Gets the UUID (which is assigned by VMM) for the inventory item.
     *
     * @return the uuid value.
     */
    public String uuid() {
        return this.uuid;
    }

    /**
     * Get the inventoryItemName property: Gets the Managed Object name in VMM for the inventory item.
     *
     * @return the inventoryItemName value.
     */
    public String inventoryItemName() {
        return this.inventoryItemName;
    }

    /**
     * Get the provisioningState property: Gets the provisioning state.
     *
     * @return the provisioningState value.
     */
    public String provisioningState() {
        return this.provisioningState;
    }

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