#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteTaskInput {
#[doc(hidden)]
pub task_arn: std::option::Option<std::string::String>,
}
impl DeleteTaskInput {
pub fn task_arn(&self) -> std::option::Option<&str> {
self.task_arn.as_deref()
}
}
impl DeleteTaskInput {
pub fn builder() -> crate::operation::delete_task::builders::DeleteTaskInputBuilder {
crate::operation::delete_task::builders::DeleteTaskInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteTaskInputBuilder {
pub(crate) task_arn: std::option::Option<std::string::String>,
}
impl DeleteTaskInputBuilder {
pub fn task_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.task_arn = Some(input.into());
self
}
pub fn set_task_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.task_arn = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::delete_task::DeleteTaskInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::delete_task::DeleteTaskInput {
task_arn: self.task_arn,
})
}
}