pub use crate::operation::modify_scheduled_action::_modify_scheduled_action_output::ModifyScheduledActionOutputBuilder;
pub use crate::operation::modify_scheduled_action::_modify_scheduled_action_input::ModifyScheduledActionInputBuilder;
impl ModifyScheduledActionInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::modify_scheduled_action::ModifyScheduledActionOutput,
::aws_smithy_http::result::SdkError<
crate::operation::modify_scheduled_action::ModifyScheduledActionError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.modify_scheduled_action();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct ModifyScheduledActionFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::modify_scheduled_action::builders::ModifyScheduledActionInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl ModifyScheduledActionFluentBuilder {
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::modify_scheduled_action::builders::ModifyScheduledActionInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::modify_scheduled_action::ModifyScheduledActionOutput,
::aws_smithy_http::result::SdkError<
crate::operation::modify_scheduled_action::ModifyScheduledActionError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self.inner.build().map_err(::aws_smithy_http::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::modify_scheduled_action::ModifyScheduledAction::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::modify_scheduled_action::ModifyScheduledAction::orchestrate(&runtime_plugins, input).await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::orchestrator::CustomizableOperation<
crate::operation::modify_scheduled_action::ModifyScheduledActionOutput,
crate::operation::modify_scheduled_action::ModifyScheduledActionError,
>,
::aws_smithy_http::result::SdkError<crate::operation::modify_scheduled_action::ModifyScheduledActionError>,
> {
::std::result::Result::Ok(crate::client::customize::orchestrator::CustomizableOperation {
customizable_send: ::std::boxed::Box::new(move |config_override| {
::std::boxed::Box::pin(async { self.config_override(config_override).send().await })
}),
config_override: None,
interceptors: vec![],
runtime_plugins: vec![],
})
}
pub(crate) fn config_override(mut self, config_override: impl Into<crate::config::Builder>) -> Self {
self.set_config_override(Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
pub fn scheduled_action_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.scheduled_action_name(input.into());
self
}
pub fn set_scheduled_action_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_scheduled_action_name(input);
self
}
pub fn get_scheduled_action_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_scheduled_action_name()
}
pub fn target_action(mut self, input: crate::types::ScheduledActionType) -> Self {
self.inner = self.inner.target_action(input);
self
}
pub fn set_target_action(mut self, input: ::std::option::Option<crate::types::ScheduledActionType>) -> Self {
self.inner = self.inner.set_target_action(input);
self
}
pub fn get_target_action(&self) -> &::std::option::Option<crate::types::ScheduledActionType> {
self.inner.get_target_action()
}
pub fn schedule(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.schedule(input.into());
self
}
pub fn set_schedule(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_schedule(input);
self
}
pub fn get_schedule(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_schedule()
}
pub fn iam_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.iam_role(input.into());
self
}
pub fn set_iam_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_iam_role(input);
self
}
pub fn get_iam_role(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_iam_role()
}
pub fn scheduled_action_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.scheduled_action_description(input.into());
self
}
pub fn set_scheduled_action_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_scheduled_action_description(input);
self
}
pub fn get_scheduled_action_description(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_scheduled_action_description()
}
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 enable(mut self, input: bool) -> Self {
self.inner = self.inner.enable(input);
self
}
pub fn set_enable(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enable(input);
self
}
pub fn get_enable(&self) -> &::std::option::Option<bool> {
self.inner.get_enable()
}
}