// *** 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.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class LinuxWebAppLogsHttpLogsAzureBlobStorage {
    /**
     * @return The time in days after which to remove blobs. A value of `0` means no retention.
     * 
     */
    private @Nullable Integer retentionInDays;
    /**
     * @return SAS url to an Azure blob container with read/write/list/delete permissions.
     * 
     */
    private String sasUrl;

    private LinuxWebAppLogsHttpLogsAzureBlobStorage() {}
    /**
     * @return The time in days after which to remove blobs. A value of `0` means no retention.
     * 
     */
    public Optional<Integer> retentionInDays() {
        return Optional.ofNullable(this.retentionInDays);
    }
    /**
     * @return SAS url to an Azure blob container with read/write/list/delete permissions.
     * 
     */
    public String sasUrl() {
        return this.sasUrl;
    }

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

    public static Builder builder(LinuxWebAppLogsHttpLogsAzureBlobStorage defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer retentionInDays;
        private String sasUrl;
        public Builder() {}
        public Builder(LinuxWebAppLogsHttpLogsAzureBlobStorage defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.retentionInDays = defaults.retentionInDays;
    	      this.sasUrl = defaults.sasUrl;
        }

        @CustomType.Setter
        public Builder retentionInDays(@Nullable Integer retentionInDays) {
            this.retentionInDays = retentionInDays;
            return this;
        }
        @CustomType.Setter
        public Builder sasUrl(String sasUrl) {
            this.sasUrl = Objects.requireNonNull(sasUrl);
            return this;
        }
        public LinuxWebAppLogsHttpLogsAzureBlobStorage build() {
            final var o = new LinuxWebAppLogsHttpLogsAzureBlobStorage();
            o.retentionInDays = retentionInDays;
            o.sasUrl = sasUrl;
            return o;
        }
    }
}
