SetVariableActivity.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;

/** Set value for a Variable. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("SetVariable")
@JsonFlatten
@Fluent
public class SetVariableActivity extends ControlActivity {
    /*
     * Name of the variable whose value needs to be set.
     */
    @JsonProperty(value = "typeProperties.variableName")
    private String variableName;

    /*
     * Value to be set. Could be a static value or Expression
     */
    @JsonProperty(value = "typeProperties.value")
    private Object value;

    /**
     * Get the variableName property: Name of the variable whose value needs to be set.
     *
     * @return the variableName value.
     */
    public String getVariableName() {
        return this.variableName;
    }

    /**
     * Set the variableName property: Name of the variable whose value needs to be set.
     *
     * @param variableName the variableName value to set.
     * @return the SetVariableActivity object itself.
     */
    public SetVariableActivity setVariableName(String variableName) {
        this.variableName = variableName;
        return this;
    }

    /**
     * Get the value property: Value to be set. Could be a static value or Expression.
     *
     * @return the value value.
     */
    public Object getValue() {
        return this.value;
    }

    /**
     * Set the value property: Value to be set. Could be a static value or Expression.
     *
     * @param value the value value to set.
     * @return the SetVariableActivity object itself.
     */
    public SetVariableActivity setValue(Object value) {
        this.value = value;
        return this;
    }
}