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

com.pulumi.azurenative.iotoperations.inputs.DataFlowSourceOperationArgs 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.SourceSerializationFormat;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
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 Source Operation properties
 * 
 */
public final class DataFlowSourceOperationArgs extends com.pulumi.resources.ResourceArgs {

    public static final DataFlowSourceOperationArgs Empty = new DataFlowSourceOperationArgs();

    /**
     * Reference to the resource in Azure Device Registry where the data in the endpoint originates from.
     * 
     */
    @Import(name="assetRef")
    private @Nullable Output assetRef;

    /**
     * @return Reference to the resource in Azure Device Registry where the data in the endpoint originates from.
     * 
     */
    public Optional> assetRef() {
        return Optional.ofNullable(this.assetRef);
    }

    /**
     * List of source locations. Can be Broker or Kafka topics. Supports wildcards # and +.
     * 
     */
    @Import(name="dataSources", required=true)
    private Output> dataSources;

    /**
     * @return List of source locations. Can be Broker or Kafka topics. Supports wildcards # and +.
     * 
     */
    public Output> dataSources() {
        return this.dataSources;
    }

    /**
     * Reference to the Dataflow Endpoint resource. Can only be of Broker and Kafka type.
     * 
     */
    @Import(name="endpointRef", required=true)
    private Output endpointRef;

    /**
     * @return Reference to the Dataflow Endpoint resource. Can only be of Broker and Kafka type.
     * 
     */
    public Output endpointRef() {
        return this.endpointRef;
    }

    /**
     * Schema CR reference. Data will be deserialized according to the schema, and dropped if it doesn't match.
     * 
     */
    @Import(name="schemaRef")
    private @Nullable Output schemaRef;

    /**
     * @return Schema CR reference. Data will be deserialized according to the schema, and dropped if it doesn't match.
     * 
     */
    public Optional> schemaRef() {
        return Optional.ofNullable(this.schemaRef);
    }

    /**
     * Content is a JSON Schema. Allowed: JSON Schema/draft-7.
     * 
     */
    @Import(name="serializationFormat")
    private @Nullable Output> serializationFormat;

    /**
     * @return Content is a JSON Schema. Allowed: JSON Schema/draft-7.
     * 
     */
    public Optional>> serializationFormat() {
        return Optional.ofNullable(this.serializationFormat);
    }

    private DataFlowSourceOperationArgs() {}

    private DataFlowSourceOperationArgs(DataFlowSourceOperationArgs $) {
        this.assetRef = $.assetRef;
        this.dataSources = $.dataSources;
        this.endpointRef = $.endpointRef;
        this.schemaRef = $.schemaRef;
        this.serializationFormat = $.serializationFormat;
    }

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

    public static final class Builder {
        private DataFlowSourceOperationArgs $;

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

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

        /**
         * @param assetRef Reference to the resource in Azure Device Registry where the data in the endpoint originates from.
         * 
         * @return builder
         * 
         */
        public Builder assetRef(@Nullable Output assetRef) {
            $.assetRef = assetRef;
            return this;
        }

        /**
         * @param assetRef Reference to the resource in Azure Device Registry where the data in the endpoint originates from.
         * 
         * @return builder
         * 
         */
        public Builder assetRef(String assetRef) {
            return assetRef(Output.of(assetRef));
        }

        /**
         * @param dataSources List of source locations. Can be Broker or Kafka topics. Supports wildcards # and +.
         * 
         * @return builder
         * 
         */
        public Builder dataSources(Output> dataSources) {
            $.dataSources = dataSources;
            return this;
        }

        /**
         * @param dataSources List of source locations. Can be Broker or Kafka topics. Supports wildcards # and +.
         * 
         * @return builder
         * 
         */
        public Builder dataSources(List dataSources) {
            return dataSources(Output.of(dataSources));
        }

        /**
         * @param dataSources List of source locations. Can be Broker or Kafka topics. Supports wildcards # and +.
         * 
         * @return builder
         * 
         */
        public Builder dataSources(String... dataSources) {
            return dataSources(List.of(dataSources));
        }

        /**
         * @param endpointRef Reference to the Dataflow Endpoint resource. Can only be of Broker and Kafka type.
         * 
         * @return builder
         * 
         */
        public Builder endpointRef(Output endpointRef) {
            $.endpointRef = endpointRef;
            return this;
        }

        /**
         * @param endpointRef Reference to the Dataflow Endpoint resource. Can only be of Broker and Kafka type.
         * 
         * @return builder
         * 
         */
        public Builder endpointRef(String endpointRef) {
            return endpointRef(Output.of(endpointRef));
        }

        /**
         * @param schemaRef Schema CR reference. Data will be deserialized according to the schema, and dropped if it doesn't match.
         * 
         * @return builder
         * 
         */
        public Builder schemaRef(@Nullable Output schemaRef) {
            $.schemaRef = schemaRef;
            return this;
        }

        /**
         * @param schemaRef Schema CR reference. Data will be deserialized according to the schema, and dropped if it doesn't match.
         * 
         * @return builder
         * 
         */
        public Builder schemaRef(String schemaRef) {
            return schemaRef(Output.of(schemaRef));
        }

        /**
         * @param serializationFormat Content is a JSON Schema. Allowed: JSON Schema/draft-7.
         * 
         * @return builder
         * 
         */
        public Builder serializationFormat(@Nullable Output> serializationFormat) {
            $.serializationFormat = serializationFormat;
            return this;
        }

        /**
         * @param serializationFormat Content is a JSON Schema. Allowed: JSON Schema/draft-7.
         * 
         * @return builder
         * 
         */
        public Builder serializationFormat(Either serializationFormat) {
            return serializationFormat(Output.of(serializationFormat));
        }

        /**
         * @param serializationFormat Content is a JSON Schema. Allowed: JSON Schema/draft-7.
         * 
         * @return builder
         * 
         */
        public Builder serializationFormat(String serializationFormat) {
            return serializationFormat(Either.ofLeft(serializationFormat));
        }

        /**
         * @param serializationFormat Content is a JSON Schema. Allowed: JSON Schema/draft-7.
         * 
         * @return builder
         * 
         */
        public Builder serializationFormat(SourceSerializationFormat serializationFormat) {
            return serializationFormat(Either.ofRight(serializationFormat));
        }

        public DataFlowSourceOperationArgs build() {
            if ($.dataSources == null) {
                throw new MissingRequiredPropertyException("DataFlowSourceOperationArgs", "dataSources");
            }
            if ($.endpointRef == null) {
                throw new MissingRequiredPropertyException("DataFlowSourceOperationArgs", "endpointRef");
            }
            $.serializationFormat = Codegen.stringProp("serializationFormat").left(SourceSerializationFormat.class).output().arg($.serializationFormat).def("Json").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy