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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.composer.outputs.EnvironmentConfigWorkloadsConfigScheduler;
import com.pulumi.gcp.composer.outputs.EnvironmentConfigWorkloadsConfigTriggerer;
import com.pulumi.gcp.composer.outputs.EnvironmentConfigWorkloadsConfigWebServer;
import com.pulumi.gcp.composer.outputs.EnvironmentConfigWorkloadsConfigWorker;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class EnvironmentConfigWorkloadsConfig {
    private @Nullable EnvironmentConfigWorkloadsConfigScheduler scheduler;
    private @Nullable EnvironmentConfigWorkloadsConfigTriggerer triggerer;
    private @Nullable EnvironmentConfigWorkloadsConfigWebServer webServer;
    private @Nullable EnvironmentConfigWorkloadsConfigWorker worker;

    private EnvironmentConfigWorkloadsConfig() {}
    public Optional<EnvironmentConfigWorkloadsConfigScheduler> scheduler() {
        return Optional.ofNullable(this.scheduler);
    }
    public Optional<EnvironmentConfigWorkloadsConfigTriggerer> triggerer() {
        return Optional.ofNullable(this.triggerer);
    }
    public Optional<EnvironmentConfigWorkloadsConfigWebServer> webServer() {
        return Optional.ofNullable(this.webServer);
    }
    public Optional<EnvironmentConfigWorkloadsConfigWorker> worker() {
        return Optional.ofNullable(this.worker);
    }

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

    public static Builder builder(EnvironmentConfigWorkloadsConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable EnvironmentConfigWorkloadsConfigScheduler scheduler;
        private @Nullable EnvironmentConfigWorkloadsConfigTriggerer triggerer;
        private @Nullable EnvironmentConfigWorkloadsConfigWebServer webServer;
        private @Nullable EnvironmentConfigWorkloadsConfigWorker worker;
        public Builder() {}
        public Builder(EnvironmentConfigWorkloadsConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.scheduler = defaults.scheduler;
    	      this.triggerer = defaults.triggerer;
    	      this.webServer = defaults.webServer;
    	      this.worker = defaults.worker;
        }

        @CustomType.Setter
        public Builder scheduler(@Nullable EnvironmentConfigWorkloadsConfigScheduler scheduler) {
            this.scheduler = scheduler;
            return this;
        }
        @CustomType.Setter
        public Builder triggerer(@Nullable EnvironmentConfigWorkloadsConfigTriggerer triggerer) {
            this.triggerer = triggerer;
            return this;
        }
        @CustomType.Setter
        public Builder webServer(@Nullable EnvironmentConfigWorkloadsConfigWebServer webServer) {
            this.webServer = webServer;
            return this;
        }
        @CustomType.Setter
        public Builder worker(@Nullable EnvironmentConfigWorkloadsConfigWorker worker) {
            this.worker = worker;
            return this;
        }
        public EnvironmentConfigWorkloadsConfig build() {
            final var o = new EnvironmentConfigWorkloadsConfig();
            o.scheduler = scheduler;
            o.triggerer = triggerer;
            o.webServer = webServer;
            o.worker = worker;
            return o;
        }
    }
}
