// *** 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.AppServiceLogsApplicationLogs;
import com.pulumi.azure.appservice.outputs.AppServiceLogsHttpLogs;
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 AppServiceLogs {
    /**
     * @return An `application_logs` block as defined below.
     * 
     */
    private @Nullable AppServiceLogsApplicationLogs applicationLogs;
    /**
     * @return Should `Detailed error messages` be enabled on this App Service? Defaults to `false`.
     * 
     */
    private @Nullable Boolean detailedErrorMessagesEnabled;
    /**
     * @return Should `Failed request tracing` be enabled on this App Service? Defaults to `false`.
     * 
     */
    private @Nullable Boolean failedRequestTracingEnabled;
    /**
     * @return An `http_logs` block as defined below.
     * 
     */
    private @Nullable AppServiceLogsHttpLogs httpLogs;

    private AppServiceLogs() {}
    /**
     * @return An `application_logs` block as defined below.
     * 
     */
    public Optional<AppServiceLogsApplicationLogs> applicationLogs() {
        return Optional.ofNullable(this.applicationLogs);
    }
    /**
     * @return Should `Detailed error messages` be enabled on this App Service? Defaults to `false`.
     * 
     */
    public Optional<Boolean> detailedErrorMessagesEnabled() {
        return Optional.ofNullable(this.detailedErrorMessagesEnabled);
    }
    /**
     * @return Should `Failed request tracing` be enabled on this App Service? Defaults to `false`.
     * 
     */
    public Optional<Boolean> failedRequestTracingEnabled() {
        return Optional.ofNullable(this.failedRequestTracingEnabled);
    }
    /**
     * @return An `http_logs` block as defined below.
     * 
     */
    public Optional<AppServiceLogsHttpLogs> httpLogs() {
        return Optional.ofNullable(this.httpLogs);
    }

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

    public static Builder builder(AppServiceLogs defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable AppServiceLogsApplicationLogs applicationLogs;
        private @Nullable Boolean detailedErrorMessagesEnabled;
        private @Nullable Boolean failedRequestTracingEnabled;
        private @Nullable AppServiceLogsHttpLogs httpLogs;
        public Builder() {}
        public Builder(AppServiceLogs defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.applicationLogs = defaults.applicationLogs;
    	      this.detailedErrorMessagesEnabled = defaults.detailedErrorMessagesEnabled;
    	      this.failedRequestTracingEnabled = defaults.failedRequestTracingEnabled;
    	      this.httpLogs = defaults.httpLogs;
        }

        @CustomType.Setter
        public Builder applicationLogs(@Nullable AppServiceLogsApplicationLogs applicationLogs) {
            this.applicationLogs = applicationLogs;
            return this;
        }
        @CustomType.Setter
        public Builder detailedErrorMessagesEnabled(@Nullable Boolean detailedErrorMessagesEnabled) {
            this.detailedErrorMessagesEnabled = detailedErrorMessagesEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder failedRequestTracingEnabled(@Nullable Boolean failedRequestTracingEnabled) {
            this.failedRequestTracingEnabled = failedRequestTracingEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder httpLogs(@Nullable AppServiceLogsHttpLogs httpLogs) {
            this.httpLogs = httpLogs;
            return this;
        }
        public AppServiceLogs build() {
            final var o = new AppServiceLogs();
            o.applicationLogs = applicationLogs;
            o.detailedErrorMessagesEnabled = detailedErrorMessagesEnabled;
            o.failedRequestTracingEnabled = failedRequestTracingEnabled;
            o.httpLogs = httpLogs;
            return o;
        }
    }
}
