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

/** The LinkConnectionSourceDatabaseTypeProperties model. */
@Fluent
public final class LinkConnectionSourceDatabaseTypeProperties {
    /*
     * Link connection source database server's resource id
     */
    @JsonProperty(value = "resourceId")
    private String resourceId;

    /*
     * Link connection source database server's principal id
     */
    @JsonProperty(value = "principalId")
    private String principalId;

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

    /**
     * Get the resourceId property: Link connection source database server's resource id.
     *
     * @return the resourceId value.
     */
    public String getResourceId() {
        return this.resourceId;
    }

    /**
     * Set the resourceId property: Link connection source database server's resource id.
     *
     * @param resourceId the resourceId value to set.
     * @return the LinkConnectionSourceDatabaseTypeProperties object itself.
     */
    public LinkConnectionSourceDatabaseTypeProperties setResourceId(String resourceId) {
        this.resourceId = resourceId;
        return this;
    }

    /**
     * Get the principalId property: Link connection source database server's principal id.
     *
     * @return the principalId value.
     */
    public String getPrincipalId() {
        return this.principalId;
    }

    /**
     * Set the principalId property: Link connection source database server's principal id.
     *
     * @param principalId the principalId value to set.
     * @return the LinkConnectionSourceDatabaseTypeProperties object itself.
     */
    public LinkConnectionSourceDatabaseTypeProperties setPrincipalId(String principalId) {
        this.principalId = principalId;
        return this;
    }
}
