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

com.pulumi.azurenative.iotoperationsmq.KafkaConnectorArgs 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.inputs.ContainerImageArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.ExtendedLocationPropertyArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.KafkaRemoteBrokerConnectionSpecArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.LocalBrokerConnectionSpecArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.NodeTolerationsArgs;
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.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final KafkaConnectorArgs Empty = new KafkaConnectorArgs();

    /**
     * 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 KafkaConnector Docker Image.
     * 
     */
    @Import(name="image")
    private @Nullable Output image;

    /**
     * @return The details of KafkaConnector Docker Image.
     * 
     */
    public Optional> image() {
        return Optional.ofNullable(this.image);
    }

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

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

    /**
     * The details for connecting with Remote Kafka Broker.
     * 
     */
    @Import(name="kafkaConnection", required=true)
    private Output kafkaConnection;

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

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

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

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

    /**
     * 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 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 KafkaConnectorArgs() {}

    private KafkaConnectorArgs(KafkaConnectorArgs $) {
        this.clientIdPrefix = $.clientIdPrefix;
        this.extendedLocation = $.extendedLocation;
        this.image = $.image;
        this.instances = $.instances;
        this.kafkaConnection = $.kafkaConnection;
        this.kafkaConnectorName = $.kafkaConnectorName;
        this.localBrokerConnection = $.localBrokerConnection;
        this.location = $.location;
        this.logLevel = $.logLevel;
        this.mqName = $.mqName;
        this.nodeTolerations = $.nodeTolerations;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private KafkaConnectorArgs $;

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

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

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

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

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

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

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

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

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

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

        /**
         * @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 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 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 KafkaConnectorArgs build() {
            if ($.extendedLocation == null) {
                throw new MissingRequiredPropertyException("KafkaConnectorArgs", "extendedLocation");
            }
            if ($.kafkaConnection == null) {
                throw new MissingRequiredPropertyException("KafkaConnectorArgs", "kafkaConnection");
            }
            $.logLevel = Codegen.stringProp("logLevel").output().arg($.logLevel).def("info").getNullable();
            if ($.mqName == null) {
                throw new MissingRequiredPropertyException("KafkaConnectorArgs", "mqName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("KafkaConnectorArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy