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