#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DetectStackDriftInput {
pub stack_name: ::std::option::Option<::std::string::String>,
pub logical_resource_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DetectStackDriftInput {
pub fn stack_name(&self) -> ::std::option::Option<&str> {
self.stack_name.as_deref()
}
pub fn logical_resource_ids(&self) -> &[::std::string::String] {
self.logical_resource_ids.as_deref().unwrap_or_default()
}
}
impl DetectStackDriftInput {
pub fn builder() -> crate::operation::detect_stack_drift::builders::DetectStackDriftInputBuilder {
crate::operation::detect_stack_drift::builders::DetectStackDriftInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DetectStackDriftInputBuilder {
pub(crate) stack_name: ::std::option::Option<::std::string::String>,
pub(crate) logical_resource_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DetectStackDriftInputBuilder {
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_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.logical_resource_ids.unwrap_or_default();
v.push(input.into());
self.logical_resource_ids = ::std::option::Option::Some(v);
self
}
pub fn set_logical_resource_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.logical_resource_ids = input;
self
}
pub fn get_logical_resource_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.logical_resource_ids
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::detect_stack_drift::DetectStackDriftInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::detect_stack_drift::DetectStackDriftInput {
stack_name: self.stack_name,
logical_resource_ids: self.logical_resource_ids,
})
}
}