All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.appservice.inputs.SlotLogsArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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.SlotLogsApplicationLogsArgs;
import com.pulumi.azure.appservice.inputs.SlotLogsHttpLogsArgs;
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 SlotLogsArgs extends com.pulumi.resources.ResourceArgs {

    public static final SlotLogsArgs Empty = new SlotLogsArgs();

    /**
     * An `application_logs` block as defined below.
     * 
     */
    @Import(name="applicationLogs")
    private @Nullable Output applicationLogs;

    /**
     * @return An `application_logs` block as defined below.
     * 
     */
    public Optional> applicationLogs() {
        return Optional.ofNullable(this.applicationLogs);
    }

    /**
     * Should `Detailed error messages` be enabled on this App Service slot? Defaults to `false`.
     * 
     */
    @Import(name="detailedErrorMessagesEnabled")
    private @Nullable Output detailedErrorMessagesEnabled;

    /**
     * @return Should `Detailed error messages` be enabled on this App Service slot? Defaults to `false`.
     * 
     */
    public Optional> detailedErrorMessagesEnabled() {
        return Optional.ofNullable(this.detailedErrorMessagesEnabled);
    }

    /**
     * Should `Failed request tracing` be enabled on this App Service slot? Defaults to `false`.
     * 
     */
    @Import(name="failedRequestTracingEnabled")
    private @Nullable Output failedRequestTracingEnabled;

    /**
     * @return Should `Failed request tracing` be enabled on this App Service slot? Defaults to `false`.
     * 
     */
    public Optional> failedRequestTracingEnabled() {
        return Optional.ofNullable(this.failedRequestTracingEnabled);
    }

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

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

    private SlotLogsArgs() {}

    private SlotLogsArgs(SlotLogsArgs $) {
        this.applicationLogs = $.applicationLogs;
        this.detailedErrorMessagesEnabled = $.detailedErrorMessagesEnabled;
        this.failedRequestTracingEnabled = $.failedRequestTracingEnabled;
        this.httpLogs = $.httpLogs;
    }

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

    public static final class Builder {
        private SlotLogsArgs $;

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

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

        /**
         * @param applicationLogs An `application_logs` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder applicationLogs(@Nullable Output applicationLogs) {
            $.applicationLogs = applicationLogs;
            return this;
        }

        /**
         * @param applicationLogs An `application_logs` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder applicationLogs(SlotLogsApplicationLogsArgs applicationLogs) {
            return applicationLogs(Output.of(applicationLogs));
        }

        /**
         * @param detailedErrorMessagesEnabled Should `Detailed error messages` be enabled on this App Service slot? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder detailedErrorMessagesEnabled(@Nullable Output detailedErrorMessagesEnabled) {
            $.detailedErrorMessagesEnabled = detailedErrorMessagesEnabled;
            return this;
        }

        /**
         * @param detailedErrorMessagesEnabled Should `Detailed error messages` be enabled on this App Service slot? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder detailedErrorMessagesEnabled(Boolean detailedErrorMessagesEnabled) {
            return detailedErrorMessagesEnabled(Output.of(detailedErrorMessagesEnabled));
        }

        /**
         * @param failedRequestTracingEnabled Should `Failed request tracing` be enabled on this App Service slot? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder failedRequestTracingEnabled(@Nullable Output failedRequestTracingEnabled) {
            $.failedRequestTracingEnabled = failedRequestTracingEnabled;
            return this;
        }

        /**
         * @param failedRequestTracingEnabled Should `Failed request tracing` be enabled on this App Service slot? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder failedRequestTracingEnabled(Boolean failedRequestTracingEnabled) {
            return failedRequestTracingEnabled(Output.of(failedRequestTracingEnabled));
        }

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

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

        public SlotLogsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy