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

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** The properties of an addon. */
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    include = JsonTypeInfo.As.PROPERTY,
    property = "addonType",
    defaultImpl = AddonProperties.class)
@JsonTypeName("AddonProperties")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "SRM", value = AddonSrmProperties.class),
    @JsonSubTypes.Type(name = "VR", value = AddonVrProperties.class),
    @JsonSubTypes.Type(name = "HCX", value = AddonHcxProperties.class),
    @JsonSubTypes.Type(name = "Arc", value = AddonArcProperties.class)
})
@Immutable
public class AddonProperties {
    /*
     * The state of the addon provisioning
     */
    @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
    private AddonProvisioningState provisioningState;

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

    /**
     * Get the provisioningState property: The state of the addon provisioning.
     *
     * @return the provisioningState value.
     */
    public AddonProvisioningState provisioningState() {
        return this.provisioningState;
    }

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