MongoDbCollectionDataset.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.azure.core.annotation.JsonFlatten;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** The MongoDB database dataset. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("MongoDbCollection")
@JsonFlatten
@Fluent
public class MongoDbCollectionDataset extends Dataset {
    /*
     * The table name of the MongoDB database. Type: string (or Expression with
     * resultType string).
     */
    @JsonProperty(value = "typeProperties.collectionName", required = true)
    private Object collectionName;

    /**
     * Get the collectionName property: The table name of the MongoDB database. Type: string (or Expression with
     * resultType string).
     *
     * @return the collectionName value.
     */
    public Object getCollectionName() {
        return this.collectionName;
    }

    /**
     * Set the collectionName property: The table name of the MongoDB database. Type: string (or Expression with
     * resultType string).
     *
     * @param collectionName the collectionName value to set.
     * @return the MongoDbCollectionDataset object itself.
     */
    public MongoDbCollectionDataset setCollectionName(Object collectionName) {
        this.collectionName = collectionName;
        return this;
    }
}