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

import com.pulumi.aws.mskconnect.outputs.ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs;
import com.pulumi.aws.mskconnect.outputs.ConnectorLogDeliveryWorkerLogDeliveryFirehose;
import com.pulumi.aws.mskconnect.outputs.ConnectorLogDeliveryWorkerLogDeliveryS3;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ConnectorLogDeliveryWorkerLogDelivery {
    /**
     * @return Details about delivering logs to Amazon CloudWatch Logs. See below.
     * 
     */
    private @Nullable ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs cloudwatchLogs;
    /**
     * @return Details about delivering logs to Amazon Kinesis Data Firehose. See below.
     * 
     */
    private @Nullable ConnectorLogDeliveryWorkerLogDeliveryFirehose firehose;
    /**
     * @return Details about delivering logs to Amazon S3. See below.
     * 
     */
    private @Nullable ConnectorLogDeliveryWorkerLogDeliveryS3 s3;

    private ConnectorLogDeliveryWorkerLogDelivery() {}
    /**
     * @return Details about delivering logs to Amazon CloudWatch Logs. See below.
     * 
     */
    public Optional<ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs> cloudwatchLogs() {
        return Optional.ofNullable(this.cloudwatchLogs);
    }
    /**
     * @return Details about delivering logs to Amazon Kinesis Data Firehose. See below.
     * 
     */
    public Optional<ConnectorLogDeliveryWorkerLogDeliveryFirehose> firehose() {
        return Optional.ofNullable(this.firehose);
    }
    /**
     * @return Details about delivering logs to Amazon S3. See below.
     * 
     */
    public Optional<ConnectorLogDeliveryWorkerLogDeliveryS3> s3() {
        return Optional.ofNullable(this.s3);
    }

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

    public static Builder builder(ConnectorLogDeliveryWorkerLogDelivery defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs cloudwatchLogs;
        private @Nullable ConnectorLogDeliveryWorkerLogDeliveryFirehose firehose;
        private @Nullable ConnectorLogDeliveryWorkerLogDeliveryS3 s3;
        public Builder() {}
        public Builder(ConnectorLogDeliveryWorkerLogDelivery defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.cloudwatchLogs = defaults.cloudwatchLogs;
    	      this.firehose = defaults.firehose;
    	      this.s3 = defaults.s3;
        }

        @CustomType.Setter
        public Builder cloudwatchLogs(@Nullable ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs cloudwatchLogs) {
            this.cloudwatchLogs = cloudwatchLogs;
            return this;
        }
        @CustomType.Setter
        public Builder firehose(@Nullable ConnectorLogDeliveryWorkerLogDeliveryFirehose firehose) {
            this.firehose = firehose;
            return this;
        }
        @CustomType.Setter
        public Builder s3(@Nullable ConnectorLogDeliveryWorkerLogDeliveryS3 s3) {
            this.s3 = s3;
            return this;
        }
        public ConnectorLogDeliveryWorkerLogDelivery build() {
            final var o = new ConnectorLogDeliveryWorkerLogDelivery();
            o.cloudwatchLogs = cloudwatchLogs;
            o.firehose = firehose;
            o.s3 = s3;
            return o;
        }
    }
}
