module Stratosphere.B2BI.Partnership.CapabilityOptionsProperty ( module Exports, CapabilityOptionsProperty(..), mkCapabilityOptionsProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.B2BI.Partnership.InboundEdiOptionsProperty as Exports import {-# SOURCE #-} Stratosphere.B2BI.Partnership.OutboundEdiOptionsProperty as Exports import Stratosphere.ResourceProperties data CapabilityOptionsProperty = -- | See: CapabilityOptionsProperty {haddock_workaround_ :: (), -- | See: inboundEdi :: (Prelude.Maybe InboundEdiOptionsProperty), -- | See: outboundEdi :: (Prelude.Maybe OutboundEdiOptionsProperty)} deriving stock (Prelude.Eq, Prelude.Show) mkCapabilityOptionsProperty :: CapabilityOptionsProperty mkCapabilityOptionsProperty = CapabilityOptionsProperty {haddock_workaround_ = (), inboundEdi = Prelude.Nothing, outboundEdi = Prelude.Nothing} instance ToResourceProperties CapabilityOptionsProperty where toResourceProperties CapabilityOptionsProperty {..} = ResourceProperties {awsType = "AWS::B2BI::Partnership.CapabilityOptions", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "InboundEdi" Prelude.<$> inboundEdi, (JSON..=) "OutboundEdi" Prelude.<$> outboundEdi])} instance JSON.ToJSON CapabilityOptionsProperty where toJSON CapabilityOptionsProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "InboundEdi" Prelude.<$> inboundEdi, (JSON..=) "OutboundEdi" Prelude.<$> outboundEdi])) instance Property "InboundEdi" CapabilityOptionsProperty where type PropertyType "InboundEdi" CapabilityOptionsProperty = InboundEdiOptionsProperty set newValue CapabilityOptionsProperty {..} = CapabilityOptionsProperty {inboundEdi = Prelude.pure newValue, ..} instance Property "OutboundEdi" CapabilityOptionsProperty where type PropertyType "OutboundEdi" CapabilityOptionsProperty = OutboundEdiOptionsProperty set newValue CapabilityOptionsProperty {..} = CapabilityOptionsProperty {outboundEdi = Prelude.pure newValue, ..}