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

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

There is a newer version: 2.72.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.TransformationSerializationFormat;
import com.pulumi.azurenative.iotoperations.inputs.DataFlowBuiltInTransformationDatasetArgs;
import com.pulumi.azurenative.iotoperations.inputs.DataFlowBuiltInTransformationFilterArgs;
import com.pulumi.azurenative.iotoperations.inputs.DataFlowBuiltInTransformationMapArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DataFlowBuiltInTransformationArgs Empty = new DataFlowBuiltInTransformationArgs();

    /**
     * Enrich data from Broker State Store. Dataset references a key in Broker State Store.
     * 
     */
    @Import(name="datasets")
    private @Nullable Output> datasets;

    /**
     * @return Enrich data from Broker State Store. Dataset references a key in Broker State Store.
     * 
     */
    public Optional>> datasets() {
        return Optional.ofNullable(this.datasets);
    }

    /**
     * Filters input record or datapoints based on condition.
     * 
     */
    @Import(name="filter")
    private @Nullable Output> filter;

    /**
     * @return Filters input record or datapoints based on condition.
     * 
     */
    public Optional>> filter() {
        return Optional.ofNullable(this.filter);
    }

    /**
     * Maps input to output message.
     * 
     */
    @Import(name="map")
    private @Nullable Output> map;

    /**
     * @return Maps input to output message.
     * 
     */
    public Optional>> map() {
        return Optional.ofNullable(this.map);
    }

    /**
     * Reference to the schema that describes the output of the transformation.
     * 
     */
    @Import(name="schemaRef")
    private @Nullable Output schemaRef;

    /**
     * @return Reference to the schema that describes the output of the transformation.
     * 
     */
    public Optional> schemaRef() {
        return Optional.ofNullable(this.schemaRef);
    }

    /**
     * Serialization format. Optional; defaults to JSON. Allowed value JSON Schema/draft-7, Parquet. Default: Json
     * 
     */
    @Import(name="serializationFormat")
    private @Nullable Output> serializationFormat;

    /**
     * @return Serialization format. Optional; defaults to JSON. Allowed value JSON Schema/draft-7, Parquet. Default: Json
     * 
     */
    public Optional>> serializationFormat() {
        return Optional.ofNullable(this.serializationFormat);
    }

    private DataFlowBuiltInTransformationArgs() {}

    private DataFlowBuiltInTransformationArgs(DataFlowBuiltInTransformationArgs $) {
        this.datasets = $.datasets;
        this.filter = $.filter;
        this.map = $.map;
        this.schemaRef = $.schemaRef;
        this.serializationFormat = $.serializationFormat;
    }

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

    public static final class Builder {
        private DataFlowBuiltInTransformationArgs $;

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

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

        /**
         * @param datasets Enrich data from Broker State Store. Dataset references a key in Broker State Store.
         * 
         * @return builder
         * 
         */
        public Builder datasets(@Nullable Output> datasets) {
            $.datasets = datasets;
            return this;
        }

        /**
         * @param datasets Enrich data from Broker State Store. Dataset references a key in Broker State Store.
         * 
         * @return builder
         * 
         */
        public Builder datasets(List datasets) {
            return datasets(Output.of(datasets));
        }

        /**
         * @param datasets Enrich data from Broker State Store. Dataset references a key in Broker State Store.
         * 
         * @return builder
         * 
         */
        public Builder datasets(DataFlowBuiltInTransformationDatasetArgs... datasets) {
            return datasets(List.of(datasets));
        }

        /**
         * @param filter Filters input record or datapoints based on condition.
         * 
         * @return builder
         * 
         */
        public Builder filter(@Nullable Output> filter) {
            $.filter = filter;
            return this;
        }

        /**
         * @param filter Filters input record or datapoints based on condition.
         * 
         * @return builder
         * 
         */
        public Builder filter(List filter) {
            return filter(Output.of(filter));
        }

        /**
         * @param filter Filters input record or datapoints based on condition.
         * 
         * @return builder
         * 
         */
        public Builder filter(DataFlowBuiltInTransformationFilterArgs... filter) {
            return filter(List.of(filter));
        }

        /**
         * @param map Maps input to output message.
         * 
         * @return builder
         * 
         */
        public Builder map(@Nullable Output> map) {
            $.map = map;
            return this;
        }

        /**
         * @param map Maps input to output message.
         * 
         * @return builder
         * 
         */
        public Builder map(List map) {
            return map(Output.of(map));
        }

        /**
         * @param map Maps input to output message.
         * 
         * @return builder
         * 
         */
        public Builder map(DataFlowBuiltInTransformationMapArgs... map) {
            return map(List.of(map));
        }

        /**
         * @param schemaRef Reference to the schema that describes the output of the transformation.
         * 
         * @return builder
         * 
         */
        public Builder schemaRef(@Nullable Output schemaRef) {
            $.schemaRef = schemaRef;
            return this;
        }

        /**
         * @param schemaRef Reference to the schema that describes the output of the transformation.
         * 
         * @return builder
         * 
         */
        public Builder schemaRef(String schemaRef) {
            return schemaRef(Output.of(schemaRef));
        }

        /**
         * @param serializationFormat Serialization format. Optional; defaults to JSON. Allowed value JSON Schema/draft-7, Parquet. Default: Json
         * 
         * @return builder
         * 
         */
        public Builder serializationFormat(@Nullable Output> serializationFormat) {
            $.serializationFormat = serializationFormat;
            return this;
        }

        /**
         * @param serializationFormat Serialization format. Optional; defaults to JSON. Allowed value JSON Schema/draft-7, Parquet. Default: Json
         * 
         * @return builder
         * 
         */
        public Builder serializationFormat(Either serializationFormat) {
            return serializationFormat(Output.of(serializationFormat));
        }

        /**
         * @param serializationFormat Serialization format. Optional; defaults to JSON. Allowed value JSON Schema/draft-7, Parquet. Default: Json
         * 
         * @return builder
         * 
         */
        public Builder serializationFormat(String serializationFormat) {
            return serializationFormat(Either.ofLeft(serializationFormat));
        }

        /**
         * @param serializationFormat Serialization format. Optional; defaults to JSON. Allowed value JSON Schema/draft-7, Parquet. Default: Json
         * 
         * @return builder
         * 
         */
        public Builder serializationFormat(TransformationSerializationFormat serializationFormat) {
            return serializationFormat(Either.ofRight(serializationFormat));
        }

        public DataFlowBuiltInTransformationArgs build() {
            $.serializationFormat = Codegen.stringProp("serializationFormat").left(TransformationSerializationFormat.class).output().arg($.serializationFormat).def("Json").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy