// 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.LinkedIntegrationRuntimeType;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The self-hosted integration runtime properties. */
@Fluent
public final class SelfHostedIntegrationRuntimeTypeProperties {
    /*
     * Linked integration runtime type from data factory
     */
    @JsonProperty(value = "linkedInfo")
    private LinkedIntegrationRuntimeType linkedInfo;

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

    /**
     * Get the linkedInfo property: Linked integration runtime type from data factory.
     *
     * @return the linkedInfo value.
     */
    public LinkedIntegrationRuntimeType linkedInfo() {
        return this.linkedInfo;
    }

    /**
     * Set the linkedInfo property: Linked integration runtime type from data factory.
     *
     * @param linkedInfo the linkedInfo value to set.
     * @return the SelfHostedIntegrationRuntimeTypeProperties object itself.
     */
    public SelfHostedIntegrationRuntimeTypeProperties withLinkedInfo(LinkedIntegrationRuntimeType linkedInfo) {
        this.linkedInfo = linkedInfo;
        return this;
    }

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