aws_sdk_devicefarm/operation/stop_job/
_stop_job_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StopJobInput {
pub arn: ::std::option::Option<::std::string::String>,
}
impl StopJobInput {
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
}
impl StopJobInput {
pub fn builder() -> crate::operation::stop_job::builders::StopJobInputBuilder {
crate::operation::stop_job::builders::StopJobInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StopJobInputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
}
impl StopJobInputBuilder {
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
pub fn build(self) -> ::std::result::Result<crate::operation::stop_job::StopJobInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::stop_job::StopJobInput { arn: self.arn })
}
}