aws_sdk_odb/operation/get_db_node/
builders.rs1pub use crate::operation::get_db_node::_get_db_node_output::GetDbNodeOutputBuilder;
3
4pub use crate::operation::get_db_node::_get_db_node_input::GetDbNodeInputBuilder;
5
6impl crate::operation::get_db_node::builders::GetDbNodeInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::get_db_node::GetDbNodeOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::get_db_node::GetDbNodeError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.get_db_node();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct GetDbNodeFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::get_db_node::builders::GetDbNodeInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::get_db_node::GetDbNodeOutput,
35 crate::operation::get_db_node::GetDbNodeError,
36 > for GetDbNodeFluentBuilder
37{
38 fn send(
39 self,
40 config_override: crate::config::Builder,
41 ) -> crate::client::customize::internal::BoxFuture<
42 crate::client::customize::internal::SendResult<crate::operation::get_db_node::GetDbNodeOutput, crate::operation::get_db_node::GetDbNodeError>,
43 > {
44 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
45 }
46}
47impl GetDbNodeFluentBuilder {
48 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
50 Self {
51 handle,
52 inner: ::std::default::Default::default(),
53 config_override: ::std::option::Option::None,
54 }
55 }
56 pub fn as_input(&self) -> &crate::operation::get_db_node::builders::GetDbNodeInputBuilder {
58 &self.inner
59 }
60 pub async fn send(
69 self,
70 ) -> ::std::result::Result<
71 crate::operation::get_db_node::GetDbNodeOutput,
72 ::aws_smithy_runtime_api::client::result::SdkError<
73 crate::operation::get_db_node::GetDbNodeError,
74 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
75 >,
76 > {
77 let input = self
78 .inner
79 .build()
80 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
81 let runtime_plugins = crate::operation::get_db_node::GetDbNode::operation_runtime_plugins(
82 self.handle.runtime_plugins.clone(),
83 &self.handle.conf,
84 self.config_override,
85 );
86 crate::operation::get_db_node::GetDbNode::orchestrate(&runtime_plugins, input).await
87 }
88
89 pub fn customize(
91 self,
92 ) -> crate::client::customize::CustomizableOperation<
93 crate::operation::get_db_node::GetDbNodeOutput,
94 crate::operation::get_db_node::GetDbNodeError,
95 Self,
96 > {
97 crate::client::customize::CustomizableOperation::new(self)
98 }
99 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
100 self.set_config_override(::std::option::Option::Some(config_override.into()));
101 self
102 }
103
104 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
105 self.config_override = config_override;
106 self
107 }
108 pub fn cloud_vm_cluster_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
110 self.inner = self.inner.cloud_vm_cluster_id(input.into());
111 self
112 }
113 pub fn set_cloud_vm_cluster_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
115 self.inner = self.inner.set_cloud_vm_cluster_id(input);
116 self
117 }
118 pub fn get_cloud_vm_cluster_id(&self) -> &::std::option::Option<::std::string::String> {
120 self.inner.get_cloud_vm_cluster_id()
121 }
122 pub fn db_node_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
124 self.inner = self.inner.db_node_id(input.into());
125 self
126 }
127 pub fn set_db_node_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
129 self.inner = self.inner.set_db_node_id(input);
130 self
131 }
132 pub fn get_db_node_id(&self) -> &::std::option::Option<::std::string::String> {
134 self.inner.get_db_node_id()
135 }
136}