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

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

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

@CustomType
public final class BackendChainResponse {
    /**
     * @return The desired number of physical backend partitions.
     * 
     */
    private Integer partitions;
    /**
     * @return The desired numbers of backend replicas (pods) in a physical partition.
     * 
     */
    private Integer redundancyFactor;
    /**
     * @return Number of logical backend workers per replica (pod).
     * 
     */
    private @Nullable Integer workers;

    private BackendChainResponse() {}
    /**
     * @return The desired number of physical backend partitions.
     * 
     */
    public Integer partitions() {
        return this.partitions;
    }
    /**
     * @return The desired numbers of backend replicas (pods) in a physical partition.
     * 
     */
    public Integer redundancyFactor() {
        return this.redundancyFactor;
    }
    /**
     * @return Number of logical backend workers per replica (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 Integer workers;
        public Builder() {}
        public Builder(BackendChainResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.partitions = defaults.partitions;
    	      this.redundancyFactor = defaults.redundancyFactor;
    	      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 workers(@Nullable Integer workers) {

            this.workers = workers;
            return this;
        }
        public BackendChainResponse build() {
            final var _resultValue = new BackendChainResponse();
            _resultValue.partitions = partitions;
            _resultValue.redundancyFactor = redundancyFactor;
            _resultValue.workers = workers;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy