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

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

import com.pulumi.azurenative.appplatform.inputs.CustomScaleRuleArgs;
import com.pulumi.azurenative.appplatform.inputs.HttpScaleRuleArgs;
import com.pulumi.azurenative.appplatform.inputs.QueueScaleRuleArgs;
import com.pulumi.azurenative.appplatform.inputs.TcpScaleRuleArgs;
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;


/**
 * Azure Spring Apps App Instance 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);
    }

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

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

    private ScaleRuleArgs() {}

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

    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));
        }

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

        /**
         * @param tcp Tcp requests based scaling.
         * 
         * @return builder
         * 
         */
        public Builder tcp(TcpScaleRuleArgs tcp) {
            return tcp(Output.of(tcp));
        }

        public ScaleRuleArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy