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

com.pulumi.azurenative.web.outputs.AzureBlobStorageHttpLogsConfigResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.outputs;

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

@CustomType
public final class AzureBlobStorageHttpLogsConfigResponse {
    /**
     * @return True if configuration is enabled, false if it is disabled and null if configuration is not set.
     * 
     */
    private @Nullable Boolean enabled;
    /**
     * @return Retention in days.
     * Remove blobs older than X days.
     * 0 or lower means no retention.
     * 
     */
    private @Nullable Integer retentionInDays;
    /**
     * @return SAS url to a azure blob container with read/write/list/delete permissions.
     * 
     */
    private @Nullable String sasUrl;

    private AzureBlobStorageHttpLogsConfigResponse() {}
    /**
     * @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);
    }
    /**
     * @return Retention in days.
     * Remove blobs older than X days.
     * 0 or lower means no retention.
     * 
     */
    public Optional retentionInDays() {
        return Optional.ofNullable(this.retentionInDays);
    }
    /**
     * @return SAS url to a azure blob container with read/write/list/delete permissions.
     * 
     */
    public Optional sasUrl() {
        return Optional.ofNullable(this.sasUrl);
    }

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

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

        @CustomType.Setter
        public Builder enabled(@Nullable Boolean enabled) {

            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder retentionInDays(@Nullable Integer retentionInDays) {

            this.retentionInDays = retentionInDays;
            return this;
        }
        @CustomType.Setter
        public Builder sasUrl(@Nullable String sasUrl) {

            this.sasUrl = sasUrl;
            return this;
        }
        public AzureBlobStorageHttpLogsConfigResponse build() {
            final var _resultValue = new AzureBlobStorageHttpLogsConfigResponse();
            _resultValue.enabled = enabled;
            _resultValue.retentionInDays = retentionInDays;
            _resultValue.sasUrl = sasUrl;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy