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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class FirehoseDeliveryStreamServerSideEncryptionArgs extends com.pulumi.resources.ResourceArgs {

    public static final FirehoseDeliveryStreamServerSideEncryptionArgs Empty = new FirehoseDeliveryStreamServerSideEncryptionArgs();

    /**
     * Whether to enable encryption at rest. Default is `false`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output<Boolean> enabled;

    /**
     * @return Whether to enable encryption at rest. Default is `false`.
     * 
     */
    public Optional<Output<Boolean>> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Amazon Resource Name (ARN) of the encryption key. Required when `key_type` is `CUSTOMER_MANAGED_CMK`.
     * 
     * The `s3_configuration` object supports the following:
     * 
     * &gt; **NOTE:** This configuration block is deprecated for the `s3` destination.
     * 
     */
    @Import(name="keyArn")
    private @Nullable Output<String> keyArn;

    /**
     * @return Amazon Resource Name (ARN) of the encryption key. Required when `key_type` is `CUSTOMER_MANAGED_CMK`.
     * 
     * The `s3_configuration` object supports the following:
     * 
     * &gt; **NOTE:** This configuration block is deprecated for the `s3` destination.
     * 
     */
    public Optional<Output<String>> keyArn() {
        return Optional.ofNullable(this.keyArn);
    }

    /**
     * Type of encryption key. Default is `AWS_OWNED_CMK`. Valid values are `AWS_OWNED_CMK` and `CUSTOMER_MANAGED_CMK`
     * 
     */
    @Import(name="keyType")
    private @Nullable Output<String> keyType;

    /**
     * @return Type of encryption key. Default is `AWS_OWNED_CMK`. Valid values are `AWS_OWNED_CMK` and `CUSTOMER_MANAGED_CMK`
     * 
     */
    public Optional<Output<String>> keyType() {
        return Optional.ofNullable(this.keyType);
    }

    private FirehoseDeliveryStreamServerSideEncryptionArgs() {}

    private FirehoseDeliveryStreamServerSideEncryptionArgs(FirehoseDeliveryStreamServerSideEncryptionArgs $) {
        this.enabled = $.enabled;
        this.keyArn = $.keyArn;
        this.keyType = $.keyType;
    }

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

    public static final class Builder {
        private FirehoseDeliveryStreamServerSideEncryptionArgs $;

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

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

        /**
         * @param enabled Whether to enable encryption at rest. Default is `false`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output<Boolean> enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Whether to enable encryption at rest. Default is `false`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param keyArn Amazon Resource Name (ARN) of the encryption key. Required when `key_type` is `CUSTOMER_MANAGED_CMK`.
         * 
         * The `s3_configuration` object supports the following:
         * 
         * &gt; **NOTE:** This configuration block is deprecated for the `s3` destination.
         * 
         * @return builder
         * 
         */
        public Builder keyArn(@Nullable Output<String> keyArn) {
            $.keyArn = keyArn;
            return this;
        }

        /**
         * @param keyArn Amazon Resource Name (ARN) of the encryption key. Required when `key_type` is `CUSTOMER_MANAGED_CMK`.
         * 
         * The `s3_configuration` object supports the following:
         * 
         * &gt; **NOTE:** This configuration block is deprecated for the `s3` destination.
         * 
         * @return builder
         * 
         */
        public Builder keyArn(String keyArn) {
            return keyArn(Output.of(keyArn));
        }

        /**
         * @param keyType Type of encryption key. Default is `AWS_OWNED_CMK`. Valid values are `AWS_OWNED_CMK` and `CUSTOMER_MANAGED_CMK`
         * 
         * @return builder
         * 
         */
        public Builder keyType(@Nullable Output<String> keyType) {
            $.keyType = keyType;
            return this;
        }

        /**
         * @param keyType Type of encryption key. Default is `AWS_OWNED_CMK`. Valid values are `AWS_OWNED_CMK` and `CUSTOMER_MANAGED_CMK`
         * 
         * @return builder
         * 
         */
        public Builder keyType(String keyType) {
            return keyType(Output.of(keyType));
        }

        public FirehoseDeliveryStreamServerSideEncryptionArgs build() {
            return $;
        }
    }

}
