JsonSink.java

// 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;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** A copy activity Json sink. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("JsonSink")
@Fluent
public final class JsonSink extends CopySink {
    /*
     * Json store settings.
     */
    @JsonProperty(value = "storeSettings")
    private StoreWriteSettings storeSettings;

    /*
     * Json format settings.
     */
    @JsonProperty(value = "formatSettings")
    private JsonWriteSettings formatSettings;

    /**
     * Get the storeSettings property: Json store settings.
     *
     * @return the storeSettings value.
     */
    public StoreWriteSettings getStoreSettings() {
        return this.storeSettings;
    }

    /**
     * Set the storeSettings property: Json store settings.
     *
     * @param storeSettings the storeSettings value to set.
     * @return the JsonSink object itself.
     */
    public JsonSink setStoreSettings(StoreWriteSettings storeSettings) {
        this.storeSettings = storeSettings;
        return this;
    }

    /**
     * Get the formatSettings property: Json format settings.
     *
     * @return the formatSettings value.
     */
    public JsonWriteSettings getFormatSettings() {
        return this.formatSettings;
    }

    /**
     * Set the formatSettings property: Json format settings.
     *
     * @param formatSettings the formatSettings value to set.
     * @return the JsonSink object itself.
     */
    public JsonSink setFormatSettings(JsonWriteSettings formatSettings) {
        this.formatSettings = formatSettings;
        return this;
    }
}