sdk/java/src/main/java/com/pulumi/ovh/Dbaas/outputs/LogsInputConfigurationLogstash.java
// *** 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.ovh.Dbaas.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class LogsInputConfigurationLogstash {
    /**
     * @return The filter section of logstash.conf
     * 
     */
    private @Nullable String filterSection;
    /**
     * @return The filter section of logstash.conf
     * 
     */
    private String inputSection;
    /**
     * @return The list of customs Grok patterns
     * 
     */
    private @Nullable String patternSection;

    private LogsInputConfigurationLogstash() {}
    /**
     * @return The filter section of logstash.conf
     * 
     */
    public Optional<String> filterSection() {
        return Optional.ofNullable(this.filterSection);
    }
    /**
     * @return The filter section of logstash.conf
     * 
     */
    public String inputSection() {
        return this.inputSection;
    }
    /**
     * @return The list of customs Grok patterns
     * 
     */
    public Optional<String> patternSection() {
        return Optional.ofNullable(this.patternSection);
    }

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

    public static Builder builder(LogsInputConfigurationLogstash defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String filterSection;
        private String inputSection;
        private @Nullable String patternSection;
        public Builder() {}
        public Builder(LogsInputConfigurationLogstash defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.filterSection = defaults.filterSection;
    	      this.inputSection = defaults.inputSection;
    	      this.patternSection = defaults.patternSection;
        }

        @CustomType.Setter
        public Builder filterSection(@Nullable String filterSection) {
            this.filterSection = filterSection;
            return this;
        }
        @CustomType.Setter
        public Builder inputSection(String inputSection) {
            this.inputSection = Objects.requireNonNull(inputSection);
            return this;
        }
        @CustomType.Setter
        public Builder patternSection(@Nullable String patternSection) {
            this.patternSection = patternSection;
            return this;
        }
        public LogsInputConfigurationLogstash build() {
            final var o = new LogsInputConfigurationLogstash();
            o.filterSection = filterSection;
            o.inputSection = inputSection;
            o.patternSection = patternSection;
            return o;
        }
    }
}
