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

com.pulumi.azurenative.iotoperations.inputs.BackendChainArgs 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.iotoperations.inputs;

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.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Desired properties of the backend instances of the broker
 * 
 */
public final class BackendChainArgs extends com.pulumi.resources.ResourceArgs {

    public static final BackendChainArgs Empty = new BackendChainArgs();

    /**
     * The desired number of physical backend partitions.
     * 
     */
    @Import(name="partitions", required=true)
    private Output partitions;

    /**
     * @return The desired number of physical backend partitions.
     * 
     */
    public Output partitions() {
        return this.partitions;
    }

    /**
     * The desired numbers of backend replicas (pods) in a physical partition.
     * 
     */
    @Import(name="redundancyFactor", required=true)
    private Output redundancyFactor;

    /**
     * @return The desired numbers of backend replicas (pods) in a physical partition.
     * 
     */
    public Output redundancyFactor() {
        return this.redundancyFactor;
    }

    /**
     * Number of logical backend workers per replica (pod).
     * 
     */
    @Import(name="workers")
    private @Nullable Output workers;

    /**
     * @return Number of logical backend workers per replica (pod).
     * 
     */
    public Optional> workers() {
        return Optional.ofNullable(this.workers);
    }

    private BackendChainArgs() {}

    private BackendChainArgs(BackendChainArgs $) {
        this.partitions = $.partitions;
        this.redundancyFactor = $.redundancyFactor;
        this.workers = $.workers;
    }

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

    public static final class Builder {
        private BackendChainArgs $;

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

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

        /**
         * @param partitions The desired number of physical backend partitions.
         * 
         * @return builder
         * 
         */
        public Builder partitions(Output partitions) {
            $.partitions = partitions;
            return this;
        }

        /**
         * @param partitions The desired number of physical backend partitions.
         * 
         * @return builder
         * 
         */
        public Builder partitions(Integer partitions) {
            return partitions(Output.of(partitions));
        }

        /**
         * @param redundancyFactor The desired numbers of backend replicas (pods) in a physical partition.
         * 
         * @return builder
         * 
         */
        public Builder redundancyFactor(Output redundancyFactor) {
            $.redundancyFactor = redundancyFactor;
            return this;
        }

        /**
         * @param redundancyFactor The desired numbers of backend replicas (pods) in a physical partition.
         * 
         * @return builder
         * 
         */
        public Builder redundancyFactor(Integer redundancyFactor) {
            return redundancyFactor(Output.of(redundancyFactor));
        }

        /**
         * @param workers Number of logical backend workers per replica (pod).
         * 
         * @return builder
         * 
         */
        public Builder workers(@Nullable Output workers) {
            $.workers = workers;
            return this;
        }

        /**
         * @param workers Number of logical backend workers per replica (pod).
         * 
         * @return builder
         * 
         */
        public Builder workers(Integer workers) {
            return workers(Output.of(workers));
        }

        public BackendChainArgs build() {
            if ($.partitions == null) {
                throw new MissingRequiredPropertyException("BackendChainArgs", "partitions");
            }
            if ($.redundancyFactor == null) {
                throw new MissingRequiredPropertyException("BackendChainArgs", "redundancyFactor");
            }
            $.workers = Codegen.integerProp("workers").output().arg($.workers).def(1).getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy