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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.firebaserules.outputs.RulesetSourceFile;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RulesetSource {
    /**
     * @return `File` set constituting the `Source` bundle.
     * 
     */
    private List<RulesetSourceFile> files;
    /**
     * @return `Language` of the `Source` bundle. If unspecified, the language will default to `FIREBASE_RULES`. Possible values: LANGUAGE_UNSPECIFIED, FIREBASE_RULES, EVENT_FLOW_TRIGGERS
     * 
     */
    private @Nullable String language;

    private RulesetSource() {}
    /**
     * @return `File` set constituting the `Source` bundle.
     * 
     */
    public List<RulesetSourceFile> files() {
        return this.files;
    }
    /**
     * @return `Language` of the `Source` bundle. If unspecified, the language will default to `FIREBASE_RULES`. Possible values: LANGUAGE_UNSPECIFIED, FIREBASE_RULES, EVENT_FLOW_TRIGGERS
     * 
     */
    public Optional<String> language() {
        return Optional.ofNullable(this.language);
    }

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

    public static Builder builder(RulesetSource defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<RulesetSourceFile> files;
        private @Nullable String language;
        public Builder() {}
        public Builder(RulesetSource defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.files = defaults.files;
    	      this.language = defaults.language;
        }

        @CustomType.Setter
        public Builder files(List<RulesetSourceFile> files) {
            this.files = Objects.requireNonNull(files);
            return this;
        }
        public Builder files(RulesetSourceFile... files) {
            return files(List.of(files));
        }
        @CustomType.Setter
        public Builder language(@Nullable String language) {
            this.language = language;
            return this;
        }
        public RulesetSource build() {
            final var o = new RulesetSource();
            o.files = files;
            o.language = language;
            return o;
        }
    }
}
