1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* CodegenDelegator.kt:255 */
|
2 3 | pub use crate::operation::xml_timestamps::_xml_timestamps_output::XmlTimestampsOutputBuilder;
|
3 4 |
|
5 + | /* CodegenDelegator.kt:255 */
|
4 6 | pub use crate::operation::xml_timestamps::_xml_timestamps_input::XmlTimestampsInputBuilder;
|
5 7 |
|
8 + | /* FluentBuilderGenerator.kt:408 */
|
6 9 | impl crate::operation::xml_timestamps::builders::XmlTimestampsInputBuilder {
|
7 10 | /// Sends a request with this input using the given client.
|
8 11 | pub async fn send_with(
|
9 12 | self,
|
10 13 | client: &crate::Client,
|
11 14 | ) -> ::std::result::Result<
|
12 15 | crate::operation::xml_timestamps::XmlTimestampsOutput,
|
13 16 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 17 | crate::operation::xml_timestamps::XmlTimestampsError,
|
15 18 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 19 | >,
|
17 20 | > {
|
18 21 | let mut fluent_builder = client.xml_timestamps();
|
19 22 | fluent_builder.inner = self;
|
20 23 | fluent_builder.send().await
|
21 24 | }
|
22 25 | }
|
23 - | /// Fluent builder constructing a request to `XmlTimestamps`.
|
26 + | /// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `XmlTimestamps`.
|
24 27 | ///
|
25 - | /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values.
|
28 + | /// /* FluentBuilderGenerator.kt:130 */This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values.
|
29 + | /* RustType.kt:516 */
|
26 30 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
31 + | /* FluentBuilderGenerator.kt:270 */
|
27 32 | pub struct XmlTimestampsFluentBuilder {
|
28 33 | handle: ::std::sync::Arc<crate::client::Handle>,
|
29 34 | inner: crate::operation::xml_timestamps::builders::XmlTimestampsInputBuilder,
|
30 35 | config_override: ::std::option::Option<crate::config::Builder>,
|
31 36 | }
|
37 + | /* FluentBuilderGenerator.kt:381 */
|
32 38 | impl
|
33 39 | crate::client::customize::internal::CustomizableSend<
|
34 40 | crate::operation::xml_timestamps::XmlTimestampsOutput,
|
35 41 | crate::operation::xml_timestamps::XmlTimestampsError,
|
36 42 | > for XmlTimestampsFluentBuilder
|
37 43 | {
|
38 44 | fn send(
|
39 45 | self,
|
40 46 | config_override: crate::config::Builder,
|
41 47 | ) -> crate::client::customize::internal::BoxFuture<
|
42 48 | crate::client::customize::internal::SendResult<
|
43 49 | crate::operation::xml_timestamps::XmlTimestampsOutput,
|
44 50 | crate::operation::xml_timestamps::XmlTimestampsError,
|
45 51 | >,
|
46 52 | > {
|
47 53 | ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
|
48 54 | }
|
49 55 | }
|
56 + | /* FluentBuilderGenerator.kt:282 */
|
50 57 | impl XmlTimestampsFluentBuilder {
|
58 + | /* FluentBuilderGenerator.kt:288 */
|
51 59 | /// Creates a new `XmlTimestampsFluentBuilder`.
|
52 60 | pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
|
53 61 | Self {
|
54 62 | handle,
|
55 63 | inner: ::std::default::Default::default(),
|
56 64 | config_override: ::std::option::Option::None,
|
57 65 | }
|
58 66 | }
|
67 + | /* FluentBuilderGenerator.kt:301 */
|
59 68 | /// Access the XmlTimestamps as a reference.
|
60 69 | pub fn as_input(&self) -> &crate::operation::xml_timestamps::builders::XmlTimestampsInputBuilder {
|
61 70 | &self.inner
|
62 71 | }
|
72 + | /* FluentBuilderGenerator.kt:145 */
|
63 73 | /// Sends the request and returns the response.
|
64 74 | ///
|
65 75 | /// If an error occurs, an `SdkError` will be returned with additional details that
|
66 76 | /// can be matched against.
|
67 77 | ///
|
68 78 | /// By default, any retryable failures will be retried twice. Retry behavior
|
69 79 | /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
|
70 80 | /// set when configuring the client.
|
71 81 | pub async fn send(
|
72 82 | self,
|
73 83 | ) -> ::std::result::Result<
|
74 84 | crate::operation::xml_timestamps::XmlTimestampsOutput,
|
75 85 | ::aws_smithy_runtime_api::client::result::SdkError<
|
76 86 | crate::operation::xml_timestamps::XmlTimestampsError,
|
77 87 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
78 88 | >,
|
79 89 | > {
|
80 90 | let input = self
|
81 91 | .inner
|
82 92 | .build()
|
83 93 | .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
|
84 94 | let runtime_plugins = crate::operation::xml_timestamps::XmlTimestamps::operation_runtime_plugins(
|
85 95 | self.handle.runtime_plugins.clone(),
|
86 96 | &self.handle.conf,
|
87 97 | self.config_override,
|
88 98 | );
|
89 99 | crate::operation::xml_timestamps::XmlTimestamps::orchestrate(&runtime_plugins, input).await
|
90 100 | }
|
91 101 |
|
92 102 | /// Consumes this builder, creating a customizable operation that can be modified before being sent.
|
93 103 | pub fn customize(
|
94 104 | self,
|
95 105 | ) -> crate::client::customize::CustomizableOperation<
|
96 106 | crate::operation::xml_timestamps::XmlTimestampsOutput,
|
97 107 | crate::operation::xml_timestamps::XmlTimestampsError,
|
98 108 | Self,
|
99 109 | > {
|
100 110 | crate::client::customize::CustomizableOperation::new(self)
|
101 111 | }
|
112 + | /* FluentBuilderGenerator.kt:315 */
|
102 113 | pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
|
103 114 | self.set_config_override(::std::option::Option::Some(config_override.into()));
|
104 115 | self
|
105 116 | }
|
106 117 |
|
107 118 | pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
|
108 119 | self.config_override = config_override;
|
109 120 | self
|
110 121 | }
|
122 + | /* FluentBuilderGenerator.kt:282 */
|
111 123 | }
|