#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ScriptBatchJobIdentifier {
pub script_name: ::std::string::String,
}
impl ScriptBatchJobIdentifier {
pub fn script_name(&self) -> &str {
use std::ops::Deref;
self.script_name.deref()
}
}
impl ScriptBatchJobIdentifier {
pub fn builder() -> crate::types::builders::ScriptBatchJobIdentifierBuilder {
crate::types::builders::ScriptBatchJobIdentifierBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ScriptBatchJobIdentifierBuilder {
pub(crate) script_name: ::std::option::Option<::std::string::String>,
}
impl ScriptBatchJobIdentifierBuilder {
pub fn script_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.script_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_script_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.script_name = input;
self
}
pub fn get_script_name(&self) -> &::std::option::Option<::std::string::String> {
&self.script_name
}
pub fn build(self) -> ::std::result::Result<crate::types::ScriptBatchJobIdentifier, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::types::ScriptBatchJobIdentifier {
script_name: self.script_name.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"script_name",
"script_name was not specified but it is required when building ScriptBatchJobIdentifier",
)
})?,
})
}
}