#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RevokeFlowEntitlementInput {
pub entitlement_arn: ::std::option::Option<::std::string::String>,
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()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
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 ::std::convert::Into<::std::string::String>) -> Self {
self.entitlement_arn = ::std::option::Option::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 get_entitlement_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.entitlement_arn
}
pub fn flow_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.flow_arn = ::std::option::Option::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 get_flow_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.flow_arn
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::revoke_flow_entitlement::RevokeFlowEntitlementInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::revoke_flow_entitlement::RevokeFlowEntitlementInput {
entitlement_arn: self.entitlement_arn,
flow_arn: self.flow_arn,
})
}
}