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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.cloudfunctionsv2.outputs.GetFunctionBuildConfigSourceRepoSource;
import com.pulumi.gcp.cloudfunctionsv2.outputs.GetFunctionBuildConfigSourceStorageSource;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetFunctionBuildConfigSource {
    private List<GetFunctionBuildConfigSourceRepoSource> repoSources;
    private List<GetFunctionBuildConfigSourceStorageSource> storageSources;

    private GetFunctionBuildConfigSource() {}
    public List<GetFunctionBuildConfigSourceRepoSource> repoSources() {
        return this.repoSources;
    }
    public List<GetFunctionBuildConfigSourceStorageSource> storageSources() {
        return this.storageSources;
    }

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

    public static Builder builder(GetFunctionBuildConfigSource defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<GetFunctionBuildConfigSourceRepoSource> repoSources;
        private List<GetFunctionBuildConfigSourceStorageSource> storageSources;
        public Builder() {}
        public Builder(GetFunctionBuildConfigSource defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.repoSources = defaults.repoSources;
    	      this.storageSources = defaults.storageSources;
        }

        @CustomType.Setter
        public Builder repoSources(List<GetFunctionBuildConfigSourceRepoSource> repoSources) {
            this.repoSources = Objects.requireNonNull(repoSources);
            return this;
        }
        public Builder repoSources(GetFunctionBuildConfigSourceRepoSource... repoSources) {
            return repoSources(List.of(repoSources));
        }
        @CustomType.Setter
        public Builder storageSources(List<GetFunctionBuildConfigSourceStorageSource> storageSources) {
            this.storageSources = Objects.requireNonNull(storageSources);
            return this;
        }
        public Builder storageSources(GetFunctionBuildConfigSourceStorageSource... storageSources) {
            return storageSources(List.of(storageSources));
        }
        public GetFunctionBuildConfigSource build() {
            final var o = new GetFunctionBuildConfigSource();
            o.repoSources = repoSources;
            o.storageSources = storageSources;
            return o;
        }
    }
}
