// *** 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.gcp.dataproc.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;

@CustomType
public final class JobScheduling {
    private Integer maxFailuresPerHour;
    private Integer maxFailuresTotal;

    private JobScheduling() {}
    public Integer maxFailuresPerHour() {
        return this.maxFailuresPerHour;
    }
    public Integer maxFailuresTotal() {
        return this.maxFailuresTotal;
    }

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

    public static Builder builder(JobScheduling defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer maxFailuresPerHour;
        private Integer maxFailuresTotal;
        public Builder() {}
        public Builder(JobScheduling defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.maxFailuresPerHour = defaults.maxFailuresPerHour;
    	      this.maxFailuresTotal = defaults.maxFailuresTotal;
        }

        @CustomType.Setter
        public Builder maxFailuresPerHour(Integer maxFailuresPerHour) {
            this.maxFailuresPerHour = Objects.requireNonNull(maxFailuresPerHour);
            return this;
        }
        @CustomType.Setter
        public Builder maxFailuresTotal(Integer maxFailuresTotal) {
            this.maxFailuresTotal = Objects.requireNonNull(maxFailuresTotal);
            return this;
        }
        public JobScheduling build() {
            final var o = new JobScheduling();
            o.maxFailuresPerHour = maxFailuresPerHour;
            o.maxFailuresTotal = maxFailuresTotal;
            return o;
        }
    }
}
