pub use crate::operation::describe_matchmaking_rule_sets::_describe_matchmaking_rule_sets_output::DescribeMatchmakingRuleSetsOutputBuilder;
pub use crate::operation::describe_matchmaking_rule_sets::_describe_matchmaking_rule_sets_input::DescribeMatchmakingRuleSetsInputBuilder;
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeMatchmakingRuleSetsFluentBuilder {
handle: std::sync::Arc<crate::client::Handle>,
inner: crate::operation::describe_matchmaking_rule_sets::builders::DescribeMatchmakingRuleSetsInputBuilder
}
impl DescribeMatchmakingRuleSetsFluentBuilder {
pub(crate) fn new(handle: std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
pub async fn customize(
self,
) -> std::result::Result<
crate::client::customize::CustomizableOperation<
crate::operation::describe_matchmaking_rule_sets::DescribeMatchmakingRuleSets,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::operation::describe_matchmaking_rule_sets::DescribeMatchmakingRuleSetsError,
>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::client::customize::CustomizableOperation { handle, operation })
}
pub async fn send(
self,
) -> std::result::Result<
crate::operation::describe_matchmaking_rule_sets::DescribeMatchmakingRuleSetsOutput,
aws_smithy_http::result::SdkError<
crate::operation::describe_matchmaking_rule_sets::DescribeMatchmakingRuleSetsError,
>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
pub fn into_paginator(self) -> crate::operation::describe_matchmaking_rule_sets::paginator::DescribeMatchmakingRuleSetsPaginator{
crate::operation::describe_matchmaking_rule_sets::paginator::DescribeMatchmakingRuleSetsPaginator::new(self.handle, self.inner)
}
pub fn names(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.names(input.into());
self
}
pub fn set_names(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_names(input);
self
}
pub fn limit(mut self, input: i32) -> Self {
self.inner = self.inner.limit(input);
self
}
pub fn set_limit(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_limit(input);
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
}