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

com.pulumi.azurenative.web.inputs.AzureBlobStorageApplicationLogsConfigArgs Maven / Gradle / Ivy

The 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.azurenative.web.inputs;

import com.pulumi.azurenative.web.enums.LogLevel;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Application logs azure blob storage configuration.
 * 
 */
public final class AzureBlobStorageApplicationLogsConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final AzureBlobStorageApplicationLogsConfigArgs Empty = new AzureBlobStorageApplicationLogsConfigArgs();

    /**
     * Log level.
     * 
     */
    @Import(name="level")
    private @Nullable Output level;

    /**
     * @return Log level.
     * 
     */
    public Optional> level() {
        return Optional.ofNullable(this.level);
    }

    /**
     * Retention in days.
     * Remove blobs older than X days.
     * 0 or lower means no retention.
     * 
     */
    @Import(name="retentionInDays")
    private @Nullable Output retentionInDays;

    /**
     * @return Retention in days.
     * Remove blobs older than X days.
     * 0 or lower means no retention.
     * 
     */
    public Optional> retentionInDays() {
        return Optional.ofNullable(this.retentionInDays);
    }

    /**
     * SAS url to a azure blob container with read/write/list/delete permissions.
     * 
     */
    @Import(name="sasUrl")
    private @Nullable Output sasUrl;

    /**
     * @return SAS url to a azure blob container with read/write/list/delete permissions.
     * 
     */
    public Optional> sasUrl() {
        return Optional.ofNullable(this.sasUrl);
    }

    private AzureBlobStorageApplicationLogsConfigArgs() {}

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

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

    public static final class Builder {
        private AzureBlobStorageApplicationLogsConfigArgs $;

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

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

        /**
         * @param level Log level.
         * 
         * @return builder
         * 
         */
        public Builder level(@Nullable Output level) {
            $.level = level;
            return this;
        }

        /**
         * @param level Log level.
         * 
         * @return builder
         * 
         */
        public Builder level(LogLevel level) {
            return level(Output.of(level));
        }

        /**
         * @param retentionInDays Retention in days.
         * Remove blobs older than X days.
         * 0 or lower means no retention.
         * 
         * @return builder
         * 
         */
        public Builder retentionInDays(@Nullable Output retentionInDays) {
            $.retentionInDays = retentionInDays;
            return this;
        }

        /**
         * @param retentionInDays Retention in days.
         * Remove blobs older than X days.
         * 0 or lower means no retention.
         * 
         * @return builder
         * 
         */
        public Builder retentionInDays(Integer retentionInDays) {
            return retentionInDays(Output.of(retentionInDays));
        }

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

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

        public AzureBlobStorageApplicationLogsConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy