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

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

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.datafactory.models.LinkedIntegrationRuntimeType;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The self-hosted integration runtime properties. */
@Fluent
public final class SelfHostedIntegrationRuntimeTypeProperties {
    /*
     * The base definition of a linked integration runtime.
     */
    @JsonProperty(value = "linkedInfo")
    private LinkedIntegrationRuntimeType linkedInfo;

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

    /**
     * Get the linkedInfo property: The base definition of a linked integration runtime.
     *
     * @return the linkedInfo value.
     */
    public LinkedIntegrationRuntimeType linkedInfo() {
        return this.linkedInfo;
    }

    /**
     * Set the linkedInfo property: The base definition of a linked integration runtime.
     *
     * @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();
        }
    }
}
