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

package com.azure.analytics.purview.sharing.models;

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

/**
 * Holds details on the destination of the mapped artifact.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "storeKind", defaultImpl = Sink.class)
@JsonTypeName("Sink")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "AdlsGen2Account", value = AdlsGen2AccountSink.class),
    @JsonSubTypes.Type(name = "BlobAccount", value = BlobAccountSink.class)
})
@Fluent
public class Sink {
    /*
     * A Store Reference for an artifact or sink.
     */
    @JsonProperty(value = "storeReference", required = true)
    private StoreReference storeReference;

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

    /**
     * Get the storeReference property: A Store Reference for an artifact or sink.
     * 
     * @return the storeReference value.
     */
    public StoreReference getStoreReference() {
        return this.storeReference;
    }

    /**
     * Set the storeReference property: A Store Reference for an artifact or sink.
     * 
     * @param storeReference the storeReference value to set.
     * @return the Sink object itself.
     */
    public Sink setStoreReference(StoreReference storeReference) {
        this.storeReference = storeReference;
        return this;
    }
}
