// *** 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.network.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.Objects;

@CustomType
public final class NetworkWatcherFlowLogRetentionPolicy {
    /**
     * @return The number of days to retain flow log records.
     * 
     */
    private Integer days;
    /**
     * @return Boolean flag to enable/disable retention.
     * 
     */
    private Boolean enabled;

    private NetworkWatcherFlowLogRetentionPolicy() {}
    /**
     * @return The number of days to retain flow log records.
     * 
     */
    public Integer days() {
        return this.days;
    }
    /**
     * @return Boolean flag to enable/disable retention.
     * 
     */
    public Boolean enabled() {
        return this.enabled;
    }

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

    public static Builder builder(NetworkWatcherFlowLogRetentionPolicy defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer days;
        private Boolean enabled;
        public Builder() {}
        public Builder(NetworkWatcherFlowLogRetentionPolicy defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.days = defaults.days;
    	      this.enabled = defaults.enabled;
        }

        @CustomType.Setter
        public Builder days(Integer days) {
            this.days = Objects.requireNonNull(days);
            return this;
        }
        @CustomType.Setter
        public Builder enabled(Boolean enabled) {
            this.enabled = Objects.requireNonNull(enabled);
            return this;
        }
        public NetworkWatcherFlowLogRetentionPolicy build() {
            final var o = new NetworkWatcherFlowLogRetentionPolicy();
            o.days = days;
            o.enabled = enabled;
            return o;
        }
    }
}
