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

import com.pulumi.azure.appservice.inputs.LinuxWebAppLogsApplicationLogsArgs;
import com.pulumi.azure.appservice.inputs.LinuxWebAppLogsHttpLogsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class LinuxWebAppLogsArgs extends com.pulumi.resources.ResourceArgs {

    public static final LinuxWebAppLogsArgs Empty = new LinuxWebAppLogsArgs();

    /**
     * A `application_logs` block as defined above.
     * 
     */
    @Import(name="applicationLogs")
    private @Nullable Output<LinuxWebAppLogsApplicationLogsArgs> applicationLogs;

    /**
     * @return A `application_logs` block as defined above.
     * 
     */
    public Optional<Output<LinuxWebAppLogsApplicationLogsArgs>> applicationLogs() {
        return Optional.ofNullable(this.applicationLogs);
    }

    /**
     * Should detailed error messages be enabled?
     * 
     */
    @Import(name="detailedErrorMessages")
    private @Nullable Output<Boolean> detailedErrorMessages;

    /**
     * @return Should detailed error messages be enabled?
     * 
     */
    public Optional<Output<Boolean>> detailedErrorMessages() {
        return Optional.ofNullable(this.detailedErrorMessages);
    }

    /**
     * Should the failed request tracing be enabled?
     * 
     */
    @Import(name="failedRequestTracing")
    private @Nullable Output<Boolean> failedRequestTracing;

    /**
     * @return Should the failed request tracing be enabled?
     * 
     */
    public Optional<Output<Boolean>> failedRequestTracing() {
        return Optional.ofNullable(this.failedRequestTracing);
    }

    /**
     * An `http_logs` block as defined above.
     * 
     */
    @Import(name="httpLogs")
    private @Nullable Output<LinuxWebAppLogsHttpLogsArgs> httpLogs;

    /**
     * @return An `http_logs` block as defined above.
     * 
     */
    public Optional<Output<LinuxWebAppLogsHttpLogsArgs>> httpLogs() {
        return Optional.ofNullable(this.httpLogs);
    }

    private LinuxWebAppLogsArgs() {}

    private LinuxWebAppLogsArgs(LinuxWebAppLogsArgs $) {
        this.applicationLogs = $.applicationLogs;
        this.detailedErrorMessages = $.detailedErrorMessages;
        this.failedRequestTracing = $.failedRequestTracing;
        this.httpLogs = $.httpLogs;
    }

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

    public static final class Builder {
        private LinuxWebAppLogsArgs $;

        public Builder() {
            $ = new LinuxWebAppLogsArgs();
        }

        public Builder(LinuxWebAppLogsArgs defaults) {
            $ = new LinuxWebAppLogsArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param applicationLogs A `application_logs` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder applicationLogs(@Nullable Output<LinuxWebAppLogsApplicationLogsArgs> applicationLogs) {
            $.applicationLogs = applicationLogs;
            return this;
        }

        /**
         * @param applicationLogs A `application_logs` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder applicationLogs(LinuxWebAppLogsApplicationLogsArgs applicationLogs) {
            return applicationLogs(Output.of(applicationLogs));
        }

        /**
         * @param detailedErrorMessages Should detailed error messages be enabled?
         * 
         * @return builder
         * 
         */
        public Builder detailedErrorMessages(@Nullable Output<Boolean> detailedErrorMessages) {
            $.detailedErrorMessages = detailedErrorMessages;
            return this;
        }

        /**
         * @param detailedErrorMessages Should detailed error messages be enabled?
         * 
         * @return builder
         * 
         */
        public Builder detailedErrorMessages(Boolean detailedErrorMessages) {
            return detailedErrorMessages(Output.of(detailedErrorMessages));
        }

        /**
         * @param failedRequestTracing Should the failed request tracing be enabled?
         * 
         * @return builder
         * 
         */
        public Builder failedRequestTracing(@Nullable Output<Boolean> failedRequestTracing) {
            $.failedRequestTracing = failedRequestTracing;
            return this;
        }

        /**
         * @param failedRequestTracing Should the failed request tracing be enabled?
         * 
         * @return builder
         * 
         */
        public Builder failedRequestTracing(Boolean failedRequestTracing) {
            return failedRequestTracing(Output.of(failedRequestTracing));
        }

        /**
         * @param httpLogs An `http_logs` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder httpLogs(@Nullable Output<LinuxWebAppLogsHttpLogsArgs> httpLogs) {
            $.httpLogs = httpLogs;
            return this;
        }

        /**
         * @param httpLogs An `http_logs` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder httpLogs(LinuxWebAppLogsHttpLogsArgs httpLogs) {
            return httpLogs(Output.of(httpLogs));
        }

        public LinuxWebAppLogsArgs build() {
            return $;
        }
    }

}
