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

import com.pulumi.azure.appservice.outputs.LinuxWebAppLogsApplicationLogs;
import com.pulumi.azure.appservice.outputs.LinuxWebAppLogsHttpLogs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class LinuxWebAppLogs {
    /**
     * @return A `application_logs` block as defined above.
     * 
     */
    private @Nullable LinuxWebAppLogsApplicationLogs applicationLogs;
    /**
     * @return Should detailed error messages be enabled?
     * 
     */
    private @Nullable Boolean detailedErrorMessages;
    /**
     * @return Should the failed request tracing be enabled?
     * 
     */
    private @Nullable Boolean failedRequestTracing;
    /**
     * @return An `http_logs` block as defined above.
     * 
     */
    private @Nullable LinuxWebAppLogsHttpLogs httpLogs;

    private LinuxWebAppLogs() {}
    /**
     * @return A `application_logs` block as defined above.
     * 
     */
    public Optional<LinuxWebAppLogsApplicationLogs> applicationLogs() {
        return Optional.ofNullable(this.applicationLogs);
    }
    /**
     * @return Should detailed error messages be enabled?
     * 
     */
    public Optional<Boolean> detailedErrorMessages() {
        return Optional.ofNullable(this.detailedErrorMessages);
    }
    /**
     * @return Should the failed request tracing be enabled?
     * 
     */
    public Optional<Boolean> failedRequestTracing() {
        return Optional.ofNullable(this.failedRequestTracing);
    }
    /**
     * @return An `http_logs` block as defined above.
     * 
     */
    public Optional<LinuxWebAppLogsHttpLogs> httpLogs() {
        return Optional.ofNullable(this.httpLogs);
    }

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

    public static Builder builder(LinuxWebAppLogs defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable LinuxWebAppLogsApplicationLogs applicationLogs;
        private @Nullable Boolean detailedErrorMessages;
        private @Nullable Boolean failedRequestTracing;
        private @Nullable LinuxWebAppLogsHttpLogs httpLogs;
        public Builder() {}
        public Builder(LinuxWebAppLogs defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.applicationLogs = defaults.applicationLogs;
    	      this.detailedErrorMessages = defaults.detailedErrorMessages;
    	      this.failedRequestTracing = defaults.failedRequestTracing;
    	      this.httpLogs = defaults.httpLogs;
        }

        @CustomType.Setter
        public Builder applicationLogs(@Nullable LinuxWebAppLogsApplicationLogs applicationLogs) {
            this.applicationLogs = applicationLogs;
            return this;
        }
        @CustomType.Setter
        public Builder detailedErrorMessages(@Nullable Boolean detailedErrorMessages) {
            this.detailedErrorMessages = detailedErrorMessages;
            return this;
        }
        @CustomType.Setter
        public Builder failedRequestTracing(@Nullable Boolean failedRequestTracing) {
            this.failedRequestTracing = failedRequestTracing;
            return this;
        }
        @CustomType.Setter
        public Builder httpLogs(@Nullable LinuxWebAppLogsHttpLogs httpLogs) {
            this.httpLogs = httpLogs;
            return this;
        }
        public LinuxWebAppLogs build() {
            final var o = new LinuxWebAppLogs();
            o.applicationLogs = applicationLogs;
            o.detailedErrorMessages = detailedErrorMessages;
            o.failedRequestTracing = failedRequestTracing;
            o.httpLogs = httpLogs;
            return o;
        }
    }
}
