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

com.pulumi.azurenative.app.outputs.JobConfigurationResponse Maven / Gradle / Ivy

There is a newer version: 2.82.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.outputs;

import com.pulumi.azurenative.app.outputs.JobConfigurationResponseEventTriggerConfig;
import com.pulumi.azurenative.app.outputs.JobConfigurationResponseManualTriggerConfig;
import com.pulumi.azurenative.app.outputs.JobConfigurationResponseScheduleTriggerConfig;
import com.pulumi.azurenative.app.outputs.RegistryCredentialsResponse;
import com.pulumi.azurenative.app.outputs.SecretResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class JobConfigurationResponse {
    /**
     * @return Trigger configuration of an event driven job.
     * 
     */
    private @Nullable JobConfigurationResponseEventTriggerConfig eventTriggerConfig;
    /**
     * @return Manual trigger configuration for a single execution job. Properties replicaCompletionCount and parallelism would be set to 1 by default
     * 
     */
    private @Nullable JobConfigurationResponseManualTriggerConfig manualTriggerConfig;
    /**
     * @return Collection of private container registry credentials used by a Container apps job
     * 
     */
    private @Nullable List registries;
    /**
     * @return Maximum number of retries before failing the job.
     * 
     */
    private @Nullable Integer replicaRetryLimit;
    /**
     * @return Maximum number of seconds a replica is allowed to run.
     * 
     */
    private Integer replicaTimeout;
    /**
     * @return Cron formatted repeating trigger schedule ("* * * * *") for cronjobs. Properties completions and parallelism would be set to 1 by default
     * 
     */
    private @Nullable JobConfigurationResponseScheduleTriggerConfig scheduleTriggerConfig;
    /**
     * @return Collection of secrets used by a Container Apps Job
     * 
     */
    private @Nullable List secrets;
    /**
     * @return Trigger type of the job
     * 
     */
    private String triggerType;

    private JobConfigurationResponse() {}
    /**
     * @return Trigger configuration of an event driven job.
     * 
     */
    public Optional eventTriggerConfig() {
        return Optional.ofNullable(this.eventTriggerConfig);
    }
    /**
     * @return Manual trigger configuration for a single execution job. Properties replicaCompletionCount and parallelism would be set to 1 by default
     * 
     */
    public Optional manualTriggerConfig() {
        return Optional.ofNullable(this.manualTriggerConfig);
    }
    /**
     * @return Collection of private container registry credentials used by a Container apps job
     * 
     */
    public List registries() {
        return this.registries == null ? List.of() : this.registries;
    }
    /**
     * @return Maximum number of retries before failing the job.
     * 
     */
    public Optional replicaRetryLimit() {
        return Optional.ofNullable(this.replicaRetryLimit);
    }
    /**
     * @return Maximum number of seconds a replica is allowed to run.
     * 
     */
    public Integer replicaTimeout() {
        return this.replicaTimeout;
    }
    /**
     * @return Cron formatted repeating trigger schedule ("* * * * *") for cronjobs. Properties completions and parallelism would be set to 1 by default
     * 
     */
    public Optional scheduleTriggerConfig() {
        return Optional.ofNullable(this.scheduleTriggerConfig);
    }
    /**
     * @return Collection of secrets used by a Container Apps Job
     * 
     */
    public List secrets() {
        return this.secrets == null ? List.of() : this.secrets;
    }
    /**
     * @return Trigger type of the job
     * 
     */
    public String triggerType() {
        return this.triggerType;
    }

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

    public static Builder builder(JobConfigurationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable JobConfigurationResponseEventTriggerConfig eventTriggerConfig;
        private @Nullable JobConfigurationResponseManualTriggerConfig manualTriggerConfig;
        private @Nullable List registries;
        private @Nullable Integer replicaRetryLimit;
        private Integer replicaTimeout;
        private @Nullable JobConfigurationResponseScheduleTriggerConfig scheduleTriggerConfig;
        private @Nullable List secrets;
        private String triggerType;
        public Builder() {}
        public Builder(JobConfigurationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.eventTriggerConfig = defaults.eventTriggerConfig;
    	      this.manualTriggerConfig = defaults.manualTriggerConfig;
    	      this.registries = defaults.registries;
    	      this.replicaRetryLimit = defaults.replicaRetryLimit;
    	      this.replicaTimeout = defaults.replicaTimeout;
    	      this.scheduleTriggerConfig = defaults.scheduleTriggerConfig;
    	      this.secrets = defaults.secrets;
    	      this.triggerType = defaults.triggerType;
        }

        @CustomType.Setter
        public Builder eventTriggerConfig(@Nullable JobConfigurationResponseEventTriggerConfig eventTriggerConfig) {

            this.eventTriggerConfig = eventTriggerConfig;
            return this;
        }
        @CustomType.Setter
        public Builder manualTriggerConfig(@Nullable JobConfigurationResponseManualTriggerConfig manualTriggerConfig) {

            this.manualTriggerConfig = manualTriggerConfig;
            return this;
        }
        @CustomType.Setter
        public Builder registries(@Nullable List registries) {

            this.registries = registries;
            return this;
        }
        public Builder registries(RegistryCredentialsResponse... registries) {
            return registries(List.of(registries));
        }
        @CustomType.Setter
        public Builder replicaRetryLimit(@Nullable Integer replicaRetryLimit) {

            this.replicaRetryLimit = replicaRetryLimit;
            return this;
        }
        @CustomType.Setter
        public Builder replicaTimeout(Integer replicaTimeout) {
            if (replicaTimeout == null) {
              throw new MissingRequiredPropertyException("JobConfigurationResponse", "replicaTimeout");
            }
            this.replicaTimeout = replicaTimeout;
            return this;
        }
        @CustomType.Setter
        public Builder scheduleTriggerConfig(@Nullable JobConfigurationResponseScheduleTriggerConfig scheduleTriggerConfig) {

            this.scheduleTriggerConfig = scheduleTriggerConfig;
            return this;
        }
        @CustomType.Setter
        public Builder secrets(@Nullable List secrets) {

            this.secrets = secrets;
            return this;
        }
        public Builder secrets(SecretResponse... secrets) {
            return secrets(List.of(secrets));
        }
        @CustomType.Setter
        public Builder triggerType(String triggerType) {
            if (triggerType == null) {
              throw new MissingRequiredPropertyException("JobConfigurationResponse", "triggerType");
            }
            this.triggerType = triggerType;
            return this;
        }
        public JobConfigurationResponse build() {
            final var _resultValue = new JobConfigurationResponse();
            _resultValue.eventTriggerConfig = eventTriggerConfig;
            _resultValue.manualTriggerConfig = manualTriggerConfig;
            _resultValue.registries = registries;
            _resultValue.replicaRetryLimit = replicaRetryLimit;
            _resultValue.replicaTimeout = replicaTimeout;
            _resultValue.scheduleTriggerConfig = scheduleTriggerConfig;
            _resultValue.secrets = secrets;
            _resultValue.triggerType = triggerType;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy