com.pulumi.azurenative.iotoperationsmq.outputs.KafkaTopicMapBatchingResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
The 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.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class KafkaTopicMapBatchingResponse {
/**
* @return The setting to enable or disable batching.
*
*/
private @Nullable Boolean enabled;
/**
* @return The latency of message batching.
*
*/
private @Nullable Integer latencyMs;
/**
* @return The maximum bytes to send in a batch.
*
*/
private @Nullable Double maxBytes;
/**
* @return The maximum messages to send in a batch.
*
*/
private @Nullable Double maxMessages;
private KafkaTopicMapBatchingResponse() {}
/**
* @return The setting to enable or disable batching.
*
*/
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* @return The latency of message batching.
*
*/
public Optional latencyMs() {
return Optional.ofNullable(this.latencyMs);
}
/**
* @return The maximum bytes to send in a batch.
*
*/
public Optional maxBytes() {
return Optional.ofNullable(this.maxBytes);
}
/**
* @return The maximum messages to send in a batch.
*
*/
public Optional maxMessages() {
return Optional.ofNullable(this.maxMessages);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KafkaTopicMapBatchingResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean enabled;
private @Nullable Integer latencyMs;
private @Nullable Double maxBytes;
private @Nullable Double maxMessages;
public Builder() {}
public Builder(KafkaTopicMapBatchingResponse defaults) {
Objects.requireNonNull(defaults);
this.enabled = defaults.enabled;
this.latencyMs = defaults.latencyMs;
this.maxBytes = defaults.maxBytes;
this.maxMessages = defaults.maxMessages;
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder latencyMs(@Nullable Integer latencyMs) {
this.latencyMs = latencyMs;
return this;
}
@CustomType.Setter
public Builder maxBytes(@Nullable Double maxBytes) {
this.maxBytes = maxBytes;
return this;
}
@CustomType.Setter
public Builder maxMessages(@Nullable Double maxMessages) {
this.maxMessages = maxMessages;
return this;
}
public KafkaTopicMapBatchingResponse build() {
final var _resultValue = new KafkaTopicMapBatchingResponse();
_resultValue.enabled = enabled;
_resultValue.latencyMs = latencyMs;
_resultValue.maxBytes = maxBytes;
_resultValue.maxMessages = maxMessages;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy