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

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

// *** 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.OperationType;
import com.pulumi.azurenative.iotoperations.inputs.DataFlowBuiltInTransformationArgs;
import com.pulumi.azurenative.iotoperations.inputs.DataFlowDestinationOperationArgs;
import com.pulumi.azurenative.iotoperations.inputs.DataFlowSourceOperationArgs;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * DataFlow Operation properties. NOTE - One only method is allowed to be used for one entry.
 * 
 */
public final class DataFlowOperationArgs extends com.pulumi.resources.ResourceArgs {

    public static final DataFlowOperationArgs Empty = new DataFlowOperationArgs();

    /**
     * Transformation configuration.
     * 
     */
    @Import(name="builtInTransformationSettings")
    private @Nullable Output builtInTransformationSettings;

    /**
     * @return Transformation configuration.
     * 
     */
    public Optional> builtInTransformationSettings() {
        return Optional.ofNullable(this.builtInTransformationSettings);
    }

    /**
     * Destination configuration.
     * 
     */
    @Import(name="destinationSettings", required=true)
    private Output destinationSettings;

    /**
     * @return Destination configuration.
     * 
     */
    public Output destinationSettings() {
        return this.destinationSettings;
    }

    /**
     * Optional user provided name of the transformation.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Optional user provided name of the transformation.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Type of operation.
     * 
     */
    @Import(name="operationType", required=true)
    private Output> operationType;

    /**
     * @return Type of operation.
     * 
     */
    public Output> operationType() {
        return this.operationType;
    }

    /**
     * Source configuration.
     * 
     */
    @Import(name="sourceSettings", required=true)
    private Output sourceSettings;

    /**
     * @return Source configuration.
     * 
     */
    public Output sourceSettings() {
        return this.sourceSettings;
    }

    private DataFlowOperationArgs() {}

    private DataFlowOperationArgs(DataFlowOperationArgs $) {
        this.builtInTransformationSettings = $.builtInTransformationSettings;
        this.destinationSettings = $.destinationSettings;
        this.name = $.name;
        this.operationType = $.operationType;
        this.sourceSettings = $.sourceSettings;
    }

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

    public static final class Builder {
        private DataFlowOperationArgs $;

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

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

        /**
         * @param builtInTransformationSettings Transformation configuration.
         * 
         * @return builder
         * 
         */
        public Builder builtInTransformationSettings(@Nullable Output builtInTransformationSettings) {
            $.builtInTransformationSettings = builtInTransformationSettings;
            return this;
        }

        /**
         * @param builtInTransformationSettings Transformation configuration.
         * 
         * @return builder
         * 
         */
        public Builder builtInTransformationSettings(DataFlowBuiltInTransformationArgs builtInTransformationSettings) {
            return builtInTransformationSettings(Output.of(builtInTransformationSettings));
        }

        /**
         * @param destinationSettings Destination configuration.
         * 
         * @return builder
         * 
         */
        public Builder destinationSettings(Output destinationSettings) {
            $.destinationSettings = destinationSettings;
            return this;
        }

        /**
         * @param destinationSettings Destination configuration.
         * 
         * @return builder
         * 
         */
        public Builder destinationSettings(DataFlowDestinationOperationArgs destinationSettings) {
            return destinationSettings(Output.of(destinationSettings));
        }

        /**
         * @param name Optional user provided name of the transformation.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Optional user provided name of the transformation.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

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

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

        /**
         * @param operationType Type of operation.
         * 
         * @return builder
         * 
         */
        public Builder operationType(OperationType operationType) {
            return operationType(Either.ofRight(operationType));
        }

        /**
         * @param sourceSettings Source configuration.
         * 
         * @return builder
         * 
         */
        public Builder sourceSettings(Output sourceSettings) {
            $.sourceSettings = sourceSettings;
            return this;
        }

        /**
         * @param sourceSettings Source configuration.
         * 
         * @return builder
         * 
         */
        public Builder sourceSettings(DataFlowSourceOperationArgs sourceSettings) {
            return sourceSettings(Output.of(sourceSettings));
        }

        public DataFlowOperationArgs build() {
            if ($.destinationSettings == null) {
                throw new MissingRequiredPropertyException("DataFlowOperationArgs", "destinationSettings");
            }
            if ($.operationType == null) {
                throw new MissingRequiredPropertyException("DataFlowOperationArgs", "operationType");
            }
            if ($.sourceSettings == null) {
                throw new MissingRequiredPropertyException("DataFlowOperationArgs", "sourceSettings");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy