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

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


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

    public static final CanaryArtifactConfigS3EncryptionArgs Empty = new CanaryArtifactConfigS3EncryptionArgs();

    /**
     * The encryption method to use for artifacts created by this canary. Valid values are: `SSE_S3` and `SSE_KMS`.
     * 
     */
    @Import(name="encryptionMode")
    private @Nullable Output<String> encryptionMode;

    /**
     * @return The encryption method to use for artifacts created by this canary. Valid values are: `SSE_S3` and `SSE_KMS`.
     * 
     */
    public Optional<Output<String>> encryptionMode() {
        return Optional.ofNullable(this.encryptionMode);
    }

    /**
     * The ARN of the customer-managed KMS key to use, if you specify `SSE_KMS` for `encryption_mode`.
     * 
     */
    @Import(name="kmsKeyArn")
    private @Nullable Output<String> kmsKeyArn;

    /**
     * @return The ARN of the customer-managed KMS key to use, if you specify `SSE_KMS` for `encryption_mode`.
     * 
     */
    public Optional<Output<String>> kmsKeyArn() {
        return Optional.ofNullable(this.kmsKeyArn);
    }

    private CanaryArtifactConfigS3EncryptionArgs() {}

    private CanaryArtifactConfigS3EncryptionArgs(CanaryArtifactConfigS3EncryptionArgs $) {
        this.encryptionMode = $.encryptionMode;
        this.kmsKeyArn = $.kmsKeyArn;
    }

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

    public static final class Builder {
        private CanaryArtifactConfigS3EncryptionArgs $;

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

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

        /**
         * @param encryptionMode The encryption method to use for artifacts created by this canary. Valid values are: `SSE_S3` and `SSE_KMS`.
         * 
         * @return builder
         * 
         */
        public Builder encryptionMode(@Nullable Output<String> encryptionMode) {
            $.encryptionMode = encryptionMode;
            return this;
        }

        /**
         * @param encryptionMode The encryption method to use for artifacts created by this canary. Valid values are: `SSE_S3` and `SSE_KMS`.
         * 
         * @return builder
         * 
         */
        public Builder encryptionMode(String encryptionMode) {
            return encryptionMode(Output.of(encryptionMode));
        }

        /**
         * @param kmsKeyArn The ARN of the customer-managed KMS key to use, if you specify `SSE_KMS` for `encryption_mode`.
         * 
         * @return builder
         * 
         */
        public Builder kmsKeyArn(@Nullable Output<String> kmsKeyArn) {
            $.kmsKeyArn = kmsKeyArn;
            return this;
        }

        /**
         * @param kmsKeyArn The ARN of the customer-managed KMS key to use, if you specify `SSE_KMS` for `encryption_mode`.
         * 
         * @return builder
         * 
         */
        public Builder kmsKeyArn(String kmsKeyArn) {
            return kmsKeyArn(Output.of(kmsKeyArn));
        }

        public CanaryArtifactConfigS3EncryptionArgs build() {
            return $;
        }
    }

}
