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

com.pulumi.azure.containerapp.outputs.AppTemplateHttpScaleRuleAuthentication Maven / Gradle / Ivy

// *** 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.azure.containerapp.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AppTemplateHttpScaleRuleAuthentication {
    /**
     * @return The name of the Container App Secret to use for this Scale Rule Authentication.
     * 
     */
    private String secretName;
    /**
     * @return The Trigger Parameter name to use the supply the value retrieved from the `secret_name`.
     * 
     */
    private @Nullable String triggerParameter;

    private AppTemplateHttpScaleRuleAuthentication() {}
    /**
     * @return The name of the Container App Secret to use for this Scale Rule Authentication.
     * 
     */
    public String secretName() {
        return this.secretName;
    }
    /**
     * @return The Trigger Parameter name to use the supply the value retrieved from the `secret_name`.
     * 
     */
    public Optional triggerParameter() {
        return Optional.ofNullable(this.triggerParameter);
    }

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

    public static Builder builder(AppTemplateHttpScaleRuleAuthentication defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String secretName;
        private @Nullable String triggerParameter;
        public Builder() {}
        public Builder(AppTemplateHttpScaleRuleAuthentication defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.secretName = defaults.secretName;
    	      this.triggerParameter = defaults.triggerParameter;
        }

        @CustomType.Setter
        public Builder secretName(String secretName) {
            if (secretName == null) {
              throw new MissingRequiredPropertyException("AppTemplateHttpScaleRuleAuthentication", "secretName");
            }
            this.secretName = secretName;
            return this;
        }
        @CustomType.Setter
        public Builder triggerParameter(@Nullable String triggerParameter) {

            this.triggerParameter = triggerParameter;
            return this;
        }
        public AppTemplateHttpScaleRuleAuthentication build() {
            final var _resultValue = new AppTemplateHttpScaleRuleAuthentication();
            _resultValue.secretName = secretName;
            _resultValue.triggerParameter = triggerParameter;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy