SqlServerStoredProcedureActivity.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;
/** SQL stored procedure activity type. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("SqlServerStoredProcedure")
@JsonFlatten
@Fluent
public class SqlServerStoredProcedureActivity extends ExecutionActivity {
/*
* 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 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 SqlServerStoredProcedureActivity object itself.
*/
public SqlServerStoredProcedureActivity 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 SqlServerStoredProcedureActivity object itself.
*/
public SqlServerStoredProcedureActivity setStoredProcedureParameters(
Map<String, StoredProcedureParameter> storedProcedureParameters) {
this.storedProcedureParameters = storedProcedureParameters;
return this;
}
}