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

com.pulumi.azurenative.web.inputs.ScaleRuleArgs 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.web.inputs;

import com.pulumi.azurenative.web.inputs.CustomScaleRuleArgs;
import com.pulumi.azurenative.web.inputs.HttpScaleRuleArgs;
import com.pulumi.azurenative.web.inputs.QueueScaleRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Container App container scaling rule.
 * 
 */
public final class ScaleRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final ScaleRuleArgs Empty = new ScaleRuleArgs();

    /**
     * Azure Queue based scaling.
     * 
     */
    @Import(name="azureQueue")
    private @Nullable Output azureQueue;

    /**
     * @return Azure Queue based scaling.
     * 
     */
    public Optional> azureQueue() {
        return Optional.ofNullable(this.azureQueue);
    }

    /**
     * Custom scale rule.
     * 
     */
    @Import(name="custom")
    private @Nullable Output custom;

    /**
     * @return Custom scale rule.
     * 
     */
    public Optional> custom() {
        return Optional.ofNullable(this.custom);
    }

    /**
     * HTTP requests based scaling.
     * 
     */
    @Import(name="http")
    private @Nullable Output http;

    /**
     * @return HTTP requests based scaling.
     * 
     */
    public Optional> http() {
        return Optional.ofNullable(this.http);
    }

    /**
     * Scale Rule Name
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Scale Rule Name
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    private ScaleRuleArgs() {}

    private ScaleRuleArgs(ScaleRuleArgs $) {
        this.azureQueue = $.azureQueue;
        this.custom = $.custom;
        this.http = $.http;
        this.name = $.name;
    }

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

    public static final class Builder {
        private ScaleRuleArgs $;

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

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

        /**
         * @param azureQueue Azure Queue based scaling.
         * 
         * @return builder
         * 
         */
        public Builder azureQueue(@Nullable Output azureQueue) {
            $.azureQueue = azureQueue;
            return this;
        }

        /**
         * @param azureQueue Azure Queue based scaling.
         * 
         * @return builder
         * 
         */
        public Builder azureQueue(QueueScaleRuleArgs azureQueue) {
            return azureQueue(Output.of(azureQueue));
        }

        /**
         * @param custom Custom scale rule.
         * 
         * @return builder
         * 
         */
        public Builder custom(@Nullable Output custom) {
            $.custom = custom;
            return this;
        }

        /**
         * @param custom Custom scale rule.
         * 
         * @return builder
         * 
         */
        public Builder custom(CustomScaleRuleArgs custom) {
            return custom(Output.of(custom));
        }

        /**
         * @param http HTTP requests based scaling.
         * 
         * @return builder
         * 
         */
        public Builder http(@Nullable Output http) {
            $.http = http;
            return this;
        }

        /**
         * @param http HTTP requests based scaling.
         * 
         * @return builder
         * 
         */
        public Builder http(HttpScaleRuleArgs http) {
            return http(Output.of(http));
        }

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

        /**
         * @param name Scale Rule Name
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public ScaleRuleArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy