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

com.pulumi.azurenative.appplatform.inputs.ManualJobTriggerConfigArgs 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Configuration for manual triggered job
 * 
 */
public final class ManualJobTriggerConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final ManualJobTriggerConfigArgs Empty = new ManualJobTriggerConfigArgs();

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

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

    /**
     * Maximum number of retries before failing the job.
     * 
     */
    @Import(name="retryLimit")
    private @Nullable Output retryLimit;

    /**
     * @return Maximum number of retries before failing the job.
     * 
     */
    public Optional> retryLimit() {
        return Optional.ofNullable(this.retryLimit);
    }

    /**
     * Maximum number of seconds an execution is allowed to run.
     * 
     */
    @Import(name="timeoutInSeconds")
    private @Nullable Output timeoutInSeconds;

    /**
     * @return Maximum number of seconds an execution is allowed to run.
     * 
     */
    public Optional> timeoutInSeconds() {
        return Optional.ofNullable(this.timeoutInSeconds);
    }

    /**
     * Type of job trigger
     * Expected value is 'Manual'.
     * 
     */
    @Import(name="triggerType", required=true)
    private Output triggerType;

    /**
     * @return Type of job trigger
     * Expected value is 'Manual'.
     * 
     */
    public Output triggerType() {
        return this.triggerType;
    }

    private ManualJobTriggerConfigArgs() {}

    private ManualJobTriggerConfigArgs(ManualJobTriggerConfigArgs $) {
        this.parallelism = $.parallelism;
        this.retryLimit = $.retryLimit;
        this.timeoutInSeconds = $.timeoutInSeconds;
        this.triggerType = $.triggerType;
    }

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

    public static final class Builder {
        private ManualJobTriggerConfigArgs $;

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

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

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

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

        /**
         * @param retryLimit Maximum number of retries before failing the job.
         * 
         * @return builder
         * 
         */
        public Builder retryLimit(@Nullable Output retryLimit) {
            $.retryLimit = retryLimit;
            return this;
        }

        /**
         * @param retryLimit Maximum number of retries before failing the job.
         * 
         * @return builder
         * 
         */
        public Builder retryLimit(Integer retryLimit) {
            return retryLimit(Output.of(retryLimit));
        }

        /**
         * @param timeoutInSeconds Maximum number of seconds an execution is allowed to run.
         * 
         * @return builder
         * 
         */
        public Builder timeoutInSeconds(@Nullable Output timeoutInSeconds) {
            $.timeoutInSeconds = timeoutInSeconds;
            return this;
        }

        /**
         * @param timeoutInSeconds Maximum number of seconds an execution is allowed to run.
         * 
         * @return builder
         * 
         */
        public Builder timeoutInSeconds(Integer timeoutInSeconds) {
            return timeoutInSeconds(Output.of(timeoutInSeconds));
        }

        /**
         * @param triggerType Type of job trigger
         * Expected value is 'Manual'.
         * 
         * @return builder
         * 
         */
        public Builder triggerType(Output triggerType) {
            $.triggerType = triggerType;
            return this;
        }

        /**
         * @param triggerType Type of job trigger
         * Expected value is 'Manual'.
         * 
         * @return builder
         * 
         */
        public Builder triggerType(String triggerType) {
            return triggerType(Output.of(triggerType));
        }

        public ManualJobTriggerConfigArgs build() {
            $.triggerType = Codegen.stringProp("triggerType").output().arg($.triggerType).def("Manual").require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy