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

com.pulumi.azure.containerapp.inputs.JobEventTriggerConfigArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.containerapp.inputs;

import com.pulumi.azure.containerapp.inputs.JobEventTriggerConfigScaleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final JobEventTriggerConfigArgs Empty = new JobEventTriggerConfigArgs();

    /**
     * Number of parallel replicas of a job that can run at a given time.
     * 
     */
    @Import(name="parallelism")
    private @Nullable Output parallelism;

    /**
     * @return Number of parallel replicas of a job that can run at a given time.
     * 
     */
    public Optional> parallelism() {
        return Optional.ofNullable(this.parallelism);
    }

    /**
     * Minimum number of successful replica completions before overall job completion.
     * 
     */
    @Import(name="replicaCompletionCount")
    private @Nullable Output replicaCompletionCount;

    /**
     * @return Minimum number of successful replica completions before overall job completion.
     * 
     */
    public Optional> replicaCompletionCount() {
        return Optional.ofNullable(this.replicaCompletionCount);
    }

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

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

    private JobEventTriggerConfigArgs() {}

    private JobEventTriggerConfigArgs(JobEventTriggerConfigArgs $) {
        this.parallelism = $.parallelism;
        this.replicaCompletionCount = $.replicaCompletionCount;
        this.scales = $.scales;
    }

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

    public static final class Builder {
        private JobEventTriggerConfigArgs $;

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

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

        /**
         * @param parallelism Number of parallel replicas of a job that can run at a given time.
         * 
         * @return builder
         * 
         */
        public Builder parallelism(@Nullable Output parallelism) {
            $.parallelism = parallelism;
            return this;
        }

        /**
         * @param parallelism Number of parallel replicas of a job that can run at a given time.
         * 
         * @return builder
         * 
         */
        public Builder parallelism(Integer parallelism) {
            return parallelism(Output.of(parallelism));
        }

        /**
         * @param replicaCompletionCount Minimum number of successful replica completions before overall job completion.
         * 
         * @return builder
         * 
         */
        public Builder replicaCompletionCount(@Nullable Output replicaCompletionCount) {
            $.replicaCompletionCount = replicaCompletionCount;
            return this;
        }

        /**
         * @param replicaCompletionCount Minimum number of successful replica completions before overall job completion.
         * 
         * @return builder
         * 
         */
        public Builder replicaCompletionCount(Integer replicaCompletionCount) {
            return replicaCompletionCount(Output.of(replicaCompletionCount));
        }

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

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

        /**
         * @param scales A `scale` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder scales(JobEventTriggerConfigScaleArgs... scales) {
            return scales(List.of(scales));
        }

        public JobEventTriggerConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy