#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteRunBatchInput {
pub batch_id: ::std::option::Option<::std::string::String>,
}
impl DeleteRunBatchInput {
pub fn batch_id(&self) -> ::std::option::Option<&str> {
self.batch_id.as_deref()
}
}
impl DeleteRunBatchInput {
pub fn builder() -> crate::operation::delete_run_batch::builders::DeleteRunBatchInputBuilder {
crate::operation::delete_run_batch::builders::DeleteRunBatchInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteRunBatchInputBuilder {
pub(crate) batch_id: ::std::option::Option<::std::string::String>,
}
impl DeleteRunBatchInputBuilder {
pub fn batch_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.batch_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_batch_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.batch_id = input;
self
}
pub fn get_batch_id(&self) -> &::std::option::Option<::std::string::String> {
&self.batch_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_run_batch::DeleteRunBatchInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_run_batch::DeleteRunBatchInput { batch_id: self.batch_id })
}
}