#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RevokeFlowEntitlementInput {
#[doc(hidden)]
pub entitlement_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub flow_arn: std::option::Option<std::string::String>,
}
impl RevokeFlowEntitlementInput {
pub fn entitlement_arn(&self) -> std::option::Option<&str> {
self.entitlement_arn.as_deref()
}
pub fn flow_arn(&self) -> std::option::Option<&str> {
self.flow_arn.as_deref()
}
}
impl RevokeFlowEntitlementInput {
pub fn builder(
) -> crate::operation::revoke_flow_entitlement::builders::RevokeFlowEntitlementInputBuilder
{
crate::operation::revoke_flow_entitlement::builders::RevokeFlowEntitlementInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct RevokeFlowEntitlementInputBuilder {
pub(crate) entitlement_arn: std::option::Option<std::string::String>,
pub(crate) flow_arn: std::option::Option<std::string::String>,
}
impl RevokeFlowEntitlementInputBuilder {
pub fn entitlement_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.entitlement_arn = Some(input.into());
self
}
pub fn set_entitlement_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.entitlement_arn = input;
self
}
pub fn flow_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.flow_arn = Some(input.into());
self
}
pub fn set_flow_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.flow_arn = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::revoke_flow_entitlement::RevokeFlowEntitlementInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::revoke_flow_entitlement::RevokeFlowEntitlementInput {
entitlement_arn: self.entitlement_arn,
flow_arn: self.flow_arn,
},
)
}
}