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

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

There is a newer version: 2.78.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.azurenative.web.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Http logs to file system configuration.
 * 
 */
public final class FileSystemHttpLogsConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final FileSystemHttpLogsConfigArgs Empty = new FileSystemHttpLogsConfigArgs();

    /**
     * True if configuration is enabled, false if it is disabled and null if configuration is not set.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return True if configuration is enabled, false if it is disabled and null if configuration is not set.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

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

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

    /**
     * Maximum size in megabytes that http log files can use.
     * When reached old log files will be removed to make space for new ones.
     * Value can range between 25 and 100.
     * 
     */
    @Import(name="retentionInMb")
    private @Nullable Output retentionInMb;

    /**
     * @return Maximum size in megabytes that http log files can use.
     * When reached old log files will be removed to make space for new ones.
     * Value can range between 25 and 100.
     * 
     */
    public Optional> retentionInMb() {
        return Optional.ofNullable(this.retentionInMb);
    }

    private FileSystemHttpLogsConfigArgs() {}

    private FileSystemHttpLogsConfigArgs(FileSystemHttpLogsConfigArgs $) {
        this.enabled = $.enabled;
        this.retentionInDays = $.retentionInDays;
        this.retentionInMb = $.retentionInMb;
    }

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

    public static final class Builder {
        private FileSystemHttpLogsConfigArgs $;

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

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

        /**
         * @param enabled True if configuration is enabled, false if it is disabled and null if configuration is not set.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled True if configuration is enabled, false if it is disabled and null if configuration is not set.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param retentionInDays Retention in days.
         * Remove files 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 files older than X days.
         * 0 or lower means no retention.
         * 
         * @return builder
         * 
         */
        public Builder retentionInDays(Integer retentionInDays) {
            return retentionInDays(Output.of(retentionInDays));
        }

        /**
         * @param retentionInMb Maximum size in megabytes that http log files can use.
         * When reached old log files will be removed to make space for new ones.
         * Value can range between 25 and 100.
         * 
         * @return builder
         * 
         */
        public Builder retentionInMb(@Nullable Output retentionInMb) {
            $.retentionInMb = retentionInMb;
            return this;
        }

        /**
         * @param retentionInMb Maximum size in megabytes that http log files can use.
         * When reached old log files will be removed to make space for new ones.
         * Value can range between 25 and 100.
         * 
         * @return builder
         * 
         */
        public Builder retentionInMb(Integer retentionInMb) {
            return retentionInMb(Output.of(retentionInMb));
        }

        public FileSystemHttpLogsConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy