// 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;
import java.util.List;
import java.util.Map;

/** SAP ODP Resource properties. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("SapOdpResource")
@JsonFlatten
@Fluent
public class SapOdpResourceDataset extends Dataset {
    /*
     * The context of the SAP ODP Object. Type: string (or Expression with resultType string).
     */
    @JsonProperty(value = "typeProperties.context", required = true)
    private Object context;

    /*
     * The name of the SAP ODP Object. Type: string (or Expression with resultType string).
     */
    @JsonProperty(value = "typeProperties.objectName", required = true)
    private Object objectName;

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

    /**
     * Get the context property: The context of the SAP ODP Object. Type: string (or Expression with resultType string).
     *
     * @return the context value.
     */
    public Object getContext() {
        return this.context;
    }

    /**
     * Set the context property: The context of the SAP ODP Object. Type: string (or Expression with resultType string).
     *
     * @param context the context value to set.
     * @return the SapOdpResourceDataset object itself.
     */
    public SapOdpResourceDataset setContext(Object context) {
        this.context = context;
        return this;
    }

    /**
     * Get the objectName property: The name of the SAP ODP Object. Type: string (or Expression with resultType string).
     *
     * @return the objectName value.
     */
    public Object getObjectName() {
        return this.objectName;
    }

    /**
     * Set the objectName property: The name of the SAP ODP Object. Type: string (or Expression with resultType string).
     *
     * @param objectName the objectName value to set.
     * @return the SapOdpResourceDataset object itself.
     */
    public SapOdpResourceDataset setObjectName(Object objectName) {
        this.objectName = objectName;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public SapOdpResourceDataset setDescription(String description) {
        super.setDescription(description);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public SapOdpResourceDataset setStructure(Object structure) {
        super.setStructure(structure);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public SapOdpResourceDataset setSchema(Object schema) {
        super.setSchema(schema);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public SapOdpResourceDataset setLinkedServiceName(LinkedServiceReference linkedServiceName) {
        super.setLinkedServiceName(linkedServiceName);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public SapOdpResourceDataset setParameters(Map<String, ParameterSpecification> parameters) {
        super.setParameters(parameters);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public SapOdpResourceDataset setAnnotations(List<Object> annotations) {
        super.setAnnotations(annotations);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public SapOdpResourceDataset setFolder(DatasetFolder folder) {
        super.setFolder(folder);
        return this;
    }
}
