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

com.pulumi.azurenative.iotoperationsmq.inputs.FrontendArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.iotoperationsmq.inputs.TemporaryResourceLimitsConfigArgs;
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 Frontend Instances of the DMQTT Broker
 * 
 */
public final class FrontendArgs extends com.pulumi.resources.ResourceArgs {

    public static final FrontendArgs Empty = new FrontendArgs();

    /**
     * Replicas is desired number of frontend replicas of the given distributed MQTT broker.
     * 
     */
    @Import(name="replicas", required=true)
    private Output replicas;

    /**
     * @return Replicas is desired number of frontend replicas of the given distributed MQTT broker.
     * 
     */
    public Output replicas() {
        return this.replicas;
    }

    /**
     * Defines the limits for resources of the frontend instances of the MQTT broker.
     * 
     */
    @Import(name="temporaryResourceLimits")
    private @Nullable Output temporaryResourceLimits;

    /**
     * @return Defines the limits for resources of the frontend instances of the MQTT broker.
     * 
     */
    public Optional> temporaryResourceLimits() {
        return Optional.ofNullable(this.temporaryResourceLimits);
    }

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

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

    private FrontendArgs() {}

    private FrontendArgs(FrontendArgs $) {
        this.replicas = $.replicas;
        this.temporaryResourceLimits = $.temporaryResourceLimits;
        this.workers = $.workers;
    }

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

    public static final class Builder {
        private FrontendArgs $;

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

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

        /**
         * @param replicas Replicas is desired number of frontend replicas of the given distributed MQTT broker.
         * 
         * @return builder
         * 
         */
        public Builder replicas(Output replicas) {
            $.replicas = replicas;
            return this;
        }

        /**
         * @param replicas Replicas is desired number of frontend replicas of the given distributed MQTT broker.
         * 
         * @return builder
         * 
         */
        public Builder replicas(Integer replicas) {
            return replicas(Output.of(replicas));
        }

        /**
         * @param temporaryResourceLimits Defines the limits for resources of the frontend instances of the MQTT broker.
         * 
         * @return builder
         * 
         */
        public Builder temporaryResourceLimits(@Nullable Output temporaryResourceLimits) {
            $.temporaryResourceLimits = temporaryResourceLimits;
            return this;
        }

        /**
         * @param temporaryResourceLimits Defines the limits for resources of the frontend instances of the MQTT broker.
         * 
         * @return builder
         * 
         */
        public Builder temporaryResourceLimits(TemporaryResourceLimitsConfigArgs temporaryResourceLimits) {
            return temporaryResourceLimits(Output.of(temporaryResourceLimits));
        }

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

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

        public FrontendArgs build() {
            if ($.replicas == null) {
                throw new MissingRequiredPropertyException("FrontendArgs", "replicas");
            }
            $.workers = Codegen.integerProp("workers").output().arg($.workers).def(2).getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy