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

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

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.synapse.models.IntegrationRuntimeComputeProperties;
import com.azure.resourcemanager.synapse.models.IntegrationRuntimeSsisProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Managed integration runtime type properties. */
@Fluent
public final class ManagedIntegrationRuntimeTypeProperties {
    /*
     * The compute resource for managed integration runtime.
     */
    @JsonProperty(value = "computeProperties")
    private IntegrationRuntimeComputeProperties computeProperties;

    /*
     * SSIS properties for managed integration runtime.
     */
    @JsonProperty(value = "ssisProperties")
    private IntegrationRuntimeSsisProperties ssisProperties;

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

    /**
     * Get the computeProperties property: The compute resource for managed integration runtime.
     *
     * @return the computeProperties value.
     */
    public IntegrationRuntimeComputeProperties computeProperties() {
        return this.computeProperties;
    }

    /**
     * Set the computeProperties property: The compute resource for managed integration runtime.
     *
     * @param computeProperties the computeProperties value to set.
     * @return the ManagedIntegrationRuntimeTypeProperties object itself.
     */
    public ManagedIntegrationRuntimeTypeProperties withComputeProperties(
        IntegrationRuntimeComputeProperties computeProperties) {
        this.computeProperties = computeProperties;
        return this;
    }

    /**
     * Get the ssisProperties property: SSIS properties for managed integration runtime.
     *
     * @return the ssisProperties value.
     */
    public IntegrationRuntimeSsisProperties ssisProperties() {
        return this.ssisProperties;
    }

    /**
     * Set the ssisProperties property: SSIS properties for managed integration runtime.
     *
     * @param ssisProperties the ssisProperties value to set.
     * @return the ManagedIntegrationRuntimeTypeProperties object itself.
     */
    public ManagedIntegrationRuntimeTypeProperties withSsisProperties(IntegrationRuntimeSsisProperties ssisProperties) {
        this.ssisProperties = ssisProperties;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (computeProperties() != null) {
            computeProperties().validate();
        }
        if (ssisProperties() != null) {
            ssisProperties().validate();
        }
    }
}
