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

com.pulumi.azurenative.iotoperationsmq.inputs.KafkaTopicMapBatchingArgs Maven / Gradle / Ivy

// *** 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Kafka TopicMap Batching properties
 * 
 */
public final class KafkaTopicMapBatchingArgs extends com.pulumi.resources.ResourceArgs {

    public static final KafkaTopicMapBatchingArgs Empty = new KafkaTopicMapBatchingArgs();

    /**
     * The setting to enable or disable batching.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return The setting to enable or disable batching.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * The latency of message batching.
     * 
     */
    @Import(name="latencyMs")
    private @Nullable Output latencyMs;

    /**
     * @return The latency of message batching.
     * 
     */
    public Optional> latencyMs() {
        return Optional.ofNullable(this.latencyMs);
    }

    /**
     * The maximum bytes to send in a batch.
     * 
     */
    @Import(name="maxBytes")
    private @Nullable Output maxBytes;

    /**
     * @return The maximum bytes to send in a batch.
     * 
     */
    public Optional> maxBytes() {
        return Optional.ofNullable(this.maxBytes);
    }

    /**
     * The maximum messages to send in a batch.
     * 
     */
    @Import(name="maxMessages")
    private @Nullable Output maxMessages;

    /**
     * @return The maximum messages to send in a batch.
     * 
     */
    public Optional> maxMessages() {
        return Optional.ofNullable(this.maxMessages);
    }

    private KafkaTopicMapBatchingArgs() {}

    private KafkaTopicMapBatchingArgs(KafkaTopicMapBatchingArgs $) {
        this.enabled = $.enabled;
        this.latencyMs = $.latencyMs;
        this.maxBytes = $.maxBytes;
        this.maxMessages = $.maxMessages;
    }

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

    public static final class Builder {
        private KafkaTopicMapBatchingArgs $;

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

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

        /**
         * @param enabled The setting to enable or disable batching.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled The setting to enable or disable batching.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param latencyMs The latency of message batching.
         * 
         * @return builder
         * 
         */
        public Builder latencyMs(@Nullable Output latencyMs) {
            $.latencyMs = latencyMs;
            return this;
        }

        /**
         * @param latencyMs The latency of message batching.
         * 
         * @return builder
         * 
         */
        public Builder latencyMs(Integer latencyMs) {
            return latencyMs(Output.of(latencyMs));
        }

        /**
         * @param maxBytes The maximum bytes to send in a batch.
         * 
         * @return builder
         * 
         */
        public Builder maxBytes(@Nullable Output maxBytes) {
            $.maxBytes = maxBytes;
            return this;
        }

        /**
         * @param maxBytes The maximum bytes to send in a batch.
         * 
         * @return builder
         * 
         */
        public Builder maxBytes(Double maxBytes) {
            return maxBytes(Output.of(maxBytes));
        }

        /**
         * @param maxMessages The maximum messages to send in a batch.
         * 
         * @return builder
         * 
         */
        public Builder maxMessages(@Nullable Output maxMessages) {
            $.maxMessages = maxMessages;
            return this;
        }

        /**
         * @param maxMessages The maximum messages to send in a batch.
         * 
         * @return builder
         * 
         */
        public Builder maxMessages(Double maxMessages) {
            return maxMessages(Output.of(maxMessages));
        }

        public KafkaTopicMapBatchingArgs build() {
            $.enabled = Codegen.booleanProp("enabled").output().arg($.enabled).def(false).getNullable();
            $.latencyMs = Codegen.integerProp("latencyMs").output().arg($.latencyMs).def(5).getNullable();
            $.maxBytes = Codegen.doubleProp("maxBytes").output().arg($.maxBytes).def(1e+06).getNullable();
            $.maxMessages = Codegen.doubleProp("maxMessages").output().arg($.maxMessages).def(1e+05).getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy