#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteEntitlementInput {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub stack_name: std::option::Option<std::string::String>,
}
impl DeleteEntitlementInput {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn stack_name(&self) -> std::option::Option<&str> {
self.stack_name.as_deref()
}
}
impl DeleteEntitlementInput {
pub fn builder() -> crate::operation::delete_entitlement::builders::DeleteEntitlementInputBuilder
{
crate::operation::delete_entitlement::builders::DeleteEntitlementInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteEntitlementInputBuilder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) stack_name: std::option::Option<std::string::String>,
}
impl DeleteEntitlementInputBuilder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn stack_name(mut self, input: impl Into<std::string::String>) -> Self {
self.stack_name = 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 build(
self,
) -> Result<
crate::operation::delete_entitlement::DeleteEntitlementInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::delete_entitlement::DeleteEntitlementInput {
name: self.name,
stack_name: self.stack_name,
},
)
}
}