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

/** Execute SQL pool stored procedure activity. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("SqlPoolStoredProcedure")
@JsonFlatten
@Fluent
public class SqlPoolStoredProcedureActivity extends Activity {
    /*
     * SQL pool stored procedure reference.
     */
    @JsonProperty(value = "sqlPool", required = true)
    private SqlPoolReference sqlPool;

    /*
     * Stored procedure name. Type: string (or Expression with resultType
     * string).
     */
    @JsonProperty(value = "typeProperties.storedProcedureName", required = true)
    private Object storedProcedureName;

    /*
     * Value and type setting for stored procedure parameters. Example:
     * "{Parameter1: {value: "1", type: "int"}}".
     */
    @JsonProperty(value = "typeProperties.storedProcedureParameters")
    private Map<String, StoredProcedureParameter> storedProcedureParameters;

    /**
     * Get the sqlPool property: SQL pool stored procedure reference.
     *
     * @return the sqlPool value.
     */
    public SqlPoolReference getSqlPool() {
        return this.sqlPool;
    }

    /**
     * Set the sqlPool property: SQL pool stored procedure reference.
     *
     * @param sqlPool the sqlPool value to set.
     * @return the SqlPoolStoredProcedureActivity object itself.
     */
    public SqlPoolStoredProcedureActivity setSqlPool(SqlPoolReference sqlPool) {
        this.sqlPool = sqlPool;
        return this;
    }

    /**
     * Get the storedProcedureName property: Stored procedure name. Type: string (or Expression with resultType string).
     *
     * @return the storedProcedureName value.
     */
    public Object getStoredProcedureName() {
        return this.storedProcedureName;
    }

    /**
     * Set the storedProcedureName property: Stored procedure name. Type: string (or Expression with resultType string).
     *
     * @param storedProcedureName the storedProcedureName value to set.
     * @return the SqlPoolStoredProcedureActivity object itself.
     */
    public SqlPoolStoredProcedureActivity setStoredProcedureName(Object storedProcedureName) {
        this.storedProcedureName = storedProcedureName;
        return this;
    }

    /**
     * Get the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example:
     * "{Parameter1: {value: "1", type: "int"}}".
     *
     * @return the storedProcedureParameters value.
     */
    public Map<String, StoredProcedureParameter> getStoredProcedureParameters() {
        return this.storedProcedureParameters;
    }

    /**
     * Set the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example:
     * "{Parameter1: {value: "1", type: "int"}}".
     *
     * @param storedProcedureParameters the storedProcedureParameters value to set.
     * @return the SqlPoolStoredProcedureActivity object itself.
     */
    public SqlPoolStoredProcedureActivity setStoredProcedureParameters(
            Map<String, StoredProcedureParameter> storedProcedureParameters) {
        this.storedProcedureParameters = storedProcedureParameters;
        return this;
    }
}