aws_sdk_wellarchitected/operation/update_review_template_answer/
builders.rspub use crate::operation::update_review_template_answer::_update_review_template_answer_output::UpdateReviewTemplateAnswerOutputBuilder;
pub use crate::operation::update_review_template_answer::_update_review_template_answer_input::UpdateReviewTemplateAnswerInputBuilder;
impl crate::operation::update_review_template_answer::builders::UpdateReviewTemplateAnswerInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.update_review_template_answer();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateReviewTemplateAnswerFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_review_template_answer::builders::UpdateReviewTemplateAnswerInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerOutput,
crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError,
> for UpdateReviewTemplateAnswerFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerOutput,
crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl UpdateReviewTemplateAnswerFluentBuilder {
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::update_review_template_answer::builders::UpdateReviewTemplateAnswerInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError,
::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::update_review_template_answer::UpdateReviewTemplateAnswer::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::update_review_template_answer::UpdateReviewTemplateAnswer::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerOutput,
crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError,
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 template_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.template_arn(input.into());
self
}
pub fn set_template_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_template_arn(input);
self
}
pub fn get_template_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_template_arn()
}
pub fn lens_alias(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.lens_alias(input.into());
self
}
pub fn set_lens_alias(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_lens_alias(input);
self
}
pub fn get_lens_alias(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_lens_alias()
}
pub fn question_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.question_id(input.into());
self
}
pub fn set_question_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_question_id(input);
self
}
pub fn get_question_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_question_id()
}
pub fn selected_choices(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.selected_choices(input.into());
self
}
pub fn set_selected_choices(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_selected_choices(input);
self
}
pub fn get_selected_choices(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_selected_choices()
}
pub fn choice_updates(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::ChoiceUpdate) -> Self {
self.inner = self.inner.choice_updates(k.into(), v);
self
}
pub fn set_choice_updates(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ChoiceUpdate>>,
) -> Self {
self.inner = self.inner.set_choice_updates(input);
self
}
pub fn get_choice_updates(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ChoiceUpdate>> {
self.inner.get_choice_updates()
}
pub fn notes(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.notes(input.into());
self
}
pub fn set_notes(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_notes(input);
self
}
pub fn get_notes(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_notes()
}
pub fn is_applicable(mut self, input: bool) -> Self {
self.inner = self.inner.is_applicable(input);
self
}
pub fn set_is_applicable(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_is_applicable(input);
self
}
pub fn get_is_applicable(&self) -> &::std::option::Option<bool> {
self.inner.get_is_applicable()
}
pub fn reason(mut self, input: crate::types::AnswerReason) -> Self {
self.inner = self.inner.reason(input);
self
}
pub fn set_reason(mut self, input: ::std::option::Option<crate::types::AnswerReason>) -> Self {
self.inner = self.inner.set_reason(input);
self
}
pub fn get_reason(&self) -> &::std::option::Option<crate::types::AnswerReason> {
self.inner.get_reason()
}
}