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

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

import com.pulumi.azurenative.iotoperationsmq.enums.MqttProtocol;
import com.pulumi.azurenative.iotoperationsmq.inputs.ContainerImageArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.ExtendedLocationPropertyArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.LocalBrokerConnectionSpecArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.MqttBridgeRemoteBrokerConnectionSpecArgs;
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 MqttBridgeConnectorArgs extends com.pulumi.resources.ResourceArgs {

    public static final MqttBridgeConnectorArgs Empty = new MqttBridgeConnectorArgs();

    /**
     * The number of instances to deploy for a bridge rollout.
     * 
     */
    @Import(name="bridgeInstances")
    private @Nullable Output bridgeInstances;

    /**
     * @return The number of instances to deploy for a bridge rollout.
     * 
     */
    public Optional> bridgeInstances() {
        return Optional.ofNullable(this.bridgeInstances);
    }

    /**
     * The client id prefix of the dynamically generated client ids.
     * 
     */
    @Import(name="clientIdPrefix")
    private @Nullable Output clientIdPrefix;

    /**
     * @return The client id prefix of the dynamically generated client ids.
     * 
     */
    public Optional> clientIdPrefix() {
        return Optional.ofNullable(this.clientIdPrefix);
    }

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

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

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

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

    /**
     * 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 Bridge Connector instances.
     * 
     */
    @Import(name="logLevel")
    private @Nullable Output logLevel;

    /**
     * @return The log level of the Bridge 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;
    }

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

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

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

    /**
     * @return The Node Tolerations for the Bridge 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 details for connecting with Remote Broker.
     * 
     */
    @Import(name="remoteBrokerConnection", required=true)
    private Output remoteBrokerConnection;

    /**
     * @return The details for connecting with Remote Broker.
     * 
     */
    public Output remoteBrokerConnection() {
        return this.remoteBrokerConnection;
    }

    /**
     * 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);
    }

    private MqttBridgeConnectorArgs() {}

    private MqttBridgeConnectorArgs(MqttBridgeConnectorArgs $) {
        this.bridgeInstances = $.bridgeInstances;
        this.clientIdPrefix = $.clientIdPrefix;
        this.extendedLocation = $.extendedLocation;
        this.image = $.image;
        this.localBrokerConnection = $.localBrokerConnection;
        this.location = $.location;
        this.logLevel = $.logLevel;
        this.mqName = $.mqName;
        this.mqttBridgeConnectorName = $.mqttBridgeConnectorName;
        this.nodeTolerations = $.nodeTolerations;
        this.protocol = $.protocol;
        this.remoteBrokerConnection = $.remoteBrokerConnection;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private MqttBridgeConnectorArgs $;

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

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

        /**
         * @param bridgeInstances The number of instances to deploy for a bridge rollout.
         * 
         * @return builder
         * 
         */
        public Builder bridgeInstances(@Nullable Output bridgeInstances) {
            $.bridgeInstances = bridgeInstances;
            return this;
        }

        /**
         * @param bridgeInstances The number of instances to deploy for a bridge rollout.
         * 
         * @return builder
         * 
         */
        public Builder bridgeInstances(Integer bridgeInstances) {
            return bridgeInstances(Output.of(bridgeInstances));
        }

        /**
         * @param clientIdPrefix The client id prefix of the dynamically generated client ids.
         * 
         * @return builder
         * 
         */
        public Builder clientIdPrefix(@Nullable Output clientIdPrefix) {
            $.clientIdPrefix = clientIdPrefix;
            return this;
        }

        /**
         * @param clientIdPrefix The client id prefix of the dynamically generated client ids.
         * 
         * @return builder
         * 
         */
        public Builder clientIdPrefix(String clientIdPrefix) {
            return clientIdPrefix(Output.of(clientIdPrefix));
        }

        /**
         * @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 MqttBridge Docker Image.
         * 
         * @return builder
         * 
         */
        public Builder image(Output image) {
            $.image = image;
            return this;
        }

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

        /**
         * @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 Bridge Connector instances.
         * 
         * @return builder
         * 
         */
        public Builder logLevel(@Nullable Output logLevel) {
            $.logLevel = logLevel;
            return this;
        }

        /**
         * @param logLevel The log level of the Bridge 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 mqttBridgeConnectorName Name of MQ mqttBridgeConnector resource
         * 
         * @return builder
         * 
         */
        public Builder mqttBridgeConnectorName(@Nullable Output mqttBridgeConnectorName) {
            $.mqttBridgeConnectorName = mqttBridgeConnectorName;
            return this;
        }

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

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

        /**
         * @param nodeTolerations The Node Tolerations for the Bridge 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 remoteBrokerConnection The details for connecting with Remote Broker.
         * 
         * @return builder
         * 
         */
        public Builder remoteBrokerConnection(Output remoteBrokerConnection) {
            $.remoteBrokerConnection = remoteBrokerConnection;
            return this;
        }

        /**
         * @param remoteBrokerConnection The details for connecting with Remote Broker.
         * 
         * @return builder
         * 
         */
        public Builder remoteBrokerConnection(MqttBridgeRemoteBrokerConnectionSpecArgs remoteBrokerConnection) {
            return remoteBrokerConnection(Output.of(remoteBrokerConnection));
        }

        /**
         * @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));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy