aws_sdk_datasync/operation/delete_task/
_delete_task_input.rs#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteTaskInput {
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()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteTaskInputBuilder {
pub(crate) task_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteTaskInputBuilder {
pub fn task_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.task_arn = ::std::option::Option::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 get_task_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.task_arn
}
pub fn build(self) -> ::std::result::Result<crate::operation::delete_task::DeleteTaskInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_task::DeleteTaskInput { task_arn: self.task_arn })
}
}