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

package com.azure.resourcemanager.imagebuilder.models;

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

/** Describes a virtual machine image source for building, customizing and distributing. */
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    include = JsonTypeInfo.As.PROPERTY,
    property = "type",
    defaultImpl = ImageTemplateSource.class)
@JsonTypeName("ImageTemplateSource")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "PlatformImage", value = ImageTemplatePlatformImageSource.class),
    @JsonSubTypes.Type(name = "ManagedImage", value = ImageTemplateManagedImageSource.class),
    @JsonSubTypes.Type(name = "SharedImageVersion", value = ImageTemplateSharedImageVersionSource.class)
})
@Immutable
public class ImageTemplateSource {
    /** Creates an instance of ImageTemplateSource class. */
    public ImageTemplateSource() {
    }

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