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

com.pulumi.azurenative.app.inputs.QueueScaleRuleArgs 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.app.inputs;

import com.pulumi.azurenative.app.inputs.ScaleRuleAuthArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Container App container Azure Queue based scaling rule.
 * 
 */
public final class QueueScaleRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final QueueScaleRuleArgs Empty = new QueueScaleRuleArgs();

    /**
     * Authentication secrets for the queue scale rule.
     * 
     */
    @Import(name="auth")
    private @Nullable Output> auth;

    /**
     * @return Authentication secrets for the queue scale rule.
     * 
     */
    public Optional>> auth() {
        return Optional.ofNullable(this.auth);
    }

    /**
     * Queue length.
     * 
     */
    @Import(name="queueLength")
    private @Nullable Output queueLength;

    /**
     * @return Queue length.
     * 
     */
    public Optional> queueLength() {
        return Optional.ofNullable(this.queueLength);
    }

    /**
     * Queue name.
     * 
     */
    @Import(name="queueName")
    private @Nullable Output queueName;

    /**
     * @return Queue name.
     * 
     */
    public Optional> queueName() {
        return Optional.ofNullable(this.queueName);
    }

    private QueueScaleRuleArgs() {}

    private QueueScaleRuleArgs(QueueScaleRuleArgs $) {
        this.auth = $.auth;
        this.queueLength = $.queueLength;
        this.queueName = $.queueName;
    }

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

    public static final class Builder {
        private QueueScaleRuleArgs $;

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

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

        /**
         * @param auth Authentication secrets for the queue scale rule.
         * 
         * @return builder
         * 
         */
        public Builder auth(@Nullable Output> auth) {
            $.auth = auth;
            return this;
        }

        /**
         * @param auth Authentication secrets for the queue scale rule.
         * 
         * @return builder
         * 
         */
        public Builder auth(List auth) {
            return auth(Output.of(auth));
        }

        /**
         * @param auth Authentication secrets for the queue scale rule.
         * 
         * @return builder
         * 
         */
        public Builder auth(ScaleRuleAuthArgs... auth) {
            return auth(List.of(auth));
        }

        /**
         * @param queueLength Queue length.
         * 
         * @return builder
         * 
         */
        public Builder queueLength(@Nullable Output queueLength) {
            $.queueLength = queueLength;
            return this;
        }

        /**
         * @param queueLength Queue length.
         * 
         * @return builder
         * 
         */
        public Builder queueLength(Integer queueLength) {
            return queueLength(Output.of(queueLength));
        }

        /**
         * @param queueName Queue name.
         * 
         * @return builder
         * 
         */
        public Builder queueName(@Nullable Output queueName) {
            $.queueName = queueName;
            return this;
        }

        /**
         * @param queueName Queue name.
         * 
         * @return builder
         * 
         */
        public Builder queueName(String queueName) {
            return queueName(Output.of(queueName));
        }

        public QueueScaleRuleArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy