// 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;

/**
 * A class for sent share artifact.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "storeKind", defaultImpl = Artifact.class)
@JsonTypeName("Artifact")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "AdlsGen2Account", value = AdlsGen2Artifact.class),
    @JsonSubTypes.Type(name = "BlobAccount", value = BlobStorageArtifact.class)
})
@Fluent
public class Artifact {
    /*
     * A Store Reference for an artifact or sink.
     */
    @JsonProperty(value = "storeReference", required = true)
    private StoreReference storeReference;

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

    /**
     * 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 Artifact object itself.
     */
    public Artifact setStoreReference(StoreReference storeReference) {
        this.storeReference = storeReference;
        return this;
    }
}
