aws_db_esdk/deps/aws_cryptography_materialProviders/operation/decrypt_materials/
builders.rs1pub use crate::deps::aws_cryptography_materialProviders::operation::decrypt_materials::_decrypt_materials_output::DecryptMaterialsOutputBuilder;
5
6pub use crate::deps::aws_cryptography_materialProviders::operation::decrypt_materials::_decrypt_materials_input::DecryptMaterialsInputBuilder;
7
8impl DecryptMaterialsInputBuilder {
9 pub async fn send_with(
11 self,
12 cryptographic_materials_manager: &crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_manager::CryptographicMaterialsManagerRef,
13 ) -> ::std::result::Result<
14 crate::deps::aws_cryptography_materialProviders::operation::decrypt_materials::DecryptMaterialsOutput,
15 crate::deps::aws_cryptography_materialProviders::types::error::Error,
16 >{
17 let mut fluent_builder = cryptographic_materials_manager.decrypt_materials();
18 fluent_builder.inner = self;
19 fluent_builder.send().await
20 }
21}
22#[derive(::std::clone::Clone, ::std::fmt::Debug)]
25pub struct DecryptMaterialsFluentBuilder {
26 cryptographic_materials_manager: crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_manager::CryptographicMaterialsManagerRef,
27 pub(crate) inner: crate::deps::aws_cryptography_materialProviders::operation::decrypt_materials::builders::DecryptMaterialsInputBuilder,
28}
29impl DecryptMaterialsFluentBuilder {
30 pub(crate) fn new(
32 cryptographic_materials_manager: crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_manager::CryptographicMaterialsManagerRef,
33 ) -> Self {
34 Self {
35 cryptographic_materials_manager,
36 inner: ::std::default::Default::default(),
37 }
38 }
39 pub fn as_input(&self) -> &crate::deps::aws_cryptography_materialProviders::operation::decrypt_materials::builders::DecryptMaterialsInputBuilder{
41 &self.inner
42 }
43 pub async fn send(
45 self,
46 ) -> ::std::result::Result<
47 crate::deps::aws_cryptography_materialProviders::operation::decrypt_materials::DecryptMaterialsOutput,
48 crate::deps::aws_cryptography_materialProviders::types::error::Error,
49 >{
50 let input = self
51 .inner
52 .build()
53 .map_err(|mut e| {
58 let msg = format!("{:?}", e);
59 crate::deps::aws_cryptography_materialProviders::types::error::Error::OpaqueWithText {
60 obj: ::dafny_runtime::Object::from_ref(&mut e as &mut ::dafny_runtime::DynAny),
61 objMessage: msg
62 }})?;
63 crate::deps::aws_cryptography_materialProviders::operation::decrypt_materials::DecryptMaterials::send(&self.cryptographic_materials_manager, input).await
64 }
65
66 #[allow(missing_docs)]
67 pub fn algorithm_suite_id(
68 mut self,
69 input: impl ::std::convert::Into<
70 crate::deps::aws_cryptography_materialProviders::types::AlgorithmSuiteId,
71 >,
72 ) -> Self {
73 self.inner = self.inner.algorithm_suite_id(input.into());
74 self
75 }
76 #[allow(missing_docs)]
77 pub fn set_algorithm_suite_id(
78 mut self,
79 input: ::std::option::Option<
80 crate::deps::aws_cryptography_materialProviders::types::AlgorithmSuiteId,
81 >,
82 ) -> Self {
83 self.inner = self.inner.set_algorithm_suite_id(input);
84 self
85 }
86 #[allow(missing_docs)]
87 pub fn get_algorithm_suite_id(
88 &self,
89 ) -> &::std::option::Option<
90 crate::deps::aws_cryptography_materialProviders::types::AlgorithmSuiteId,
91 > {
92 self.inner.get_algorithm_suite_id()
93 }
94 #[allow(missing_docs)]
95 pub fn commitment_policy(
96 mut self,
97 input: impl ::std::convert::Into<
98 crate::deps::aws_cryptography_materialProviders::types::CommitmentPolicy,
99 >,
100 ) -> Self {
101 self.inner = self.inner.commitment_policy(input.into());
102 self
103 }
104 #[allow(missing_docs)]
105 pub fn set_commitment_policy(
106 mut self,
107 input: ::std::option::Option<
108 crate::deps::aws_cryptography_materialProviders::types::CommitmentPolicy,
109 >,
110 ) -> Self {
111 self.inner = self.inner.set_commitment_policy(input);
112 self
113 }
114 #[allow(missing_docs)]
115 pub fn get_commitment_policy(
116 &self,
117 ) -> &::std::option::Option<
118 crate::deps::aws_cryptography_materialProviders::types::CommitmentPolicy,
119 > {
120 self.inner.get_commitment_policy()
121 }
122 #[allow(missing_docs)]
123 pub fn encrypted_data_keys(
124 mut self,
125 input: impl ::std::convert::Into<
126 ::std::vec::Vec<
127 crate::deps::aws_cryptography_materialProviders::types::EncryptedDataKey,
128 >,
129 >,
130 ) -> Self {
131 self.inner = self.inner.encrypted_data_keys(input.into());
132 self
133 }
134 #[allow(missing_docs)]
135 pub fn set_encrypted_data_keys(
136 mut self,
137 input: ::std::option::Option<
138 ::std::vec::Vec<
139 crate::deps::aws_cryptography_materialProviders::types::EncryptedDataKey,
140 >,
141 >,
142 ) -> Self {
143 self.inner = self.inner.set_encrypted_data_keys(input);
144 self
145 }
146 #[allow(missing_docs)]
147 pub fn get_encrypted_data_keys(
148 &self,
149 ) -> &::std::option::Option<
150 ::std::vec::Vec<crate::deps::aws_cryptography_materialProviders::types::EncryptedDataKey>,
151 > {
152 self.inner.get_encrypted_data_keys()
153 }
154 #[allow(missing_docs)]
155 pub fn encryption_context(
156 mut self,
157 input: impl ::std::convert::Into<
158 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
159 >,
160 ) -> Self {
161 self.inner = self.inner.encryption_context(input.into());
162 self
163 }
164 #[allow(missing_docs)]
165 pub fn set_encryption_context(
166 mut self,
167 input: ::std::option::Option<
168 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
169 >,
170 ) -> Self {
171 self.inner = self.inner.set_encryption_context(input);
172 self
173 }
174 #[allow(missing_docs)]
175 pub fn get_encryption_context(
176 &self,
177 ) -> &::std::option::Option<
178 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
179 > {
180 self.inner.get_encryption_context()
181 }
182 #[allow(missing_docs)]
183 pub fn reproduced_encryption_context(
184 mut self,
185 input: impl ::std::convert::Into<
186 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
187 >,
188 ) -> Self {
189 self.inner = self.inner.reproduced_encryption_context(input.into());
190 self
191 }
192 #[allow(missing_docs)]
193 pub fn set_reproduced_encryption_context(
194 mut self,
195 input: ::std::option::Option<
196 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
197 >,
198 ) -> Self {
199 self.inner = self.inner.set_reproduced_encryption_context(input);
200 self
201 }
202 #[allow(missing_docs)]
203 pub fn get_reproduced_encryption_context(
204 &self,
205 ) -> &::std::option::Option<
206 ::std::collections::HashMap<::std::string::String, ::std::string::String>,
207 > {
208 self.inner.get_reproduced_encryption_context()
209 }
210}