#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ChangeSetHookResourceTargetDetails {
pub logical_resource_id: ::std::option::Option<::std::string::String>,
pub resource_type: ::std::option::Option<::std::string::String>,
pub resource_action: ::std::option::Option<crate::types::ChangeAction>,
}
impl ChangeSetHookResourceTargetDetails {
pub fn logical_resource_id(&self) -> ::std::option::Option<&str> {
self.logical_resource_id.as_deref()
}
pub fn resource_type(&self) -> ::std::option::Option<&str> {
self.resource_type.as_deref()
}
pub fn resource_action(&self) -> ::std::option::Option<&crate::types::ChangeAction> {
self.resource_action.as_ref()
}
}
impl ChangeSetHookResourceTargetDetails {
pub fn builder() -> crate::types::builders::ChangeSetHookResourceTargetDetailsBuilder {
crate::types::builders::ChangeSetHookResourceTargetDetailsBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ChangeSetHookResourceTargetDetailsBuilder {
pub(crate) logical_resource_id: ::std::option::Option<::std::string::String>,
pub(crate) resource_type: ::std::option::Option<::std::string::String>,
pub(crate) resource_action: ::std::option::Option<crate::types::ChangeAction>,
}
impl ChangeSetHookResourceTargetDetailsBuilder {
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 resource_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.resource_type = ::std::option::Option::Some(input.into());
self
}
pub fn set_resource_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.resource_type = input;
self
}
pub fn get_resource_type(&self) -> &::std::option::Option<::std::string::String> {
&self.resource_type
}
pub fn resource_action(mut self, input: crate::types::ChangeAction) -> Self {
self.resource_action = ::std::option::Option::Some(input);
self
}
pub fn set_resource_action(mut self, input: ::std::option::Option<crate::types::ChangeAction>) -> Self {
self.resource_action = input;
self
}
pub fn get_resource_action(&self) -> &::std::option::Option<crate::types::ChangeAction> {
&self.resource_action
}
pub fn build(self) -> crate::types::ChangeSetHookResourceTargetDetails {
crate::types::ChangeSetHookResourceTargetDetails {
logical_resource_id: self.logical_resource_id,
resource_type: self.resource_type,
resource_action: self.resource_action,
}
}
}