aws_sdk_dynamodb/operation/describe_contributor_insights/
builders.rs1pub use crate::operation::describe_contributor_insights::_describe_contributor_insights_output::DescribeContributorInsightsOutputBuilder;
3
4pub use crate::operation::describe_contributor_insights::_describe_contributor_insights_input::DescribeContributorInsightsInputBuilder;
5
6impl crate::operation::describe_contributor_insights::builders::DescribeContributorInsightsInputBuilder {
7 pub async fn send_with(self, client: &crate::Client) -> ::std::result::Result<
9 crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput,
10 ::aws_smithy_runtime_api::client::result::SdkError<
11 crate::operation::describe_contributor_insights::DescribeContributorInsightsError,
12 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse
13 >
14 > {
15 let mut fluent_builder = client.describe_contributor_insights();
16 fluent_builder.inner = self;
17 fluent_builder.send().await
18 }
19 }
20#[derive(::std::clone::Clone, ::std::fmt::Debug)]
24pub struct DescribeContributorInsightsFluentBuilder {
25 handle: ::std::sync::Arc<crate::client::Handle>,
26 inner: crate::operation::describe_contributor_insights::builders::DescribeContributorInsightsInputBuilder,
27config_override: ::std::option::Option<crate::config::Builder>,
28 }
29impl
30 crate::client::customize::internal::CustomizableSend<
31 crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput,
32 crate::operation::describe_contributor_insights::DescribeContributorInsightsError,
33 > for DescribeContributorInsightsFluentBuilder
34 {
35 fn send(
36 self,
37 config_override: crate::config::Builder,
38 ) -> crate::client::customize::internal::BoxFuture<
39 crate::client::customize::internal::SendResult<
40 crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput,
41 crate::operation::describe_contributor_insights::DescribeContributorInsightsError,
42 >,
43 > {
44 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
45 }
46 }
47impl DescribeContributorInsightsFluentBuilder {
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::describe_contributor_insights::builders::DescribeContributorInsightsInputBuilder {
58 &self.inner
59 }
60 pub async fn send(self) -> ::std::result::Result<crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput, ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_contributor_insights::DescribeContributorInsightsError, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>> {
70 let input = self.inner.build().map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
71 let runtime_plugins = crate::operation::describe_contributor_insights::DescribeContributorInsights::operation_runtime_plugins(
72 self.handle.runtime_plugins.clone(),
73 &self.handle.conf,
74 self.config_override,
75 );
76 crate::operation::describe_contributor_insights::DescribeContributorInsights::orchestrate(&runtime_plugins, input).await
77 }
78
79 pub fn customize(
81 self,
82 ) -> crate::client::customize::CustomizableOperation<crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput, crate::operation::describe_contributor_insights::DescribeContributorInsightsError, Self> {
83 crate::client::customize::CustomizableOperation::new(self)
84 }
85 pub(crate) fn config_override(
86 mut self,
87 config_override: impl ::std::convert::Into<crate::config::Builder>,
88 ) -> Self {
89 self.set_config_override(::std::option::Option::Some(config_override.into()));
90 self
91 }
92
93 pub(crate) fn set_config_override(
94 &mut self,
95 config_override: ::std::option::Option<crate::config::Builder>,
96 ) -> &mut Self {
97 self.config_override = config_override;
98 self
99 }
100 pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
102 self.inner = self.inner.table_name(input.into());
103 self
104 }
105 pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
107 self.inner = self.inner.set_table_name(input);
108 self
109 }
110 pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
112 self.inner.get_table_name()
113 }
114 pub fn index_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
116 self.inner = self.inner.index_name(input.into());
117 self
118 }
119 pub fn set_index_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
121 self.inner = self.inner.set_index_name(input);
122 self
123 }
124 pub fn get_index_name(&self) -> &::std::option::Option<::std::string::String> {
126 self.inner.get_index_name()
127 }
128}
129