// *** 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.aws.kinesis.outputs.FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfigurationProcessor;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfiguration {
    /**
     * @return Enables or disables data processing.
     * 
     */
    private @Nullable Boolean enabled;
    /**
     * @return Array of data processors. More details are given below
     * 
     */
    private @Nullable List<FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfigurationProcessor> processors;

    private FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfiguration() {}
    /**
     * @return Enables or disables data processing.
     * 
     */
    public Optional<Boolean> enabled() {
        return Optional.ofNullable(this.enabled);
    }
    /**
     * @return Array of data processors. More details are given below
     * 
     */
    public List<FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfigurationProcessor> processors() {
        return this.processors == null ? List.of() : this.processors;
    }

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

    public static Builder builder(FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean enabled;
        private @Nullable List<FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfigurationProcessor> processors;
        public Builder() {}
        public Builder(FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.enabled = defaults.enabled;
    	      this.processors = defaults.processors;
        }

        @CustomType.Setter
        public Builder enabled(@Nullable Boolean enabled) {
            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder processors(@Nullable List<FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfigurationProcessor> processors) {
            this.processors = processors;
            return this;
        }
        public Builder processors(FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfigurationProcessor... processors) {
            return processors(List.of(processors));
        }
        public FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfiguration build() {
            final var o = new FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfiguration();
            o.enabled = enabled;
            o.processors = processors;
            return o;
        }
    }
}
