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

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

@CustomType
public final class FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration {
    /**
     * @return Enables or disables dynamic partitioning. Defaults to `false`.
     * 
     */
    private @Nullable Boolean enabled;
    /**
     * @return Total amount of seconds Firehose spends on retries. Valid values between 0 and 7200. Default is 300.
     * 
     * &gt; **NOTE:** You can enable dynamic partitioning only when you create a new delivery stream. Once you enable dynamic partitioning on a delivery stream, it cannot be disabled on this delivery stream. Therefore, the provider will recreate the resource whenever dynamic partitioning is enabled or disabled.
     * 
     */
    private @Nullable Integer retryDuration;

    private FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration() {}
    /**
     * @return Enables or disables dynamic partitioning. Defaults to `false`.
     * 
     */
    public Optional<Boolean> enabled() {
        return Optional.ofNullable(this.enabled);
    }
    /**
     * @return Total amount of seconds Firehose spends on retries. Valid values between 0 and 7200. Default is 300.
     * 
     * &gt; **NOTE:** You can enable dynamic partitioning only when you create a new delivery stream. Once you enable dynamic partitioning on a delivery stream, it cannot be disabled on this delivery stream. Therefore, the provider will recreate the resource whenever dynamic partitioning is enabled or disabled.
     * 
     */
    public Optional<Integer> retryDuration() {
        return Optional.ofNullable(this.retryDuration);
    }

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

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

        @CustomType.Setter
        public Builder enabled(@Nullable Boolean enabled) {
            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder retryDuration(@Nullable Integer retryDuration) {
            this.retryDuration = retryDuration;
            return this;
        }
        public FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration build() {
            final var o = new FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration();
            o.enabled = enabled;
            o.retryDuration = retryDuration;
            return o;
        }
    }
}
