aws_db_esdk/deps/aws_cryptography_dbEncryptionSdk_structuredEncryption/types/
_decrypt_path_structure_output.rs

1// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2// SPDX-License-Identifier: Apache-2.0
3// Do not modify this file. This file is machine generated, and any changes to it will be overwritten.
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6#[allow(missing_docs)]
7pub struct DecryptPathStructureOutput {
8    #[allow(missing_docs)]
9    pub parsed_header: ::std::option::Option<
10        crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::ParsedHeader,
11    >,
12    #[allow(missing_docs)]
13    pub plaintext_structure: ::std::option::Option<
14        ::std::vec::Vec<
15            crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoItem,
16        >,
17    >,
18}
19impl DecryptPathStructureOutput {
20    #[allow(missing_docs)]
21    pub fn parsed_header(
22        &self,
23    ) -> &::std::option::Option<
24        crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::ParsedHeader,
25    > {
26        &self.parsed_header
27    }
28    #[allow(missing_docs)]
29    pub fn plaintext_structure(
30        &self,
31    ) -> &::std::option::Option<
32        ::std::vec::Vec<
33            crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoItem,
34        >,
35    > {
36        &self.plaintext_structure
37    }
38}
39impl DecryptPathStructureOutput {
40    /// Creates a new builder-style object to manufacture [`DecryptPathStructureOutput`](crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::DecryptPathStructureOutput).
41    pub fn builder() -> crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::builders::DecryptPathStructureOutputBuilder{
42        crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::builders::DecryptPathStructureOutputBuilder::default()
43    }
44}
45
46/// A builder for [`DecryptPathStructureOutput`](crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::DecryptPathStructureOutput).
47#[non_exhaustive]
48#[derive(
49    ::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug,
50)]
51pub struct DecryptPathStructureOutputBuilder {
52    pub(crate) parsed_header: ::std::option::Option<
53        crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::ParsedHeader,
54    >,
55    pub(crate) plaintext_structure: ::std::option::Option<
56        ::std::vec::Vec<
57            crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoItem,
58        >,
59    >,
60}
61impl DecryptPathStructureOutputBuilder {
62    #[allow(missing_docs)]
63    pub fn parsed_header(
64        mut self,
65        input: impl ::std::convert::Into<
66            crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::ParsedHeader,
67        >,
68    ) -> Self {
69        self.parsed_header = ::std::option::Option::Some(input.into());
70        self
71    }
72    #[allow(missing_docs)]
73    pub fn set_parsed_header(
74        mut self,
75        input: ::std::option::Option<
76            crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::ParsedHeader,
77        >,
78    ) -> Self {
79        self.parsed_header = input;
80        self
81    }
82    #[allow(missing_docs)]
83    pub fn get_parsed_header(
84        &self,
85    ) -> &::std::option::Option<
86        crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::ParsedHeader,
87    > {
88        &self.parsed_header
89    }
90    #[allow(missing_docs)]
91    pub fn plaintext_structure(
92        mut self,
93        input: impl ::std::convert::Into<::std::vec::Vec<crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoItem>>,
94    ) -> Self {
95        self.plaintext_structure = ::std::option::Option::Some(input.into());
96        self
97    }
98    #[allow(missing_docs)]
99    pub fn set_plaintext_structure(
100        mut self,
101        input: ::std::option::Option<::std::vec::Vec<crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoItem>>,
102    ) -> Self {
103        self.plaintext_structure = input;
104        self
105    }
106    #[allow(missing_docs)]
107    pub fn get_plaintext_structure(
108        &self,
109    ) -> &::std::option::Option<
110        ::std::vec::Vec<
111            crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoItem,
112        >,
113    > {
114        &self.plaintext_structure
115    }
116    /// Consumes the builder and constructs a [`DecryptPathStructureOutput`](crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::DecryptPathStructureOutput).
117    pub fn build(
118        self,
119    ) -> ::std::result::Result<
120        crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::DecryptPathStructureOutput,
121        ::aws_smithy_types::error::operation::BuildError,
122    >{
123        ::std::result::Result::Ok(crate::deps::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::DecryptPathStructureOutput {
124            parsed_header: self.parsed_header,
125plaintext_structure: self.plaintext_structure,
126        })
127    }
128}