// 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 LinkTableResource model. */
@Fluent
public final class LinkTableResource {
    /*
     * Link table id
     */
    @JsonProperty(value = "id")
    private String id;

    /*
     * Link table name
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * Source table properties for link table request
     */
    @JsonProperty(value = "source")
    private LinkTableRequestSource source;

    /*
     * Target table properties for link table request
     */
    @JsonProperty(value = "target")
    private LinkTableRequestTarget target;

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

    /**
     * Get the id property: Link table id.
     *
     * @return the id value.
     */
    public String getId() {
        return this.id;
    }

    /**
     * Set the id property: Link table id.
     *
     * @param id the id value to set.
     * @return the LinkTableResource object itself.
     */
    public LinkTableResource setId(String id) {
        this.id = id;
        return this;
    }

    /**
     * Get the name property: Link table name.
     *
     * @return the name value.
     */
    public String getName() {
        return this.name;
    }

    /**
     * Set the name property: Link table name.
     *
     * @param name the name value to set.
     * @return the LinkTableResource object itself.
     */
    public LinkTableResource setName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the source property: Source table properties for link table request.
     *
     * @return the source value.
     */
    public LinkTableRequestSource getSource() {
        return this.source;
    }

    /**
     * Set the source property: Source table properties for link table request.
     *
     * @param source the source value to set.
     * @return the LinkTableResource object itself.
     */
    public LinkTableResource setSource(LinkTableRequestSource source) {
        this.source = source;
        return this;
    }

    /**
     * Get the target property: Target table properties for link table request.
     *
     * @return the target value.
     */
    public LinkTableRequestTarget getTarget() {
        return this.target;
    }

    /**
     * Set the target property: Target table properties for link table request.
     *
     * @param target the target value to set.
     * @return the LinkTableResource object itself.
     */
    public LinkTableResource setTarget(LinkTableRequestTarget target) {
        this.target = target;
        return this;
    }
}
