#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DetectStackResourceDriftInput {
pub stack_name: ::std::option::Option<::std::string::String>,
pub logical_resource_id: ::std::option::Option<::std::string::String>,
}
impl DetectStackResourceDriftInput {
pub fn stack_name(&self) -> ::std::option::Option<&str> {
self.stack_name.as_deref()
}
pub fn logical_resource_id(&self) -> ::std::option::Option<&str> {
self.logical_resource_id.as_deref()
}
}
impl DetectStackResourceDriftInput {
pub fn builder() -> crate::operation::detect_stack_resource_drift::builders::DetectStackResourceDriftInputBuilder {
crate::operation::detect_stack_resource_drift::builders::DetectStackResourceDriftInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DetectStackResourceDriftInputBuilder {
pub(crate) stack_name: ::std::option::Option<::std::string::String>,
pub(crate) logical_resource_id: ::std::option::Option<::std::string::String>,
}
impl DetectStackResourceDriftInputBuilder {
pub fn stack_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.stack_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_stack_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.stack_name = input;
self
}
pub fn get_stack_name(&self) -> &::std::option::Option<::std::string::String> {
&self.stack_name
}
pub fn logical_resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.logical_resource_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_logical_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.logical_resource_id = input;
self
}
pub fn get_logical_resource_id(&self) -> &::std::option::Option<::std::string::String> {
&self.logical_resource_id
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::detect_stack_resource_drift::DetectStackResourceDriftInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::detect_stack_resource_drift::DetectStackResourceDriftInput {
stack_name: self.stack_name,
logical_resource_id: self.logical_resource_id,
})
}
}