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

package com.azure.resourcemanager.streamanalytics.models;

import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Describes the data source that output will be written to. */
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    include = JsonTypeInfo.As.PROPERTY,
    property = "type",
    defaultImpl = OutputDataSource.class)
@JsonTypeName("OutputDataSource")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "Microsoft.Storage/Blob", value = BlobOutputDataSource.class),
    @JsonSubTypes.Type(name = "Microsoft.Storage/Table", value = AzureTableOutputDataSource.class),
    @JsonSubTypes.Type(name = "Microsoft.ServiceBus/EventHub", value = EventHubOutputDataSource.class),
    @JsonSubTypes.Type(name = "Microsoft.EventHub/EventHub", value = EventHubV2OutputDataSource.class),
    @JsonSubTypes.Type(name = "Microsoft.Sql/Server/Database", value = AzureSqlDatabaseOutputDataSource.class),
    @JsonSubTypes.Type(name = "Microsoft.Sql/Server/DataWarehouse", value = AzureSynapseOutputDataSource.class),
    @JsonSubTypes.Type(name = "Microsoft.Storage/DocumentDB", value = DocumentDbOutputDataSource.class),
    @JsonSubTypes.Type(name = "Microsoft.ServiceBus/Queue", value = ServiceBusQueueOutputDataSource.class),
    @JsonSubTypes.Type(name = "Microsoft.ServiceBus/Topic", value = ServiceBusTopicOutputDataSource.class),
    @JsonSubTypes.Type(name = "PowerBI", value = PowerBIOutputDataSource.class),
    @JsonSubTypes.Type(name = "Microsoft.DataLake/Accounts", value = AzureDataLakeStoreOutputDataSource.class)
})
@Immutable
public class OutputDataSource {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(OutputDataSource.class);

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