
com.pulumi.azurenative.datafactory.outputs.ScriptActivityScriptBlockResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.datafactory.outputs;
import com.pulumi.azurenative.datafactory.outputs.ScriptActivityParameterResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class ScriptActivityScriptBlockResponse {
/**
* @return Array of script parameters. Type: array.
*
*/
private @Nullable List parameters;
/**
* @return The query text. Type: string (or Expression with resultType string).
*
*/
private Object text;
/**
* @return The type of the query. Please refer to the ScriptType for valid options. Type: string (or Expression with resultType string).
*
*/
private Object type;
private ScriptActivityScriptBlockResponse() {}
/**
* @return Array of script parameters. Type: array.
*
*/
public List parameters() {
return this.parameters == null ? List.of() : this.parameters;
}
/**
* @return The query text. Type: string (or Expression with resultType string).
*
*/
public Object text() {
return this.text;
}
/**
* @return The type of the query. Please refer to the ScriptType for valid options. Type: string (or Expression with resultType string).
*
*/
public Object type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ScriptActivityScriptBlockResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List parameters;
private Object text;
private Object type;
public Builder() {}
public Builder(ScriptActivityScriptBlockResponse defaults) {
Objects.requireNonNull(defaults);
this.parameters = defaults.parameters;
this.text = defaults.text;
this.type = defaults.type;
}
@CustomType.Setter
public Builder parameters(@Nullable List parameters) {
this.parameters = parameters;
return this;
}
public Builder parameters(ScriptActivityParameterResponse... parameters) {
return parameters(List.of(parameters));
}
@CustomType.Setter
public Builder text(Object text) {
if (text == null) {
throw new MissingRequiredPropertyException("ScriptActivityScriptBlockResponse", "text");
}
this.text = text;
return this;
}
@CustomType.Setter
public Builder type(Object type) {
if (type == null) {
throw new MissingRequiredPropertyException("ScriptActivityScriptBlockResponse", "type");
}
this.type = type;
return this;
}
public ScriptActivityScriptBlockResponse build() {
final var _resultValue = new ScriptActivityScriptBlockResponse();
_resultValue.parameters = parameters;
_resultValue.text = text;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy