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

package com.azure.analytics.synapse.artifacts.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Self-hosted integration runtime. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("SelfHosted")
@JsonFlatten
@Fluent
public class SelfHostedIntegrationRuntime extends IntegrationRuntime {
    /*
     * Linked integration runtime type from data factory
     */
    @JsonProperty(value = "typeProperties.linkedInfo")
    private LinkedIntegrationRuntimeType linkedInfo;

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

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

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

    /** {@inheritDoc} */
    @Override
    public SelfHostedIntegrationRuntime setDescription(String description) {
        super.setDescription(description);
        return this;
    }
}
