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

com.pulumi.azure.appservice.inputs.LinuxWebAppSlotLogsApplicationLogsAzureBlobStorageArgs 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.15.0
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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;


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

    public static final LinuxWebAppSlotLogsApplicationLogsAzureBlobStorageArgs Empty = new LinuxWebAppSlotLogsApplicationLogsAzureBlobStorageArgs();

    /**
     * The level at which to log. Possible values include `Error`, `Warning`, `Information`, `Verbose` and `Off`. **NOTE:** this field is not available for `http_logs`
     * 
     */
    @Import(name="level", required=true)
    private Output level;

    /**
     * @return The level at which to log. Possible values include `Error`, `Warning`, `Information`, `Verbose` and `Off`. **NOTE:** this field is not available for `http_logs`
     * 
     */
    public Output level() {
        return this.level;
    }

    /**
     * The time in days after which to remove blobs. A value of `0` means no retention.
     * 
     */
    @Import(name="retentionInDays", required=true)
    private Output retentionInDays;

    /**
     * @return The time in days after which to remove blobs. A value of `0` means no retention.
     * 
     */
    public Output retentionInDays() {
        return this.retentionInDays;
    }

    /**
     * SAS URL to an Azure blob container with read/write/list/delete permissions.
     * 
     */
    @Import(name="sasUrl", required=true)
    private Output sasUrl;

    /**
     * @return SAS URL to an Azure blob container with read/write/list/delete permissions.
     * 
     */
    public Output sasUrl() {
        return this.sasUrl;
    }

    private LinuxWebAppSlotLogsApplicationLogsAzureBlobStorageArgs() {}

    private LinuxWebAppSlotLogsApplicationLogsAzureBlobStorageArgs(LinuxWebAppSlotLogsApplicationLogsAzureBlobStorageArgs $) {
        this.level = $.level;
        this.retentionInDays = $.retentionInDays;
        this.sasUrl = $.sasUrl;
    }

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

    public static final class Builder {
        private LinuxWebAppSlotLogsApplicationLogsAzureBlobStorageArgs $;

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

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

        /**
         * @param level The level at which to log. Possible values include `Error`, `Warning`, `Information`, `Verbose` and `Off`. **NOTE:** this field is not available for `http_logs`
         * 
         * @return builder
         * 
         */
        public Builder level(Output level) {
            $.level = level;
            return this;
        }

        /**
         * @param level The level at which to log. Possible values include `Error`, `Warning`, `Information`, `Verbose` and `Off`. **NOTE:** this field is not available for `http_logs`
         * 
         * @return builder
         * 
         */
        public Builder level(String level) {
            return level(Output.of(level));
        }

        /**
         * @param retentionInDays The time in days after which to remove blobs. A value of `0` means no retention.
         * 
         * @return builder
         * 
         */
        public Builder retentionInDays(Output retentionInDays) {
            $.retentionInDays = retentionInDays;
            return this;
        }

        /**
         * @param retentionInDays The time in days after which to remove blobs. A value of `0` means no retention.
         * 
         * @return builder
         * 
         */
        public Builder retentionInDays(Integer retentionInDays) {
            return retentionInDays(Output.of(retentionInDays));
        }

        /**
         * @param sasUrl SAS URL to an Azure blob container with read/write/list/delete permissions.
         * 
         * @return builder
         * 
         */
        public Builder sasUrl(Output sasUrl) {
            $.sasUrl = sasUrl;
            return this;
        }

        /**
         * @param sasUrl SAS URL to an Azure blob container with read/write/list/delete permissions.
         * 
         * @return builder
         * 
         */
        public Builder sasUrl(String sasUrl) {
            return sasUrl(Output.of(sasUrl));
        }

        public LinuxWebAppSlotLogsApplicationLogsAzureBlobStorageArgs build() {
            if ($.level == null) {
                throw new MissingRequiredPropertyException("LinuxWebAppSlotLogsApplicationLogsAzureBlobStorageArgs", "level");
            }
            if ($.retentionInDays == null) {
                throw new MissingRequiredPropertyException("LinuxWebAppSlotLogsApplicationLogsAzureBlobStorageArgs", "retentionInDays");
            }
            if ($.sasUrl == null) {
                throw new MissingRequiredPropertyException("LinuxWebAppSlotLogsApplicationLogsAzureBlobStorageArgs", "sasUrl");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy