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

com.pulumi.azurenative.iotoperationsmq.outputs.BackendChainResponse Maven / Gradle / Ivy

There is a newer version: 2.82.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.outputs;

import com.pulumi.azurenative.iotoperationsmq.outputs.TemporaryResourceLimitsConfigResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class BackendChainResponse {
    /**
     * @return Partitions is desired number of physical backend chains of the given distributed MQTT broker.
     * 
     */
    private Integer partitions;
    /**
     * @return Redundancy Factor is desired numbers of broker instances in one chain.
     * 
     */
    private Integer redundancyFactor;
    /**
     * @return Defines whether disk transfer is enabled or not.
     * 
     */
    private @Nullable Boolean temporaryDiskTransferEnabled;
    /**
     * @return Defines the percentage usage of buffer pool above which disk transfer will start.
     * 
     */
    private @Nullable Integer temporaryDiskTransferHighWatermarkPercent;
    /**
     * @return Defines the percentage usage of buffer pool below which disk transfer will stop.
     * 
     */
    private @Nullable Integer temporaryDiskTransferLowWatermarkPercent;
    /**
     * @return Defines the limits for memory usage percent of the backend instances of the MQTT broker.
     * 
     */
    private @Nullable Integer temporaryMaxBackendMemUsagePercent;
    /**
     * @return Defines the limits for resources of the backend instances of the MQTT broker.
     * 
     */
    private @Nullable TemporaryResourceLimitsConfigResponse temporaryResourceLimits;
    /**
     * @return Number of logical backend workers per pod.
     * 
     */
    private @Nullable Integer workers;

    private BackendChainResponse() {}
    /**
     * @return Partitions is desired number of physical backend chains of the given distributed MQTT broker.
     * 
     */
    public Integer partitions() {
        return this.partitions;
    }
    /**
     * @return Redundancy Factor is desired numbers of broker instances in one chain.
     * 
     */
    public Integer redundancyFactor() {
        return this.redundancyFactor;
    }
    /**
     * @return Defines whether disk transfer is enabled or not.
     * 
     */
    public Optional temporaryDiskTransferEnabled() {
        return Optional.ofNullable(this.temporaryDiskTransferEnabled);
    }
    /**
     * @return Defines the percentage usage of buffer pool above which disk transfer will start.
     * 
     */
    public Optional temporaryDiskTransferHighWatermarkPercent() {
        return Optional.ofNullable(this.temporaryDiskTransferHighWatermarkPercent);
    }
    /**
     * @return Defines the percentage usage of buffer pool below which disk transfer will stop.
     * 
     */
    public Optional temporaryDiskTransferLowWatermarkPercent() {
        return Optional.ofNullable(this.temporaryDiskTransferLowWatermarkPercent);
    }
    /**
     * @return Defines the limits for memory usage percent of the backend instances of the MQTT broker.
     * 
     */
    public Optional temporaryMaxBackendMemUsagePercent() {
        return Optional.ofNullable(this.temporaryMaxBackendMemUsagePercent);
    }
    /**
     * @return Defines the limits for resources of the backend instances of the MQTT broker.
     * 
     */
    public Optional temporaryResourceLimits() {
        return Optional.ofNullable(this.temporaryResourceLimits);
    }
    /**
     * @return Number of logical backend workers per pod.
     * 
     */
    public Optional workers() {
        return Optional.ofNullable(this.workers);
    }

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

    public static Builder builder(BackendChainResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer partitions;
        private Integer redundancyFactor;
        private @Nullable Boolean temporaryDiskTransferEnabled;
        private @Nullable Integer temporaryDiskTransferHighWatermarkPercent;
        private @Nullable Integer temporaryDiskTransferLowWatermarkPercent;
        private @Nullable Integer temporaryMaxBackendMemUsagePercent;
        private @Nullable TemporaryResourceLimitsConfigResponse temporaryResourceLimits;
        private @Nullable Integer workers;
        public Builder() {}
        public Builder(BackendChainResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.partitions = defaults.partitions;
    	      this.redundancyFactor = defaults.redundancyFactor;
    	      this.temporaryDiskTransferEnabled = defaults.temporaryDiskTransferEnabled;
    	      this.temporaryDiskTransferHighWatermarkPercent = defaults.temporaryDiskTransferHighWatermarkPercent;
    	      this.temporaryDiskTransferLowWatermarkPercent = defaults.temporaryDiskTransferLowWatermarkPercent;
    	      this.temporaryMaxBackendMemUsagePercent = defaults.temporaryMaxBackendMemUsagePercent;
    	      this.temporaryResourceLimits = defaults.temporaryResourceLimits;
    	      this.workers = defaults.workers;
        }

        @CustomType.Setter
        public Builder partitions(Integer partitions) {
            if (partitions == null) {
              throw new MissingRequiredPropertyException("BackendChainResponse", "partitions");
            }
            this.partitions = partitions;
            return this;
        }
        @CustomType.Setter
        public Builder redundancyFactor(Integer redundancyFactor) {
            if (redundancyFactor == null) {
              throw new MissingRequiredPropertyException("BackendChainResponse", "redundancyFactor");
            }
            this.redundancyFactor = redundancyFactor;
            return this;
        }
        @CustomType.Setter
        public Builder temporaryDiskTransferEnabled(@Nullable Boolean temporaryDiskTransferEnabled) {

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

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

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

            this.temporaryMaxBackendMemUsagePercent = temporaryMaxBackendMemUsagePercent;
            return this;
        }
        @CustomType.Setter
        public Builder temporaryResourceLimits(@Nullable TemporaryResourceLimitsConfigResponse temporaryResourceLimits) {

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

            this.workers = workers;
            return this;
        }
        public BackendChainResponse build() {
            final var _resultValue = new BackendChainResponse();
            _resultValue.partitions = partitions;
            _resultValue.redundancyFactor = redundancyFactor;
            _resultValue.temporaryDiskTransferEnabled = temporaryDiskTransferEnabled;
            _resultValue.temporaryDiskTransferHighWatermarkPercent = temporaryDiskTransferHighWatermarkPercent;
            _resultValue.temporaryDiskTransferLowWatermarkPercent = temporaryDiskTransferLowWatermarkPercent;
            _resultValue.temporaryMaxBackendMemUsagePercent = temporaryMaxBackendMemUsagePercent;
            _resultValue.temporaryResourceLimits = temporaryResourceLimits;
            _resultValue.workers = workers;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy