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

com.pulumi.azure.containerapp.inputs.JobEventTriggerConfigScaleRuleArgs 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.inputs;

import com.pulumi.azure.containerapp.inputs.JobEventTriggerConfigScaleRuleAuthenticationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class JobEventTriggerConfigScaleRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final JobEventTriggerConfigScaleRuleArgs Empty = new JobEventTriggerConfigScaleRuleArgs();

    /**
     * A `authentication` block as defined below.
     * 
     */
    @Import(name="authentications")
    private @Nullable Output> authentications;

    /**
     * @return A `authentication` block as defined below.
     * 
     */
    public Optional>> authentications() {
        return Optional.ofNullable(this.authentications);
    }

    /**
     * Type of the scale rule.
     * 
     */
    @Import(name="customRuleType", required=true)
    private Output customRuleType;

    /**
     * @return Type of the scale rule.
     * 
     */
    public Output customRuleType() {
        return this.customRuleType;
    }

    /**
     * Metadata properties to describe the scale rule.
     * 
     */
    @Import(name="metadata", required=true)
    private Output> metadata;

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

    /**
     * Name of the scale rule.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of the scale rule.
     * 
     */
    public Output name() {
        return this.name;
    }

    private JobEventTriggerConfigScaleRuleArgs() {}

    private JobEventTriggerConfigScaleRuleArgs(JobEventTriggerConfigScaleRuleArgs $) {
        this.authentications = $.authentications;
        this.customRuleType = $.customRuleType;
        this.metadata = $.metadata;
        this.name = $.name;
    }

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

    public static final class Builder {
        private JobEventTriggerConfigScaleRuleArgs $;

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

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

        /**
         * @param authentications A `authentication` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder authentications(@Nullable Output> authentications) {
            $.authentications = authentications;
            return this;
        }

        /**
         * @param authentications A `authentication` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder authentications(List authentications) {
            return authentications(Output.of(authentications));
        }

        /**
         * @param authentications A `authentication` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder authentications(JobEventTriggerConfigScaleRuleAuthenticationArgs... authentications) {
            return authentications(List.of(authentications));
        }

        /**
         * @param customRuleType Type of the scale rule.
         * 
         * @return builder
         * 
         */
        public Builder customRuleType(Output customRuleType) {
            $.customRuleType = customRuleType;
            return this;
        }

        /**
         * @param customRuleType Type of the scale rule.
         * 
         * @return builder
         * 
         */
        public Builder customRuleType(String customRuleType) {
            return customRuleType(Output.of(customRuleType));
        }

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

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

        /**
         * @param name Name of the scale rule.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the scale rule.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public JobEventTriggerConfigScaleRuleArgs build() {
            if ($.customRuleType == null) {
                throw new MissingRequiredPropertyException("JobEventTriggerConfigScaleRuleArgs", "customRuleType");
            }
            if ($.metadata == null) {
                throw new MissingRequiredPropertyException("JobEventTriggerConfigScaleRuleArgs", "metadata");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("JobEventTriggerConfigScaleRuleArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy