aws_sdk_eventbridge/operation/list_rules/
builders.rs1pub use crate::operation::list_rules::_list_rules_output::ListRulesOutputBuilder;
3
4pub use crate::operation::list_rules::_list_rules_input::ListRulesInputBuilder;
5
6impl crate::operation::list_rules::builders::ListRulesInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::list_rules::ListRulesOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::list_rules::ListRulesError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.list_rules();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
29pub struct ListRulesFluentBuilder {
30 handle: ::std::sync::Arc<crate::client::Handle>,
31 inner: crate::operation::list_rules::builders::ListRulesInputBuilder,
32 config_override: ::std::option::Option<crate::config::Builder>,
33}
34impl crate::client::customize::internal::CustomizableSend<crate::operation::list_rules::ListRulesOutput, crate::operation::list_rules::ListRulesError>
35 for ListRulesFluentBuilder
36{
37 fn send(
38 self,
39 config_override: crate::config::Builder,
40 ) -> crate::client::customize::internal::BoxFuture<
41 crate::client::customize::internal::SendResult<crate::operation::list_rules::ListRulesOutput, crate::operation::list_rules::ListRulesError>,
42 > {
43 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
44 }
45}
46impl ListRulesFluentBuilder {
47 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
49 Self {
50 handle,
51 inner: ::std::default::Default::default(),
52 config_override: ::std::option::Option::None,
53 }
54 }
55 pub fn as_input(&self) -> &crate::operation::list_rules::builders::ListRulesInputBuilder {
57 &self.inner
58 }
59 pub async fn send(
68 self,
69 ) -> ::std::result::Result<
70 crate::operation::list_rules::ListRulesOutput,
71 ::aws_smithy_runtime_api::client::result::SdkError<
72 crate::operation::list_rules::ListRulesError,
73 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
74 >,
75 > {
76 let input = self
77 .inner
78 .build()
79 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
80 let runtime_plugins = crate::operation::list_rules::ListRules::operation_runtime_plugins(
81 self.handle.runtime_plugins.clone(),
82 &self.handle.conf,
83 self.config_override,
84 );
85 crate::operation::list_rules::ListRules::orchestrate(&runtime_plugins, input).await
86 }
87
88 pub fn customize(
90 self,
91 ) -> crate::client::customize::CustomizableOperation<
92 crate::operation::list_rules::ListRulesOutput,
93 crate::operation::list_rules::ListRulesError,
94 Self,
95 > {
96 crate::client::customize::CustomizableOperation::new(self)
97 }
98 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
99 self.set_config_override(::std::option::Option::Some(config_override.into()));
100 self
101 }
102
103 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
104 self.config_override = config_override;
105 self
106 }
107 pub fn name_prefix(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
109 self.inner = self.inner.name_prefix(input.into());
110 self
111 }
112 pub fn set_name_prefix(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
114 self.inner = self.inner.set_name_prefix(input);
115 self
116 }
117 pub fn get_name_prefix(&self) -> &::std::option::Option<::std::string::String> {
119 self.inner.get_name_prefix()
120 }
121 pub fn event_bus_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
123 self.inner = self.inner.event_bus_name(input.into());
124 self
125 }
126 pub fn set_event_bus_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
128 self.inner = self.inner.set_event_bus_name(input);
129 self
130 }
131 pub fn get_event_bus_name(&self) -> &::std::option::Option<::std::string::String> {
133 self.inner.get_event_bus_name()
134 }
135 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
139 self.inner = self.inner.next_token(input.into());
140 self
141 }
142 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
146 self.inner = self.inner.set_next_token(input);
147 self
148 }
149 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
153 self.inner.get_next_token()
154 }
155 pub fn limit(mut self, input: i32) -> Self {
157 self.inner = self.inner.limit(input);
158 self
159 }
160 pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
162 self.inner = self.inner.set_limit(input);
163 self
164 }
165 pub fn get_limit(&self) -> &::std::option::Option<i32> {
167 self.inner.get_limit()
168 }
169}