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

com.pulumi.azurenative.appplatform.inputs.HttpScaleRuleArgs 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.ScaleRuleAuthArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Azure Spring Apps App Instance Http scaling rule.
 * 
 */
public final class HttpScaleRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final HttpScaleRuleArgs Empty = new HttpScaleRuleArgs();

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

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

    /**
     * Metadata properties to describe http scale rule.
     * 
     */
    @Import(name="metadata")
    private @Nullable Output> metadata;

    /**
     * @return Metadata properties to describe http scale rule.
     * 
     */
    public Optional>> metadata() {
        return Optional.ofNullable(this.metadata);
    }

    private HttpScaleRuleArgs() {}

    private HttpScaleRuleArgs(HttpScaleRuleArgs $) {
        this.auth = $.auth;
        this.metadata = $.metadata;
    }

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

    public static final class Builder {
        private HttpScaleRuleArgs $;

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

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

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

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

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

        /**
         * @param metadata Metadata properties to describe http scale rule.
         * 
         * @return builder
         * 
         */
        public Builder metadata(@Nullable Output> metadata) {
            $.metadata = metadata;
            return this;
        }

        /**
         * @param metadata Metadata properties to describe http scale rule.
         * 
         * @return builder
         * 
         */
        public Builder metadata(Map metadata) {
            return metadata(Output.of(metadata));
        }

        public HttpScaleRuleArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy