aws_esdk/deps/aws_cryptography_materialProviders/operation/get_cache_entry/
builders.rs1pub use crate::deps::aws_cryptography_materialProviders::operation::get_cache_entry::_get_cache_entry_output::GetCacheEntryOutputBuilder;
5
6pub use crate::deps::aws_cryptography_materialProviders::operation::get_cache_entry::_get_cache_entry_input::GetCacheEntryInputBuilder;
7
8impl GetCacheEntryInputBuilder {
9 pub async fn send_with(
11 self,
12 cryptographic_materials_cache: &crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_cache::CryptographicMaterialsCacheRef,
13 ) -> ::std::result::Result<
14 crate::deps::aws_cryptography_materialProviders::operation::get_cache_entry::GetCacheEntryOutput,
15 crate::deps::aws_cryptography_materialProviders::types::error::Error,
16 >{
17 let mut fluent_builder = cryptographic_materials_cache.get_cache_entry();
18 fluent_builder.inner = self;
19 fluent_builder.send().await
20 }
21}
22#[derive(::std::clone::Clone, ::std::fmt::Debug)]
25pub struct GetCacheEntryFluentBuilder {
26 cryptographic_materials_cache: crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_cache::CryptographicMaterialsCacheRef,
27 pub(crate) inner: crate::deps::aws_cryptography_materialProviders::operation::get_cache_entry::builders::GetCacheEntryInputBuilder,
28}
29impl GetCacheEntryFluentBuilder {
30 pub(crate) fn new(
32 cryptographic_materials_cache: crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_cache::CryptographicMaterialsCacheRef,
33 ) -> Self {
34 Self {
35 cryptographic_materials_cache,
36 inner: ::std::default::Default::default(),
37 }
38 }
39 pub fn as_input(&self) -> &crate::deps::aws_cryptography_materialProviders::operation::get_cache_entry::builders::GetCacheEntryInputBuilder{
41 &self.inner
42 }
43 pub async fn send(
45 self,
46 ) -> ::std::result::Result<
47 crate::deps::aws_cryptography_materialProviders::operation::get_cache_entry::GetCacheEntryOutput,
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::get_cache_entry::GetCacheEntry::send(&self.cryptographic_materials_cache, input).await
64 }
65
66 #[allow(missing_docs)]
67 pub fn bytes_used(mut self, input: impl ::std::convert::Into<::std::primitive::i64>) -> Self {
68 self.inner = self.inner.bytes_used(input.into());
69 self
70 }
71 #[allow(missing_docs)]
72 pub fn set_bytes_used(mut self, input: ::std::option::Option<::std::primitive::i64>) -> Self {
73 self.inner = self.inner.set_bytes_used(input);
74 self
75 }
76 #[allow(missing_docs)]
77 pub fn get_bytes_used(&self) -> &::std::option::Option<::std::primitive::i64> {
78 self.inner.get_bytes_used()
79 }
80 #[allow(missing_docs)]
81 pub fn identifier(
82 mut self,
83 input: impl ::std::convert::Into<::aws_smithy_types::Blob>,
84 ) -> Self {
85 self.inner = self.inner.identifier(input.into());
86 self
87 }
88 #[allow(missing_docs)]
89 pub fn set_identifier(
90 mut self,
91 input: ::std::option::Option<::aws_smithy_types::Blob>,
92 ) -> Self {
93 self.inner = self.inner.set_identifier(input);
94 self
95 }
96 #[allow(missing_docs)]
97 pub fn get_identifier(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
98 self.inner.get_identifier()
99 }
100}