module Stratosphere.B2BI.Capability.X12DetailsProperty (
        X12DetailsProperty(..), mkX12DetailsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data X12DetailsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-capability-x12details.html>
    X12DetailsProperty {X12DetailsProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-capability-x12details.html#cfn-b2bi-capability-x12details-transactionset>
                        X12DetailsProperty -> Maybe (Value Text)
transactionSet :: (Prelude.Maybe (Value Prelude.Text)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-capability-x12details.html#cfn-b2bi-capability-x12details-version>
                        X12DetailsProperty -> Maybe (Value Text)
version :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (X12DetailsProperty -> X12DetailsProperty -> Bool
(X12DetailsProperty -> X12DetailsProperty -> Bool)
-> (X12DetailsProperty -> X12DetailsProperty -> Bool)
-> Eq X12DetailsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: X12DetailsProperty -> X12DetailsProperty -> Bool
== :: X12DetailsProperty -> X12DetailsProperty -> Bool
$c/= :: X12DetailsProperty -> X12DetailsProperty -> Bool
/= :: X12DetailsProperty -> X12DetailsProperty -> Bool
Prelude.Eq, Int -> X12DetailsProperty -> ShowS
[X12DetailsProperty] -> ShowS
X12DetailsProperty -> String
(Int -> X12DetailsProperty -> ShowS)
-> (X12DetailsProperty -> String)
-> ([X12DetailsProperty] -> ShowS)
-> Show X12DetailsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> X12DetailsProperty -> ShowS
showsPrec :: Int -> X12DetailsProperty -> ShowS
$cshow :: X12DetailsProperty -> String
show :: X12DetailsProperty -> String
$cshowList :: [X12DetailsProperty] -> ShowS
showList :: [X12DetailsProperty] -> ShowS
Prelude.Show)
mkX12DetailsProperty :: X12DetailsProperty
mkX12DetailsProperty :: X12DetailsProperty
mkX12DetailsProperty
  = X12DetailsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), transactionSet :: Maybe (Value Text)
transactionSet = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       version :: Maybe (Value Text)
version = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties X12DetailsProperty where
  toResourceProperties :: X12DetailsProperty -> ResourceProperties
toResourceProperties X12DetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: X12DetailsProperty -> ()
transactionSet :: X12DetailsProperty -> Maybe (Value Text)
version :: X12DetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
transactionSet :: Maybe (Value Text)
version :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::B2BI::Capability.X12Details",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TransactionSet" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
transactionSet,
                            Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Version" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
version])}
instance JSON.ToJSON X12DetailsProperty where
  toJSON :: X12DetailsProperty -> Value
toJSON X12DetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: X12DetailsProperty -> ()
transactionSet :: X12DetailsProperty -> Maybe (Value Text)
version :: X12DetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
transactionSet :: Maybe (Value Text)
version :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TransactionSet" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
transactionSet,
               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Version" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
version]))
instance Property "TransactionSet" X12DetailsProperty where
  type PropertyType "TransactionSet" X12DetailsProperty = Value Prelude.Text
  set :: PropertyType "TransactionSet" X12DetailsProperty
-> X12DetailsProperty -> X12DetailsProperty
set PropertyType "TransactionSet" X12DetailsProperty
newValue X12DetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: X12DetailsProperty -> ()
transactionSet :: X12DetailsProperty -> Maybe (Value Text)
version :: X12DetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
transactionSet :: Maybe (Value Text)
version :: Maybe (Value Text)
..}
    = X12DetailsProperty {transactionSet :: Maybe (Value Text)
transactionSet = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TransactionSet" X12DetailsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
version :: Maybe (Value Text)
haddock_workaround_ :: ()
version :: Maybe (Value Text)
..}
instance Property "Version" X12DetailsProperty where
  type PropertyType "Version" X12DetailsProperty = Value Prelude.Text
  set :: PropertyType "Version" X12DetailsProperty
-> X12DetailsProperty -> X12DetailsProperty
set PropertyType "Version" X12DetailsProperty
newValue X12DetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: X12DetailsProperty -> ()
transactionSet :: X12DetailsProperty -> Maybe (Value Text)
version :: X12DetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
transactionSet :: Maybe (Value Text)
version :: Maybe (Value Text)
..}
    = X12DetailsProperty {version :: Maybe (Value Text)
version = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Version" X12DetailsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
transactionSet :: Maybe (Value Text)
haddock_workaround_ :: ()
transactionSet :: Maybe (Value Text)
..}