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

package com.azure.resourcemanager.databox.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;

/** Minimum fields that must be present in any type of validation request. */
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    include = JsonTypeInfo.As.PROPERTY,
    property = "validationType",
    defaultImpl = ValidationInputRequest.class)
@JsonTypeName("ValidationInputRequest")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "ValidateAddress", value = ValidateAddress.class),
    @JsonSubTypes.Type(
        name = "ValidateCreateOrderLimit",
        value = CreateOrderLimitForSubscriptionValidationRequest.class),
    @JsonSubTypes.Type(name = "ValidateDataTransferDetails", value = DataTransferDetailsValidationRequest.class),
    @JsonSubTypes.Type(name = "ValidatePreferences", value = PreferencesValidationRequest.class),
    @JsonSubTypes.Type(name = "ValidateSkuAvailability", value = SkuAvailabilityValidationRequest.class),
    @JsonSubTypes.Type(
        name = "ValidateSubscriptionIsAllowedToCreateJob",
        value = SubscriptionIsAllowedToCreateJobValidationRequest.class)
})
@Immutable
public class ValidationInputRequest {
    /** Creates an instance of ValidationInputRequest class. */
    public ValidationInputRequest() {
    }

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