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

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

@CustomType
public final class DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest {
    /**
     * @return The encryption-at-rest mode for encrypting Data Catalog data. Valid values are `DISABLED` and `SSE-KMS`.
     * 
     */
    private String catalogEncryptionMode;
    /**
     * @return The ARN of the AWS KMS key to use for encryption at rest.
     * 
     */
    private @Nullable String sseAwsKmsKeyId;

    private DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest() {}
    /**
     * @return The encryption-at-rest mode for encrypting Data Catalog data. Valid values are `DISABLED` and `SSE-KMS`.
     * 
     */
    public String catalogEncryptionMode() {
        return this.catalogEncryptionMode;
    }
    /**
     * @return The ARN of the AWS KMS key to use for encryption at rest.
     * 
     */
    public Optional<String> sseAwsKmsKeyId() {
        return Optional.ofNullable(this.sseAwsKmsKeyId);
    }

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

    public static Builder builder(DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String catalogEncryptionMode;
        private @Nullable String sseAwsKmsKeyId;
        public Builder() {}
        public Builder(DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.catalogEncryptionMode = defaults.catalogEncryptionMode;
    	      this.sseAwsKmsKeyId = defaults.sseAwsKmsKeyId;
        }

        @CustomType.Setter
        public Builder catalogEncryptionMode(String catalogEncryptionMode) {
            this.catalogEncryptionMode = Objects.requireNonNull(catalogEncryptionMode);
            return this;
        }
        @CustomType.Setter
        public Builder sseAwsKmsKeyId(@Nullable String sseAwsKmsKeyId) {
            this.sseAwsKmsKeyId = sseAwsKmsKeyId;
            return this;
        }
        public DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest build() {
            final var o = new DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest();
            o.catalogEncryptionMode = catalogEncryptionMode;
            o.sseAwsKmsKeyId = sseAwsKmsKeyId;
            return o;
        }
    }
}
