aws_esdk/deps/aws_cryptography_materialProviders/operation/put_cache_entry/
builders.rs1pub use crate::deps::aws_cryptography_materialProviders::operation::put_cache_entry::_unit::UnitBuilder;
5
6pub use crate::deps::aws_cryptography_materialProviders::operation::put_cache_entry::_put_cache_entry_input::PutCacheEntryInputBuilder;
7
8impl PutCacheEntryInputBuilder {
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 (),
15 crate::deps::aws_cryptography_materialProviders::types::error::Error,
16 > {
17 let mut fluent_builder = cryptographic_materials_cache.put_cache_entry();
18 fluent_builder.inner = self;
19 fluent_builder.send().await
20 }
21}
22#[derive(::std::clone::Clone, ::std::fmt::Debug)]
25pub struct PutCacheEntryFluentBuilder {
26 cryptographic_materials_cache: crate::deps::aws_cryptography_materialProviders::types::cryptographic_materials_cache::CryptographicMaterialsCacheRef,
27 pub(crate) inner: crate::deps::aws_cryptography_materialProviders::operation::put_cache_entry::builders::PutCacheEntryInputBuilder,
28}
29impl PutCacheEntryFluentBuilder {
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::put_cache_entry::builders::PutCacheEntryInputBuilder{
41 &self.inner
42 }
43 pub async fn send(
45 self,
46 ) -> ::std::result::Result<
47 (),
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::put_cache_entry::PutCacheEntry::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::i32>) -> 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::i32>) -> 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::i32> {
78 self.inner.get_bytes_used()
79 }
80 #[allow(missing_docs)]
81 pub fn creation_time(
82 mut self,
83 input: impl ::std::convert::Into<::std::primitive::i64>,
84 ) -> Self {
85 self.inner = self.inner.creation_time(input.into());
86 self
87 }
88 #[allow(missing_docs)]
89 pub fn set_creation_time(
90 mut self,
91 input: ::std::option::Option<::std::primitive::i64>,
92 ) -> Self {
93 self.inner = self.inner.set_creation_time(input);
94 self
95 }
96 #[allow(missing_docs)]
97 pub fn get_creation_time(&self) -> &::std::option::Option<::std::primitive::i64> {
98 self.inner.get_creation_time()
99 }
100 #[allow(missing_docs)]
101 pub fn expiry_time(mut self, input: impl ::std::convert::Into<::std::primitive::i64>) -> Self {
102 self.inner = self.inner.expiry_time(input.into());
103 self
104 }
105 #[allow(missing_docs)]
106 pub fn set_expiry_time(mut self, input: ::std::option::Option<::std::primitive::i64>) -> Self {
107 self.inner = self.inner.set_expiry_time(input);
108 self
109 }
110 #[allow(missing_docs)]
111 pub fn get_expiry_time(&self) -> &::std::option::Option<::std::primitive::i64> {
112 self.inner.get_expiry_time()
113 }
114 #[allow(missing_docs)]
115 pub fn identifier(
116 mut self,
117 input: impl ::std::convert::Into<::aws_smithy_types::Blob>,
118 ) -> Self {
119 self.inner = self.inner.identifier(input.into());
120 self
121 }
122 #[allow(missing_docs)]
123 pub fn set_identifier(
124 mut self,
125 input: ::std::option::Option<::aws_smithy_types::Blob>,
126 ) -> Self {
127 self.inner = self.inner.set_identifier(input);
128 self
129 }
130 #[allow(missing_docs)]
131 pub fn get_identifier(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
132 self.inner.get_identifier()
133 }
134 #[allow(missing_docs)]
135 pub fn materials(
136 mut self,
137 input: impl ::std::convert::Into<
138 crate::deps::aws_cryptography_materialProviders::types::Materials,
139 >,
140 ) -> Self {
141 self.inner = self.inner.materials(input.into());
142 self
143 }
144 #[allow(missing_docs)]
145 pub fn set_materials(
146 mut self,
147 input: ::std::option::Option<
148 crate::deps::aws_cryptography_materialProviders::types::Materials,
149 >,
150 ) -> Self {
151 self.inner = self.inner.set_materials(input);
152 self
153 }
154 #[allow(missing_docs)]
155 pub fn get_materials(
156 &self,
157 ) -> &::std::option::Option<crate::deps::aws_cryptography_materialProviders::types::Materials>
158 {
159 self.inner.get_materials()
160 }
161 #[allow(missing_docs)]
162 pub fn messages_used(
163 mut self,
164 input: impl ::std::convert::Into<::std::primitive::i32>,
165 ) -> Self {
166 self.inner = self.inner.messages_used(input.into());
167 self
168 }
169 #[allow(missing_docs)]
170 pub fn set_messages_used(
171 mut self,
172 input: ::std::option::Option<::std::primitive::i32>,
173 ) -> Self {
174 self.inner = self.inner.set_messages_used(input);
175 self
176 }
177 #[allow(missing_docs)]
178 pub fn get_messages_used(&self) -> &::std::option::Option<::std::primitive::i32> {
179 self.inner.get_messages_used()
180 }
181}