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

com.pulumi.azurenative.storage.inputs.ChangeFeedArgs 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.storage.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;


/**
 * The blob service properties for change feed events.
 * 
 */
public final class ChangeFeedArgs extends com.pulumi.resources.ResourceArgs {

    public static final ChangeFeedArgs Empty = new ChangeFeedArgs();

    /**
     * Indicates whether change feed event logging is enabled for the Blob service.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Indicates whether change feed event logging is enabled for the Blob service.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
     * 
     */
    @Import(name="retentionInDays")
    private @Nullable Output retentionInDays;

    /**
     * @return Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
     * 
     */
    public Optional> retentionInDays() {
        return Optional.ofNullable(this.retentionInDays);
    }

    private ChangeFeedArgs() {}

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

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

    public static final class Builder {
        private ChangeFeedArgs $;

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

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

        /**
         * @param enabled Indicates whether change feed event logging is enabled for the Blob service.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Indicates whether change feed event logging is enabled for the Blob service.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param retentionInDays Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
         * 
         * @return builder
         * 
         */
        public Builder retentionInDays(@Nullable Output retentionInDays) {
            $.retentionInDays = retentionInDays;
            return this;
        }

        /**
         * @param retentionInDays Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
         * 
         * @return builder
         * 
         */
        public Builder retentionInDays(Integer retentionInDays) {
            return retentionInDays(Output.of(retentionInDays));
        }

        public ChangeFeedArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy