1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct PutChunk;
6impl PutChunk {
7 pub fn new() -> Self {
9 Self
10 }
11 pub(crate) async fn orchestrate(
12 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
13 input: crate::operation::put_chunk::PutChunkInput,
14 ) -> ::std::result::Result<
15 crate::operation::put_chunk::PutChunkOutput,
16 ::aws_smithy_runtime_api::client::result::SdkError<
17 crate::operation::put_chunk::PutChunkError,
18 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
19 >,
20 > {
21 let map_err =
22 |err: ::aws_smithy_runtime_api::client::result::SdkError<
23 ::aws_smithy_runtime_api::client::interceptors::context::Error,
24 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
25 >| { err.map_service_error(|err| err.downcast::<crate::operation::put_chunk::PutChunkError>().expect("correct error type")) };
26 let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
27 .await
28 .map_err(map_err)?;
29 let output = context.finalize().map_err(map_err)?;
30 ::std::result::Result::Ok(
31 output
32 .downcast::<crate::operation::put_chunk::PutChunkOutput>()
33 .expect("correct output type"),
34 )
35 }
36
37 pub(crate) async fn orchestrate_with_stop_point(
38 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
39 input: crate::operation::put_chunk::PutChunkInput,
40 stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
41 ) -> ::std::result::Result<
42 ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
43 ::aws_smithy_runtime_api::client::result::SdkError<
44 ::aws_smithy_runtime_api::client::interceptors::context::Error,
45 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
46 >,
47 > {
48 let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
49 ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("backupstorage", "PutChunk", input, runtime_plugins, stop_point).await
50 }
51
52 pub(crate) fn operation_runtime_plugins(
53 client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
54 client_config: &crate::config::Config,
55 config_override: ::std::option::Option<crate::config::Builder>,
56 ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
57 let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
58 runtime_plugins = runtime_plugins.with_client_plugin(crate::auth_plugin::DefaultAuthOptionsPlugin::new(vec![
59 ::aws_runtime::auth::sigv4::SCHEME_ID,
60 ]));
61 if let ::std::option::Option::Some(config_override) = config_override {
62 for plugin in config_override.runtime_plugins.iter().cloned() {
63 runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
64 }
65 runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
66 config_override,
67 client_config.config.clone(),
68 &client_config.runtime_components,
69 ));
70 }
71 runtime_plugins
72 }
73}
74impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for PutChunk {
75 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
76 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("PutChunk");
77
78 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
79 PutChunkRequestSerializer,
80 ));
81 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
82 PutChunkResponseDeserializer,
83 ));
84
85 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
86 ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
87 ));
88
89 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("PutChunk", "backupstorage"));
90 let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
91 signing_options.double_uri_encode = true;
92 signing_options.content_sha256_header = true;
93 signing_options.normalize_uri_path = true;
94 signing_options.payload_override = Some(::aws_sigv4::http_request::SignableBody::UnsignedPayload);
95
96 cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
97 signing_options,
98 ..::std::default::Default::default()
99 });
100
101 ::std::option::Option::Some(cfg.freeze())
102 }
103
104 fn runtime_components(
105 &self,
106 _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
107 ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
108 #[allow(unused_mut)]
109 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("PutChunk")
110 .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
111 .with_interceptor(PutChunkEndpointParamsInterceptor)
112 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
113 crate::operation::put_chunk::PutChunkError,
114 >::new())
115 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
116 crate::operation::put_chunk::PutChunkError,
117 >::new())
118 .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
119 crate::operation::put_chunk::PutChunkError,
120 >::new());
121
122 ::std::borrow::Cow::Owned(rcb)
123 }
124}
125
126#[derive(Debug)]
127struct PutChunkResponseDeserializer;
128impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutChunkResponseDeserializer {
129 fn deserialize_nonstreaming(
130 &self,
131 response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
132 ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
133 let (success, status) = (response.status().is_success(), response.status().as_u16());
134 let headers = response.headers();
135 let body = response.body().bytes().expect("body loaded");
136 #[allow(unused_mut)]
137 let mut force_error = false;
138 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
139 let parse_result = if !success && status != 200 || force_error {
140 crate::protocol_serde::shape_put_chunk::de_put_chunk_http_error(status, headers, body)
141 } else {
142 crate::protocol_serde::shape_put_chunk::de_put_chunk_http_response(status, headers, body)
143 };
144 crate::protocol_serde::type_erase_result(parse_result)
145 }
146}
147#[derive(Debug)]
148struct PutChunkRequestSerializer;
149impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for PutChunkRequestSerializer {
150 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
151 fn serialize_input(
152 &self,
153 input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
154 _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
155 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
156 let input = input.downcast::<crate::operation::put_chunk::PutChunkInput>().expect("correct type");
157 let _header_serialization_settings = _cfg
158 .load::<crate::serialization_settings::HeaderSerializationSettings>()
159 .cloned()
160 .unwrap_or_default();
161 let mut request_builder = {
162 fn uri_base(
163 _input: &crate::operation::put_chunk::PutChunkInput,
164 output: &mut ::std::string::String,
165 ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
166 use ::std::fmt::Write as _;
167 let input_1 = &_input.backup_job_id;
168 let input_1 = input_1
169 .as_ref()
170 .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("backup_job_id", "cannot be empty or unset"))?;
171 let backup_job_id = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
172 if backup_job_id.is_empty() {
173 return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
174 "backup_job_id",
175 "cannot be empty or unset",
176 ));
177 }
178 let input_2 = &_input.upload_id;
179 let input_2 = input_2
180 .as_ref()
181 .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("upload_id", "cannot be empty or unset"))?;
182 let upload_id = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
183 if upload_id.is_empty() {
184 return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
185 "upload_id",
186 "cannot be empty or unset",
187 ));
188 }
189 let input_3 = &_input.chunk_index;
190 let input_3 = input_3
191 .as_ref()
192 .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("chunk_index", "cannot be empty or unset"))?;
193 let mut chunk_index_encoder = ::aws_smithy_types::primitive::Encoder::from(*input_3);
194 let chunk_index = chunk_index_encoder.encode();
195 if chunk_index.is_empty() {
196 return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
197 "chunk_index",
198 "cannot be empty or unset",
199 ));
200 }
201 ::std::write!(
202 output,
203 "/backup-jobs/{BackupJobId}/chunk/{UploadId}/{ChunkIndex}",
204 BackupJobId = backup_job_id,
205 UploadId = upload_id,
206 ChunkIndex = chunk_index
207 )
208 .expect("formatting should succeed");
209 ::std::result::Result::Ok(())
210 }
211 fn uri_query(
212 _input: &crate::operation::put_chunk::PutChunkInput,
213 mut output: &mut ::std::string::String,
214 ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
215 let mut query = ::aws_smithy_http::query::Writer::new(output);
216 let inner_4 = &_input.length;
217 let inner_4 = inner_4
218 .as_ref()
219 .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("length", "cannot be empty or unset"))?;
220 query.push_kv("length", ::aws_smithy_types::primitive::Encoder::from(*inner_4).encode());
221 let inner_5 = &_input.checksum;
222 let inner_5 = inner_5
223 .as_ref()
224 .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("checksum", "cannot be empty or unset"))?;
225 if inner_5.is_empty() {
226 return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
227 "checksum",
228 "cannot be empty or unset",
229 ));
230 }
231 query.push_kv("checksum", &::aws_smithy_http::query::fmt_string(inner_5));
232 let inner_6 = &_input.checksum_algorithm;
233 let inner_6 = inner_6.as_ref().ok_or_else(|| {
234 ::aws_smithy_types::error::operation::BuildError::missing_field("checksum_algorithm", "cannot be empty or unset")
235 })?;
236 query.push_kv("checksum-algorithm", &::aws_smithy_http::query::fmt_string(inner_6));
237 ::std::result::Result::Ok(())
238 }
239 #[allow(clippy::unnecessary_wraps)]
240 fn update_http_builder(
241 input: &crate::operation::put_chunk::PutChunkInput,
242 builder: ::http::request::Builder,
243 ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
244 let mut uri = ::std::string::String::new();
245 uri_base(input, &mut uri)?;
246 uri_query(input, &mut uri)?;
247 ::std::result::Result::Ok(builder.method("PUT").uri(uri))
248 }
249 let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
250 builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/octet-stream");
251 builder
252 };
253 let body = crate::protocol_serde::shape_put_chunk_input::ser_data_http_payload(input.data)?.into_inner();
254 if let Some(content_length) = body.content_length() {
255 let content_length = content_length.to_string();
256 request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
257 }
258 ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
259 }
260}
261#[derive(Debug)]
262struct PutChunkEndpointParamsInterceptor;
263
264impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutChunkEndpointParamsInterceptor {
265 fn name(&self) -> &'static str {
266 "PutChunkEndpointParamsInterceptor"
267 }
268
269 fn read_before_execution(
270 &self,
271 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
272 '_,
273 ::aws_smithy_runtime_api::client::interceptors::context::Input,
274 ::aws_smithy_runtime_api::client::interceptors::context::Output,
275 ::aws_smithy_runtime_api::client::interceptors::context::Error,
276 >,
277 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
278 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
279 let _input = context
280 .input()
281 .downcast_ref::<PutChunkInput>()
282 .ok_or("failed to downcast to PutChunkInput")?;
283
284 let params = crate::config::endpoint::Params::builder()
285 .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
286 .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
287 .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
288 .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
289 .build()
290 .map_err(|err| {
291 ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
292 })?;
293 cfg.interceptor_state()
294 .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
295 ::std::result::Result::Ok(())
296 }
297}
298
299#[non_exhaustive]
301#[derive(::std::fmt::Debug)]
302pub enum PutChunkError {
303 #[allow(missing_docs)] AccessDeniedException(crate::types::error::AccessDeniedException),
305 IllegalArgumentException(crate::types::error::IllegalArgumentException),
307 KmsInvalidKeyUsageException(crate::types::error::KmsInvalidKeyUsageException),
309 NotReadableInputStreamException(crate::types::error::NotReadableInputStreamException),
311 RetryableException(crate::types::error::RetryableException),
313 ServiceInternalException(crate::types::error::ServiceInternalException),
315 ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
317 ThrottlingException(crate::types::error::ThrottlingException),
319 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
321 variable wildcard pattern and check `.code()`:
322 \
323 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
324 \
325 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-PutChunkError) for what information is available for the error.")]
326 Unhandled(crate::error::sealed_unhandled::Unhandled),
327}
328impl PutChunkError {
329 pub fn unhandled(
331 err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
332 ) -> Self {
333 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
334 source: err.into(),
335 meta: ::std::default::Default::default(),
336 })
337 }
338
339 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
341 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
342 source: err.clone().into(),
343 meta: err,
344 })
345 }
346 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
351 match self {
352 Self::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
353 Self::IllegalArgumentException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
354 Self::KmsInvalidKeyUsageException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
355 Self::NotReadableInputStreamException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
356 Self::RetryableException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
357 Self::ServiceInternalException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
358 Self::ServiceUnavailableException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
359 Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
360 Self::Unhandled(e) => &e.meta,
361 }
362 }
363 pub fn is_access_denied_exception(&self) -> bool {
365 matches!(self, Self::AccessDeniedException(_))
366 }
367 pub fn is_illegal_argument_exception(&self) -> bool {
369 matches!(self, Self::IllegalArgumentException(_))
370 }
371 pub fn is_kms_invalid_key_usage_exception(&self) -> bool {
373 matches!(self, Self::KmsInvalidKeyUsageException(_))
374 }
375 pub fn is_not_readable_input_stream_exception(&self) -> bool {
377 matches!(self, Self::NotReadableInputStreamException(_))
378 }
379 pub fn is_retryable_exception(&self) -> bool {
381 matches!(self, Self::RetryableException(_))
382 }
383 pub fn is_service_internal_exception(&self) -> bool {
385 matches!(self, Self::ServiceInternalException(_))
386 }
387 pub fn is_service_unavailable_exception(&self) -> bool {
389 matches!(self, Self::ServiceUnavailableException(_))
390 }
391 pub fn is_throttling_exception(&self) -> bool {
393 matches!(self, Self::ThrottlingException(_))
394 }
395}
396impl ::std::error::Error for PutChunkError {
397 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
398 match self {
399 Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner),
400 Self::IllegalArgumentException(_inner) => ::std::option::Option::Some(_inner),
401 Self::KmsInvalidKeyUsageException(_inner) => ::std::option::Option::Some(_inner),
402 Self::NotReadableInputStreamException(_inner) => ::std::option::Option::Some(_inner),
403 Self::RetryableException(_inner) => ::std::option::Option::Some(_inner),
404 Self::ServiceInternalException(_inner) => ::std::option::Option::Some(_inner),
405 Self::ServiceUnavailableException(_inner) => ::std::option::Option::Some(_inner),
406 Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner),
407 Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
408 }
409 }
410}
411impl ::std::fmt::Display for PutChunkError {
412 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
413 match self {
414 Self::AccessDeniedException(_inner) => _inner.fmt(f),
415 Self::IllegalArgumentException(_inner) => _inner.fmt(f),
416 Self::KmsInvalidKeyUsageException(_inner) => _inner.fmt(f),
417 Self::NotReadableInputStreamException(_inner) => _inner.fmt(f),
418 Self::RetryableException(_inner) => _inner.fmt(f),
419 Self::ServiceInternalException(_inner) => _inner.fmt(f),
420 Self::ServiceUnavailableException(_inner) => _inner.fmt(f),
421 Self::ThrottlingException(_inner) => _inner.fmt(f),
422 Self::Unhandled(_inner) => {
423 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
424 write!(f, "unhandled error ({code})")
425 } else {
426 f.write_str("unhandled error")
427 }
428 }
429 }
430 }
431}
432impl ::aws_smithy_types::retry::ProvideErrorKind for PutChunkError {
433 fn code(&self) -> ::std::option::Option<&str> {
434 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
435 }
436 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
437 ::std::option::Option::None
438 }
439}
440impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for PutChunkError {
441 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
442 match self {
443 Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
444 Self::IllegalArgumentException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
445 Self::KmsInvalidKeyUsageException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
446 Self::NotReadableInputStreamException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
447 Self::RetryableException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
448 Self::ServiceInternalException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
449 Self::ServiceUnavailableException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
450 Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
451 Self::Unhandled(_inner) => &_inner.meta,
452 }
453 }
454}
455impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for PutChunkError {
456 fn create_unhandled_error(
457 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
458 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
459 ) -> Self {
460 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
461 source,
462 meta: meta.unwrap_or_default(),
463 })
464 }
465}
466impl ::aws_types::request_id::RequestId for crate::operation::put_chunk::PutChunkError {
467 fn request_id(&self) -> Option<&str> {
468 self.meta().request_id()
469 }
470}
471
472pub use crate::operation::put_chunk::_put_chunk_output::PutChunkOutput;
473
474pub use crate::operation::put_chunk::_put_chunk_input::PutChunkInput;
475
476mod _put_chunk_input;
477
478mod _put_chunk_output;
479
480pub mod builders;