pub use crate::operation::get_insight_rule_report::_get_insight_rule_report_input::GetInsightRuleReportInputBuilder;
pub use crate::operation::get_insight_rule_report::_get_insight_rule_report_output::GetInsightRuleReportOutputBuilder;
impl crate::operation::get_insight_rule_report::builders::GetInsightRuleReportInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::get_insight_rule_report::GetInsightRuleReportOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_insight_rule_report::GetInsightRuleReportError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.get_insight_rule_report();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct GetInsightRuleReportFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::get_insight_rule_report::builders::GetInsightRuleReportInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::get_insight_rule_report::GetInsightRuleReportOutput,
crate::operation::get_insight_rule_report::GetInsightRuleReportError,
> for GetInsightRuleReportFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::get_insight_rule_report::GetInsightRuleReportOutput,
crate::operation::get_insight_rule_report::GetInsightRuleReportError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl GetInsightRuleReportFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
pub fn as_input(&self) -> &crate::operation::get_insight_rule_report::builders::GetInsightRuleReportInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::get_insight_rule_report::GetInsightRuleReportOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_insight_rule_report::GetInsightRuleReportError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::get_insight_rule_report::GetInsightRuleReport::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::get_insight_rule_report::GetInsightRuleReport::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::get_insight_rule_report::GetInsightRuleReportOutput,
crate::operation::get_insight_rule_report::GetInsightRuleReportError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
self.set_config_override(::std::option::Option::Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
pub fn rule_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.rule_name(input.into());
self
}
pub fn set_rule_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_rule_name(input);
self
}
pub fn get_rule_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_rule_name()
}
pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.inner = self.inner.start_time(input);
self
}
pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.inner = self.inner.set_start_time(input);
self
}
pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
self.inner.get_start_time()
}
pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.inner = self.inner.end_time(input);
self
}
pub fn set_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.inner = self.inner.set_end_time(input);
self
}
pub fn get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
self.inner.get_end_time()
}
pub fn period(mut self, input: i32) -> Self {
self.inner = self.inner.period(input);
self
}
pub fn set_period(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_period(input);
self
}
pub fn get_period(&self) -> &::std::option::Option<i32> {
self.inner.get_period()
}
pub fn max_contributor_count(mut self, input: i32) -> Self {
self.inner = self.inner.max_contributor_count(input);
self
}
pub fn set_max_contributor_count(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_contributor_count(input);
self
}
pub fn get_max_contributor_count(&self) -> &::std::option::Option<i32> {
self.inner.get_max_contributor_count()
}
pub fn metrics(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.metrics(input.into());
self
}
pub fn set_metrics(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_metrics(input);
self
}
pub fn get_metrics(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_metrics()
}
pub fn order_by(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.order_by(input.into());
self
}
pub fn set_order_by(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_order_by(input);
self
}
pub fn get_order_by(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_order_by()
}
}