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

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

import com.pulumi.azurenative.app.inputs.ScaleRuleAuthArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Scaling rule.
 * 
 */
public final class JobScaleRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final JobScaleRuleArgs Empty = new JobScaleRuleArgs();

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

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

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

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

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

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

    /**
     * Type of the scale rule
     * eg: azure-servicebus, redis etc.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Type of the scale rule
     * eg: azure-servicebus, redis etc.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private JobScaleRuleArgs() {}

    private JobScaleRuleArgs(JobScaleRuleArgs $) {
        this.auth = $.auth;
        this.metadata = $.metadata;
        this.name = $.name;
        this.type = $.type;
    }

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

    public static final class Builder {
        private JobScaleRuleArgs $;

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

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

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

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

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

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

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

        /**
         * @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 type Type of the scale rule
         * eg: azure-servicebus, redis etc.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of the scale rule
         * eg: azure-servicebus, redis etc.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public JobScaleRuleArgs build() {
            return $;
        }
    }

}