1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The settings for client-side encryption for cryptographic computing.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DataEncryptionMetadata {
    /// <p>Indicates whether encrypted tables can contain cleartext data (true) or are to cryptographically process every column (false).</p>
    pub allow_cleartext: ::std::option::Option<bool>,
    /// <p>Indicates whether Fingerprint columns can contain duplicate entries (true) or are to contain only non-repeated values (false).</p>
    pub allow_duplicates: ::std::option::Option<bool>,
    /// <p>Indicates whether Fingerprint columns can be joined on any other Fingerprint column with a different name (true) or can only be joined on Fingerprint columns of the same name (false).</p>
    pub allow_joins_on_columns_with_different_names: ::std::option::Option<bool>,
    /// <p>Indicates whether NULL values are to be copied as NULL to encrypted tables (true) or cryptographically processed (false).</p>
    pub preserve_nulls: ::std::option::Option<bool>,
}
impl DataEncryptionMetadata {
    /// <p>Indicates whether encrypted tables can contain cleartext data (true) or are to cryptographically process every column (false).</p>
    pub fn allow_cleartext(&self) -> ::std::option::Option<bool> {
        self.allow_cleartext
    }
    /// <p>Indicates whether Fingerprint columns can contain duplicate entries (true) or are to contain only non-repeated values (false).</p>
    pub fn allow_duplicates(&self) -> ::std::option::Option<bool> {
        self.allow_duplicates
    }
    /// <p>Indicates whether Fingerprint columns can be joined on any other Fingerprint column with a different name (true) or can only be joined on Fingerprint columns of the same name (false).</p>
    pub fn allow_joins_on_columns_with_different_names(&self) -> ::std::option::Option<bool> {
        self.allow_joins_on_columns_with_different_names
    }
    /// <p>Indicates whether NULL values are to be copied as NULL to encrypted tables (true) or cryptographically processed (false).</p>
    pub fn preserve_nulls(&self) -> ::std::option::Option<bool> {
        self.preserve_nulls
    }
}
impl DataEncryptionMetadata {
    /// Creates a new builder-style object to manufacture [`DataEncryptionMetadata`](crate::types::DataEncryptionMetadata).
    pub fn builder() -> crate::types::builders::DataEncryptionMetadataBuilder {
        crate::types::builders::DataEncryptionMetadataBuilder::default()
    }
}

/// A builder for [`DataEncryptionMetadata`](crate::types::DataEncryptionMetadata).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DataEncryptionMetadataBuilder {
    pub(crate) allow_cleartext: ::std::option::Option<bool>,
    pub(crate) allow_duplicates: ::std::option::Option<bool>,
    pub(crate) allow_joins_on_columns_with_different_names: ::std::option::Option<bool>,
    pub(crate) preserve_nulls: ::std::option::Option<bool>,
}
impl DataEncryptionMetadataBuilder {
    /// <p>Indicates whether encrypted tables can contain cleartext data (true) or are to cryptographically process every column (false).</p>
    pub fn allow_cleartext(mut self, input: bool) -> Self {
        self.allow_cleartext = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether encrypted tables can contain cleartext data (true) or are to cryptographically process every column (false).</p>
    pub fn set_allow_cleartext(mut self, input: ::std::option::Option<bool>) -> Self {
        self.allow_cleartext = input;
        self
    }
    /// <p>Indicates whether encrypted tables can contain cleartext data (true) or are to cryptographically process every column (false).</p>
    pub fn get_allow_cleartext(&self) -> &::std::option::Option<bool> {
        &self.allow_cleartext
    }
    /// <p>Indicates whether Fingerprint columns can contain duplicate entries (true) or are to contain only non-repeated values (false).</p>
    pub fn allow_duplicates(mut self, input: bool) -> Self {
        self.allow_duplicates = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether Fingerprint columns can contain duplicate entries (true) or are to contain only non-repeated values (false).</p>
    pub fn set_allow_duplicates(mut self, input: ::std::option::Option<bool>) -> Self {
        self.allow_duplicates = input;
        self
    }
    /// <p>Indicates whether Fingerprint columns can contain duplicate entries (true) or are to contain only non-repeated values (false).</p>
    pub fn get_allow_duplicates(&self) -> &::std::option::Option<bool> {
        &self.allow_duplicates
    }
    /// <p>Indicates whether Fingerprint columns can be joined on any other Fingerprint column with a different name (true) or can only be joined on Fingerprint columns of the same name (false).</p>
    pub fn allow_joins_on_columns_with_different_names(mut self, input: bool) -> Self {
        self.allow_joins_on_columns_with_different_names = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether Fingerprint columns can be joined on any other Fingerprint column with a different name (true) or can only be joined on Fingerprint columns of the same name (false).</p>
    pub fn set_allow_joins_on_columns_with_different_names(mut self, input: ::std::option::Option<bool>) -> Self {
        self.allow_joins_on_columns_with_different_names = input;
        self
    }
    /// <p>Indicates whether Fingerprint columns can be joined on any other Fingerprint column with a different name (true) or can only be joined on Fingerprint columns of the same name (false).</p>
    pub fn get_allow_joins_on_columns_with_different_names(&self) -> &::std::option::Option<bool> {
        &self.allow_joins_on_columns_with_different_names
    }
    /// <p>Indicates whether NULL values are to be copied as NULL to encrypted tables (true) or cryptographically processed (false).</p>
    pub fn preserve_nulls(mut self, input: bool) -> Self {
        self.preserve_nulls = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether NULL values are to be copied as NULL to encrypted tables (true) or cryptographically processed (false).</p>
    pub fn set_preserve_nulls(mut self, input: ::std::option::Option<bool>) -> Self {
        self.preserve_nulls = input;
        self
    }
    /// <p>Indicates whether NULL values are to be copied as NULL to encrypted tables (true) or cryptographically processed (false).</p>
    pub fn get_preserve_nulls(&self) -> &::std::option::Option<bool> {
        &self.preserve_nulls
    }
    /// Consumes the builder and constructs a [`DataEncryptionMetadata`](crate::types::DataEncryptionMetadata).
    pub fn build(self) -> crate::types::DataEncryptionMetadata {
        crate::types::DataEncryptionMetadata {
            allow_cleartext: self.allow_cleartext,
            allow_duplicates: self.allow_duplicates,
            allow_joins_on_columns_with_different_names: self.allow_joins_on_columns_with_different_names,
            preserve_nulls: self.preserve_nulls,
        }
    }
}