pub use crate::operation::batch_update_findings::_batch_update_findings_input::BatchUpdateFindingsInputBuilder;
pub use crate::operation::batch_update_findings::_batch_update_findings_output::BatchUpdateFindingsOutputBuilder;
impl crate::operation::batch_update_findings::builders::BatchUpdateFindingsInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::batch_update_findings::BatchUpdateFindingsOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::batch_update_findings::BatchUpdateFindingsError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.batch_update_findings();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct BatchUpdateFindingsFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::batch_update_findings::builders::BatchUpdateFindingsInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::batch_update_findings::BatchUpdateFindingsOutput,
crate::operation::batch_update_findings::BatchUpdateFindingsError,
> for BatchUpdateFindingsFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::batch_update_findings::BatchUpdateFindingsOutput,
crate::operation::batch_update_findings::BatchUpdateFindingsError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl BatchUpdateFindingsFluentBuilder {
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::batch_update_findings::builders::BatchUpdateFindingsInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::batch_update_findings::BatchUpdateFindingsOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::batch_update_findings::BatchUpdateFindingsError,
::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::batch_update_findings::BatchUpdateFindings::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::batch_update_findings::BatchUpdateFindings::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::batch_update_findings::BatchUpdateFindingsOutput,
crate::operation::batch_update_findings::BatchUpdateFindingsError,
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 finding_identifiers(mut self, input: crate::types::AwsSecurityFindingIdentifier) -> Self {
self.inner = self.inner.finding_identifiers(input);
self
}
pub fn set_finding_identifiers(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AwsSecurityFindingIdentifier>>) -> Self {
self.inner = self.inner.set_finding_identifiers(input);
self
}
pub fn get_finding_identifiers(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AwsSecurityFindingIdentifier>> {
self.inner.get_finding_identifiers()
}
pub fn note(mut self, input: crate::types::NoteUpdate) -> Self {
self.inner = self.inner.note(input);
self
}
pub fn set_note(mut self, input: ::std::option::Option<crate::types::NoteUpdate>) -> Self {
self.inner = self.inner.set_note(input);
self
}
pub fn get_note(&self) -> &::std::option::Option<crate::types::NoteUpdate> {
self.inner.get_note()
}
pub fn severity(mut self, input: crate::types::SeverityUpdate) -> Self {
self.inner = self.inner.severity(input);
self
}
pub fn set_severity(mut self, input: ::std::option::Option<crate::types::SeverityUpdate>) -> Self {
self.inner = self.inner.set_severity(input);
self
}
pub fn get_severity(&self) -> &::std::option::Option<crate::types::SeverityUpdate> {
self.inner.get_severity()
}
pub fn verification_state(mut self, input: crate::types::VerificationState) -> Self {
self.inner = self.inner.verification_state(input);
self
}
pub fn set_verification_state(mut self, input: ::std::option::Option<crate::types::VerificationState>) -> Self {
self.inner = self.inner.set_verification_state(input);
self
}
pub fn get_verification_state(&self) -> &::std::option::Option<crate::types::VerificationState> {
self.inner.get_verification_state()
}
pub fn confidence(mut self, input: i32) -> Self {
self.inner = self.inner.confidence(input);
self
}
pub fn set_confidence(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_confidence(input);
self
}
pub fn get_confidence(&self) -> &::std::option::Option<i32> {
self.inner.get_confidence()
}
pub fn criticality(mut self, input: i32) -> Self {
self.inner = self.inner.criticality(input);
self
}
pub fn set_criticality(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_criticality(input);
self
}
pub fn get_criticality(&self) -> &::std::option::Option<i32> {
self.inner.get_criticality()
}
pub fn types(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.types(input.into());
self
}
pub fn set_types(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_types(input);
self
}
pub fn get_types(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_types()
}
pub fn user_defined_fields(
mut self,
k: impl ::std::convert::Into<::std::string::String>,
v: impl ::std::convert::Into<::std::string::String>,
) -> Self {
self.inner = self.inner.user_defined_fields(k.into(), v.into());
self
}
pub fn set_user_defined_fields(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
) -> Self {
self.inner = self.inner.set_user_defined_fields(input);
self
}
pub fn get_user_defined_fields(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.inner.get_user_defined_fields()
}
pub fn workflow(mut self, input: crate::types::WorkflowUpdate) -> Self {
self.inner = self.inner.workflow(input);
self
}
pub fn set_workflow(mut self, input: ::std::option::Option<crate::types::WorkflowUpdate>) -> Self {
self.inner = self.inner.set_workflow(input);
self
}
pub fn get_workflow(&self) -> &::std::option::Option<crate::types::WorkflowUpdate> {
self.inner.get_workflow()
}
pub fn related_findings(mut self, input: crate::types::RelatedFinding) -> Self {
self.inner = self.inner.related_findings(input);
self
}
pub fn set_related_findings(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::RelatedFinding>>) -> Self {
self.inner = self.inner.set_related_findings(input);
self
}
pub fn get_related_findings(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::RelatedFinding>> {
self.inner.get_related_findings()
}
}