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

com.pulumi.azurenative.iotoperationsmq.KafkaConnectorTopicMapArgs 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.KafkaMessageCompressionType;
import com.pulumi.azurenative.iotoperationsmq.enums.KafkaPartitionStrategy;
import com.pulumi.azurenative.iotoperationsmq.inputs.ExtendedLocationPropertyArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.KafkaRoutesArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.KafkaTopicMapBatchingArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final KafkaConnectorTopicMapArgs Empty = new KafkaConnectorTopicMapArgs();

    /**
     * The batching settings for kafka messages.
     * 
     */
    @Import(name="batching")
    private @Nullable Output batching;

    /**
     * @return The batching settings for kafka messages.
     * 
     */
    public Optional> batching() {
        return Optional.ofNullable(this.batching);
    }

    /**
     * The compression to use for kafka messages.
     * 
     */
    @Import(name="compression")
    private @Nullable Output> compression;

    /**
     * @return The compression to use for kafka messages.
     * 
     */
    public Optional>> compression() {
        return Optional.ofNullable(this.compression);
    }

    /**
     * The flag to copy Mqtt properties.
     * 
     */
    @Import(name="copyMqttProperties")
    private @Nullable Output copyMqttProperties;

    /**
     * @return The flag to copy Mqtt properties.
     * 
     */
    public Optional> copyMqttProperties() {
        return Optional.ofNullable(this.copyMqttProperties);
    }

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

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

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

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

    /**
     * The kafkaConnector CRD it refers to.
     * 
     */
    @Import(name="kafkaConnectorRef", required=true)
    private Output kafkaConnectorRef;

    /**
     * @return The kafkaConnector CRD it refers to.
     * 
     */
    public Output kafkaConnectorRef() {
        return this.kafkaConnectorRef;
    }

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

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

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

    /**
     * The partition to use for Kafka.
     * 
     */
    @Import(name="partitionKeyProperty")
    private @Nullable Output partitionKeyProperty;

    /**
     * @return The partition to use for Kafka.
     * 
     */
    public Optional> partitionKeyProperty() {
        return Optional.ofNullable(this.partitionKeyProperty);
    }

    /**
     * The partition strategy to use for Kafka.
     * 
     */
    @Import(name="partitionStrategy")
    private @Nullable Output> partitionStrategy;

    /**
     * @return The partition strategy to use for Kafka.
     * 
     */
    public Optional>> partitionStrategy() {
        return Optional.ofNullable(this.partitionStrategy);
    }

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

    /**
     * The route details for Kafka connector.
     * 
     */
    @Import(name="routes", required=true)
    private Output> routes;

    /**
     * @return The route details for Kafka connector.
     * 
     */
    public Output> routes() {
        return this.routes;
    }

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

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

    /**
     * Name of MQ kafka/topicMap resource
     * 
     */
    @Import(name="topicMapName")
    private @Nullable Output topicMapName;

    /**
     * @return Name of MQ kafka/topicMap resource
     * 
     */
    public Optional> topicMapName() {
        return Optional.ofNullable(this.topicMapName);
    }

    private KafkaConnectorTopicMapArgs() {}

    private KafkaConnectorTopicMapArgs(KafkaConnectorTopicMapArgs $) {
        this.batching = $.batching;
        this.compression = $.compression;
        this.copyMqttProperties = $.copyMqttProperties;
        this.extendedLocation = $.extendedLocation;
        this.kafkaConnectorName = $.kafkaConnectorName;
        this.kafkaConnectorRef = $.kafkaConnectorRef;
        this.location = $.location;
        this.mqName = $.mqName;
        this.partitionKeyProperty = $.partitionKeyProperty;
        this.partitionStrategy = $.partitionStrategy;
        this.resourceGroupName = $.resourceGroupName;
        this.routes = $.routes;
        this.tags = $.tags;
        this.topicMapName = $.topicMapName;
    }

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

    public static final class Builder {
        private KafkaConnectorTopicMapArgs $;

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

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

        /**
         * @param batching The batching settings for kafka messages.
         * 
         * @return builder
         * 
         */
        public Builder batching(@Nullable Output batching) {
            $.batching = batching;
            return this;
        }

        /**
         * @param batching The batching settings for kafka messages.
         * 
         * @return builder
         * 
         */
        public Builder batching(KafkaTopicMapBatchingArgs batching) {
            return batching(Output.of(batching));
        }

        /**
         * @param compression The compression to use for kafka messages.
         * 
         * @return builder
         * 
         */
        public Builder compression(@Nullable Output> compression) {
            $.compression = compression;
            return this;
        }

        /**
         * @param compression The compression to use for kafka messages.
         * 
         * @return builder
         * 
         */
        public Builder compression(Either compression) {
            return compression(Output.of(compression));
        }

        /**
         * @param compression The compression to use for kafka messages.
         * 
         * @return builder
         * 
         */
        public Builder compression(String compression) {
            return compression(Either.ofLeft(compression));
        }

        /**
         * @param compression The compression to use for kafka messages.
         * 
         * @return builder
         * 
         */
        public Builder compression(KafkaMessageCompressionType compression) {
            return compression(Either.ofRight(compression));
        }

        /**
         * @param copyMqttProperties The flag to copy Mqtt properties.
         * 
         * @return builder
         * 
         */
        public Builder copyMqttProperties(@Nullable Output copyMqttProperties) {
            $.copyMqttProperties = copyMqttProperties;
            return this;
        }

        /**
         * @param copyMqttProperties The flag to copy Mqtt properties.
         * 
         * @return builder
         * 
         */
        public Builder copyMqttProperties(String copyMqttProperties) {
            return copyMqttProperties(Output.of(copyMqttProperties));
        }

        /**
         * @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 kafkaConnectorName Name of MQ kafkaConnector resource
         * 
         * @return builder
         * 
         */
        public Builder kafkaConnectorName(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 kafkaConnectorRef The kafkaConnector CRD it refers to.
         * 
         * @return builder
         * 
         */
        public Builder kafkaConnectorRef(Output kafkaConnectorRef) {
            $.kafkaConnectorRef = kafkaConnectorRef;
            return this;
        }

        /**
         * @param kafkaConnectorRef The kafkaConnector CRD it refers to.
         * 
         * @return builder
         * 
         */
        public Builder kafkaConnectorRef(String kafkaConnectorRef) {
            return kafkaConnectorRef(Output.of(kafkaConnectorRef));
        }

        /**
         * @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 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 partitionKeyProperty The partition to use for Kafka.
         * 
         * @return builder
         * 
         */
        public Builder partitionKeyProperty(@Nullable Output partitionKeyProperty) {
            $.partitionKeyProperty = partitionKeyProperty;
            return this;
        }

        /**
         * @param partitionKeyProperty The partition to use for Kafka.
         * 
         * @return builder
         * 
         */
        public Builder partitionKeyProperty(String partitionKeyProperty) {
            return partitionKeyProperty(Output.of(partitionKeyProperty));
        }

        /**
         * @param partitionStrategy The partition strategy to use for Kafka.
         * 
         * @return builder
         * 
         */
        public Builder partitionStrategy(@Nullable Output> partitionStrategy) {
            $.partitionStrategy = partitionStrategy;
            return this;
        }

        /**
         * @param partitionStrategy The partition strategy to use for Kafka.
         * 
         * @return builder
         * 
         */
        public Builder partitionStrategy(Either partitionStrategy) {
            return partitionStrategy(Output.of(partitionStrategy));
        }

        /**
         * @param partitionStrategy The partition strategy to use for Kafka.
         * 
         * @return builder
         * 
         */
        public Builder partitionStrategy(String partitionStrategy) {
            return partitionStrategy(Either.ofLeft(partitionStrategy));
        }

        /**
         * @param partitionStrategy The partition strategy to use for Kafka.
         * 
         * @return builder
         * 
         */
        public Builder partitionStrategy(KafkaPartitionStrategy partitionStrategy) {
            return partitionStrategy(Either.ofRight(partitionStrategy));
        }

        /**
         * @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 routes The route details for Kafka connector.
         * 
         * @return builder
         * 
         */
        public Builder routes(Output> routes) {
            $.routes = routes;
            return this;
        }

        /**
         * @param routes The route details for Kafka connector.
         * 
         * @return builder
         * 
         */
        public Builder routes(List routes) {
            return routes(Output.of(routes));
        }

        /**
         * @param routes The route details for Kafka connector.
         * 
         * @return builder
         * 
         */
        public Builder routes(KafkaRoutesArgs... routes) {
            return routes(List.of(routes));
        }

        /**
         * @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 topicMapName Name of MQ kafka/topicMap resource
         * 
         * @return builder
         * 
         */
        public Builder topicMapName(@Nullable Output topicMapName) {
            $.topicMapName = topicMapName;
            return this;
        }

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

        public KafkaConnectorTopicMapArgs build() {
            $.compression = Codegen.stringProp("compression").left(KafkaMessageCompressionType.class).output().arg($.compression).def("none").getNullable();
            if ($.extendedLocation == null) {
                throw new MissingRequiredPropertyException("KafkaConnectorTopicMapArgs", "extendedLocation");
            }
            if ($.kafkaConnectorName == null) {
                throw new MissingRequiredPropertyException("KafkaConnectorTopicMapArgs", "kafkaConnectorName");
            }
            if ($.kafkaConnectorRef == null) {
                throw new MissingRequiredPropertyException("KafkaConnectorTopicMapArgs", "kafkaConnectorRef");
            }
            if ($.mqName == null) {
                throw new MissingRequiredPropertyException("KafkaConnectorTopicMapArgs", "mqName");
            }
            $.partitionStrategy = Codegen.stringProp("partitionStrategy").left(KafkaPartitionStrategy.class).output().arg($.partitionStrategy).def("default").getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("KafkaConnectorTopicMapArgs", "resourceGroupName");
            }
            if ($.routes == null) {
                throw new MissingRequiredPropertyException("KafkaConnectorTopicMapArgs", "routes");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy