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