All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.iotoperations.inputs.DataFlowBuiltInTransformationMapArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.iotoperations.inputs;

import com.pulumi.azurenative.iotoperations.enums.DataFlowMappingType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * DataFlow BuiltIn Transformation map properties
 * 
 */
public final class DataFlowBuiltInTransformationMapArgs extends com.pulumi.resources.ResourceArgs {

    public static final DataFlowBuiltInTransformationMapArgs Empty = new DataFlowBuiltInTransformationMapArgs();

    /**
     * A user provided optional description of the mapping function.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A user provided optional description of the mapping function.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Modify the inputs field(s) to the final output field. Example: $1 * 2.2 (Assuming inputs section $1 is provided)
     * 
     */
    @Import(name="expression")
    private @Nullable Output expression;

    /**
     * @return Modify the inputs field(s) to the final output field. Example: $1 * 2.2 (Assuming inputs section $1 is provided)
     * 
     */
    public Optional> expression() {
        return Optional.ofNullable(this.expression);
    }

    /**
     * List of fields for mapping in JSON path expression.
     * 
     */
    @Import(name="inputs", required=true)
    private Output> inputs;

    /**
     * @return List of fields for mapping in JSON path expression.
     * 
     */
    public Output> inputs() {
        return this.inputs;
    }

    /**
     * Where and how the input fields to be organized in the output record.
     * 
     */
    @Import(name="output", required=true)
    private Output output;

    /**
     * @return Where and how the input fields to be organized in the output record.
     * 
     */
    public Output output() {
        return this.output;
    }

    /**
     * Type of transformation.
     * 
     */
    @Import(name="type")
    private @Nullable Output> type;

    /**
     * @return Type of transformation.
     * 
     */
    public Optional>> type() {
        return Optional.ofNullable(this.type);
    }

    private DataFlowBuiltInTransformationMapArgs() {}

    private DataFlowBuiltInTransformationMapArgs(DataFlowBuiltInTransformationMapArgs $) {
        this.description = $.description;
        this.expression = $.expression;
        this.inputs = $.inputs;
        this.output = $.output;
        this.type = $.type;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(DataFlowBuiltInTransformationMapArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private DataFlowBuiltInTransformationMapArgs $;

        public Builder() {
            $ = new DataFlowBuiltInTransformationMapArgs();
        }

        public Builder(DataFlowBuiltInTransformationMapArgs defaults) {
            $ = new DataFlowBuiltInTransformationMapArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param description A user provided optional description of the mapping function.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A user provided optional description of the mapping function.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param expression Modify the inputs field(s) to the final output field. Example: $1 * 2.2 (Assuming inputs section $1 is provided)
         * 
         * @return builder
         * 
         */
        public Builder expression(@Nullable Output expression) {
            $.expression = expression;
            return this;
        }

        /**
         * @param expression Modify the inputs field(s) to the final output field. Example: $1 * 2.2 (Assuming inputs section $1 is provided)
         * 
         * @return builder
         * 
         */
        public Builder expression(String expression) {
            return expression(Output.of(expression));
        }

        /**
         * @param inputs List of fields for mapping in JSON path expression.
         * 
         * @return builder
         * 
         */
        public Builder inputs(Output> inputs) {
            $.inputs = inputs;
            return this;
        }

        /**
         * @param inputs List of fields for mapping in JSON path expression.
         * 
         * @return builder
         * 
         */
        public Builder inputs(List inputs) {
            return inputs(Output.of(inputs));
        }

        /**
         * @param inputs List of fields for mapping in JSON path expression.
         * 
         * @return builder
         * 
         */
        public Builder inputs(String... inputs) {
            return inputs(List.of(inputs));
        }

        /**
         * @param output Where and how the input fields to be organized in the output record.
         * 
         * @return builder
         * 
         */
        public Builder output(Output output) {
            $.output = output;
            return this;
        }

        /**
         * @param output Where and how the input fields to be organized in the output record.
         * 
         * @return builder
         * 
         */
        public Builder output(String output) {
            return output(Output.of(output));
        }

        /**
         * @param type Type of transformation.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of transformation.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type Type of transformation.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type Type of transformation.
         * 
         * @return builder
         * 
         */
        public Builder type(DataFlowMappingType type) {
            return type(Either.ofRight(type));
        }

        public DataFlowBuiltInTransformationMapArgs build() {
            if ($.inputs == null) {
                throw new MissingRequiredPropertyException("DataFlowBuiltInTransformationMapArgs", "inputs");
            }
            if ($.output == null) {
                throw new MissingRequiredPropertyException("DataFlowBuiltInTransformationMapArgs", "output");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy