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

com.pulumi.azurenative.iotoperations.outputs.DataFlowEndpointKafkaBatchingResponse 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.iotoperations.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DataFlowEndpointKafkaBatchingResponse {
    /**
     * @return Batching latency in milliseconds.
     * 
     */
    private @Nullable Integer latencyMs;
    /**
     * @return Maximum number of bytes in a batch.
     * 
     */
    private @Nullable Integer maxBytes;
    /**
     * @return Maximum number of messages in a batch.
     * 
     */
    private @Nullable Integer maxMessages;
    /**
     * @return Mode for batching.
     * 
     */
    private @Nullable String mode;

    private DataFlowEndpointKafkaBatchingResponse() {}
    /**
     * @return Batching latency in milliseconds.
     * 
     */
    public Optional latencyMs() {
        return Optional.ofNullable(this.latencyMs);
    }
    /**
     * @return Maximum number of bytes in a batch.
     * 
     */
    public Optional maxBytes() {
        return Optional.ofNullable(this.maxBytes);
    }
    /**
     * @return Maximum number of messages in a batch.
     * 
     */
    public Optional maxMessages() {
        return Optional.ofNullable(this.maxMessages);
    }
    /**
     * @return Mode for batching.
     * 
     */
    public Optional mode() {
        return Optional.ofNullable(this.mode);
    }

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

    public static Builder builder(DataFlowEndpointKafkaBatchingResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer latencyMs;
        private @Nullable Integer maxBytes;
        private @Nullable Integer maxMessages;
        private @Nullable String mode;
        public Builder() {}
        public Builder(DataFlowEndpointKafkaBatchingResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.latencyMs = defaults.latencyMs;
    	      this.maxBytes = defaults.maxBytes;
    	      this.maxMessages = defaults.maxMessages;
    	      this.mode = defaults.mode;
        }

        @CustomType.Setter
        public Builder latencyMs(@Nullable Integer latencyMs) {

            this.latencyMs = latencyMs;
            return this;
        }
        @CustomType.Setter
        public Builder maxBytes(@Nullable Integer maxBytes) {

            this.maxBytes = maxBytes;
            return this;
        }
        @CustomType.Setter
        public Builder maxMessages(@Nullable Integer maxMessages) {

            this.maxMessages = maxMessages;
            return this;
        }
        @CustomType.Setter
        public Builder mode(@Nullable String mode) {

            this.mode = mode;
            return this;
        }
        public DataFlowEndpointKafkaBatchingResponse build() {
            final var _resultValue = new DataFlowEndpointKafkaBatchingResponse();
            _resultValue.latencyMs = latencyMs;
            _resultValue.maxBytes = maxBytes;
            _resultValue.maxMessages = maxMessages;
            _resultValue.mode = mode;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy