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

com.pulumi.azurenative.iotoperationsmq.DataLakeConnectorArgs 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.iotoperationsmq;

import com.pulumi.azurenative.iotoperationsmq.enums.DataLakeDatabaseFormat;
import com.pulumi.azurenative.iotoperationsmq.enums.MqttProtocol;
import com.pulumi.azurenative.iotoperationsmq.inputs.ContainerImageArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.DataLakeTargetStorageArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.ExtendedLocationPropertyArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.LocalBrokerConnectionSpecArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.NodeTolerationsArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class DataLakeConnectorArgs extends com.pulumi.resources.ResourceArgs {

    public static final DataLakeConnectorArgs Empty = new DataLakeConnectorArgs();

    /**
     * Name of MQ dataLakeConnector resource
     * 
     */
    @Import(name="dataLakeConnectorName")
    private @Nullable Output dataLakeConnectorName;

    /**
     * @return Name of MQ dataLakeConnector resource
     * 
     */
    public Optional> dataLakeConnectorName() {
        return Optional.ofNullable(this.dataLakeConnectorName);
    }

    /**
     * DataLake database format to use.
     * 
     */
    @Import(name="databaseFormat", required=true)
    private Output> databaseFormat;

    /**
     * @return DataLake database format to use.
     * 
     */
    public Output> databaseFormat() {
        return this.databaseFormat;
    }

    /**
     * Extended Location
     * 
     */
    @Import(name="extendedLocation", required=true)
    private Output extendedLocation;

    /**
     * @return Extended Location
     * 
     */
    public Output extendedLocation() {
        return this.extendedLocation;
    }

    /**
     * The details of DataLakeConnector Docker Image.
     * 
     */
    @Import(name="image", required=true)
    private Output image;

    /**
     * @return The details of DataLakeConnector Docker Image.
     * 
     */
    public Output image() {
        return this.image;
    }

    /**
     * The number of DataLakeConnector pods to spin up.
     * 
     */
    @Import(name="instances")
    private @Nullable Output instances;

    /**
     * @return The number of DataLakeConnector pods to spin up.
     * 
     */
    public Optional> instances() {
        return Optional.ofNullable(this.instances);
    }

    /**
     * The details for connecting with Local Broker.
     * 
     */
    @Import(name="localBrokerConnection")
    private @Nullable Output localBrokerConnection;

    /**
     * @return The details for connecting with Local Broker.
     * 
     */
    public Optional> localBrokerConnection() {
        return Optional.ofNullable(this.localBrokerConnection);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The log level of the DataLake Connector instances.
     * 
     */
    @Import(name="logLevel")
    private @Nullable Output logLevel;

    /**
     * @return The log level of the DataLake Connector instances.
     * 
     */
    public Optional> logLevel() {
        return Optional.ofNullable(this.logLevel);
    }

    /**
     * Name of MQ resource
     * 
     */
    @Import(name="mqName", required=true)
    private Output mqName;

    /**
     * @return Name of MQ resource
     * 
     */
    public Output mqName() {
        return this.mqName;
    }

    /**
     * The Node Tolerations for the DataLake Connector pods.
     * 
     */
    @Import(name="nodeTolerations")
    private @Nullable Output nodeTolerations;

    /**
     * @return The Node Tolerations for the DataLake Connector pods.
     * 
     */
    public Optional> nodeTolerations() {
        return Optional.ofNullable(this.nodeTolerations);
    }

    /**
     * The protocol to use for connecting with Brokers.
     * 
     */
    @Import(name="protocol", required=true)
    private Output> protocol;

    /**
     * @return The protocol to use for connecting with Brokers.
     * 
     */
    public Output> protocol() {
        return this.protocol;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The protocol to use for connecting with Brokers. NOTE - Enum only storage is supported at at time.
     * 
     */
    @Import(name="target", required=true)
    private Output target;

    /**
     * @return The protocol to use for connecting with Brokers. NOTE - Enum only storage is supported at at time.
     * 
     */
    public Output target() {
        return this.target;
    }

    private DataLakeConnectorArgs() {}

    private DataLakeConnectorArgs(DataLakeConnectorArgs $) {
        this.dataLakeConnectorName = $.dataLakeConnectorName;
        this.databaseFormat = $.databaseFormat;
        this.extendedLocation = $.extendedLocation;
        this.image = $.image;
        this.instances = $.instances;
        this.localBrokerConnection = $.localBrokerConnection;
        this.location = $.location;
        this.logLevel = $.logLevel;
        this.mqName = $.mqName;
        this.nodeTolerations = $.nodeTolerations;
        this.protocol = $.protocol;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.target = $.target;
    }

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

    public static final class Builder {
        private DataLakeConnectorArgs $;

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

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

        /**
         * @param dataLakeConnectorName Name of MQ dataLakeConnector resource
         * 
         * @return builder
         * 
         */
        public Builder dataLakeConnectorName(@Nullable Output dataLakeConnectorName) {
            $.dataLakeConnectorName = dataLakeConnectorName;
            return this;
        }

        /**
         * @param dataLakeConnectorName Name of MQ dataLakeConnector resource
         * 
         * @return builder
         * 
         */
        public Builder dataLakeConnectorName(String dataLakeConnectorName) {
            return dataLakeConnectorName(Output.of(dataLakeConnectorName));
        }

        /**
         * @param databaseFormat DataLake database format to use.
         * 
         * @return builder
         * 
         */
        public Builder databaseFormat(Output> databaseFormat) {
            $.databaseFormat = databaseFormat;
            return this;
        }

        /**
         * @param databaseFormat DataLake database format to use.
         * 
         * @return builder
         * 
         */
        public Builder databaseFormat(Either databaseFormat) {
            return databaseFormat(Output.of(databaseFormat));
        }

        /**
         * @param databaseFormat DataLake database format to use.
         * 
         * @return builder
         * 
         */
        public Builder databaseFormat(String databaseFormat) {
            return databaseFormat(Either.ofLeft(databaseFormat));
        }

        /**
         * @param databaseFormat DataLake database format to use.
         * 
         * @return builder
         * 
         */
        public Builder databaseFormat(DataLakeDatabaseFormat databaseFormat) {
            return databaseFormat(Either.ofRight(databaseFormat));
        }

        /**
         * @param extendedLocation Extended Location
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(Output extendedLocation) {
            $.extendedLocation = extendedLocation;
            return this;
        }

        /**
         * @param extendedLocation Extended Location
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(ExtendedLocationPropertyArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @param image The details of DataLakeConnector Docker Image.
         * 
         * @return builder
         * 
         */
        public Builder image(Output image) {
            $.image = image;
            return this;
        }

        /**
         * @param image The details of DataLakeConnector Docker Image.
         * 
         * @return builder
         * 
         */
        public Builder image(ContainerImageArgs image) {
            return image(Output.of(image));
        }

        /**
         * @param instances The number of DataLakeConnector pods to spin up.
         * 
         * @return builder
         * 
         */
        public Builder instances(@Nullable Output instances) {
            $.instances = instances;
            return this;
        }

        /**
         * @param instances The number of DataLakeConnector pods to spin up.
         * 
         * @return builder
         * 
         */
        public Builder instances(Integer instances) {
            return instances(Output.of(instances));
        }

        /**
         * @param localBrokerConnection The details for connecting with Local Broker.
         * 
         * @return builder
         * 
         */
        public Builder localBrokerConnection(@Nullable Output localBrokerConnection) {
            $.localBrokerConnection = localBrokerConnection;
            return this;
        }

        /**
         * @param localBrokerConnection The details for connecting with Local Broker.
         * 
         * @return builder
         * 
         */
        public Builder localBrokerConnection(LocalBrokerConnectionSpecArgs localBrokerConnection) {
            return localBrokerConnection(Output.of(localBrokerConnection));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param logLevel The log level of the DataLake Connector instances.
         * 
         * @return builder
         * 
         */
        public Builder logLevel(@Nullable Output logLevel) {
            $.logLevel = logLevel;
            return this;
        }

        /**
         * @param logLevel The log level of the DataLake Connector instances.
         * 
         * @return builder
         * 
         */
        public Builder logLevel(String logLevel) {
            return logLevel(Output.of(logLevel));
        }

        /**
         * @param mqName Name of MQ resource
         * 
         * @return builder
         * 
         */
        public Builder mqName(Output mqName) {
            $.mqName = mqName;
            return this;
        }

        /**
         * @param mqName Name of MQ resource
         * 
         * @return builder
         * 
         */
        public Builder mqName(String mqName) {
            return mqName(Output.of(mqName));
        }

        /**
         * @param nodeTolerations The Node Tolerations for the DataLake Connector pods.
         * 
         * @return builder
         * 
         */
        public Builder nodeTolerations(@Nullable Output nodeTolerations) {
            $.nodeTolerations = nodeTolerations;
            return this;
        }

        /**
         * @param nodeTolerations The Node Tolerations for the DataLake Connector pods.
         * 
         * @return builder
         * 
         */
        public Builder nodeTolerations(NodeTolerationsArgs nodeTolerations) {
            return nodeTolerations(Output.of(nodeTolerations));
        }

        /**
         * @param protocol The protocol to use for connecting with Brokers.
         * 
         * @return builder
         * 
         */
        public Builder protocol(Output> protocol) {
            $.protocol = protocol;
            return this;
        }

        /**
         * @param protocol The protocol to use for connecting with Brokers.
         * 
         * @return builder
         * 
         */
        public Builder protocol(Either protocol) {
            return protocol(Output.of(protocol));
        }

        /**
         * @param protocol The protocol to use for connecting with Brokers.
         * 
         * @return builder
         * 
         */
        public Builder protocol(String protocol) {
            return protocol(Either.ofLeft(protocol));
        }

        /**
         * @param protocol The protocol to use for connecting with Brokers.
         * 
         * @return builder
         * 
         */
        public Builder protocol(MqttProtocol protocol) {
            return protocol(Either.ofRight(protocol));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param target The protocol to use for connecting with Brokers. NOTE - Enum only storage is supported at at time.
         * 
         * @return builder
         * 
         */
        public Builder target(Output target) {
            $.target = target;
            return this;
        }

        /**
         * @param target The protocol to use for connecting with Brokers. NOTE - Enum only storage is supported at at time.
         * 
         * @return builder
         * 
         */
        public Builder target(DataLakeTargetStorageArgs target) {
            return target(Output.of(target));
        }

        public DataLakeConnectorArgs build() {
            if ($.databaseFormat == null) {
                throw new MissingRequiredPropertyException("DataLakeConnectorArgs", "databaseFormat");
            }
            if ($.extendedLocation == null) {
                throw new MissingRequiredPropertyException("DataLakeConnectorArgs", "extendedLocation");
            }
            if ($.image == null) {
                throw new MissingRequiredPropertyException("DataLakeConnectorArgs", "image");
            }
            if ($.mqName == null) {
                throw new MissingRequiredPropertyException("DataLakeConnectorArgs", "mqName");
            }
            if ($.protocol == null) {
                throw new MissingRequiredPropertyException("DataLakeConnectorArgs", "protocol");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("DataLakeConnectorArgs", "resourceGroupName");
            }
            if ($.target == null) {
                throw new MissingRequiredPropertyException("DataLakeConnectorArgs", "target");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy