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

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

    /*
     * Value to be appended. 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 appended to.
     *
     * @return the variableName value.
     */
    public String getVariableName() {
        return this.variableName;
    }

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

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

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