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