MongoDbV2CollectionDataset.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("MongoDbV2Collection")
@JsonFlatten
@Fluent
public class MongoDbV2CollectionDataset extends Dataset {
/*
* The collection name of the MongoDB database. Type: string (or Expression
* with resultType string).
*/
@JsonProperty(value = "typeProperties.collection", required = true)
private Object collection;
/**
* Get the collection property: The collection name of the MongoDB database. Type: string (or Expression with
* resultType string).
*
* @return the collection value.
*/
public Object getCollection() {
return this.collection;
}
/**
* Set the collection property: The collection name of the MongoDB database. Type: string (or Expression with
* resultType string).
*
* @param collection the collection value to set.
* @return the MongoDbV2CollectionDataset object itself.
*/
public MongoDbV2CollectionDataset setCollection(Object collection) {
this.collection = collection;
return this;
}
}