module Stratosphere.B2BI.Transformer.X12ValidationRuleProperty (
module Exports, X12ValidationRuleProperty(..),
mkX12ValidationRuleProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.B2BI.Transformer.X12CodeListValidationRuleProperty as Exports
import {-# SOURCE #-} Stratosphere.B2BI.Transformer.X12ElementLengthValidationRuleProperty as Exports
import {-# SOURCE #-} Stratosphere.B2BI.Transformer.X12ElementRequirementValidationRuleProperty as Exports
import Stratosphere.ResourceProperties
data X12ValidationRuleProperty
=
X12ValidationRuleProperty {X12ValidationRuleProperty -> ()
haddock_workaround_ :: (),
X12ValidationRuleProperty
-> Maybe X12CodeListValidationRuleProperty
codeListValidationRule :: (Prelude.Maybe X12CodeListValidationRuleProperty),
X12ValidationRuleProperty
-> Maybe X12ElementLengthValidationRuleProperty
elementLengthValidationRule :: (Prelude.Maybe X12ElementLengthValidationRuleProperty),
X12ValidationRuleProperty
-> Maybe X12ElementRequirementValidationRuleProperty
elementRequirementValidationRule :: (Prelude.Maybe X12ElementRequirementValidationRuleProperty)}
deriving stock (X12ValidationRuleProperty -> X12ValidationRuleProperty -> Bool
(X12ValidationRuleProperty -> X12ValidationRuleProperty -> Bool)
-> (X12ValidationRuleProperty -> X12ValidationRuleProperty -> Bool)
-> Eq X12ValidationRuleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: X12ValidationRuleProperty -> X12ValidationRuleProperty -> Bool
== :: X12ValidationRuleProperty -> X12ValidationRuleProperty -> Bool
$c/= :: X12ValidationRuleProperty -> X12ValidationRuleProperty -> Bool
/= :: X12ValidationRuleProperty -> X12ValidationRuleProperty -> Bool
Prelude.Eq, Int -> X12ValidationRuleProperty -> ShowS
[X12ValidationRuleProperty] -> ShowS
X12ValidationRuleProperty -> String
(Int -> X12ValidationRuleProperty -> ShowS)
-> (X12ValidationRuleProperty -> String)
-> ([X12ValidationRuleProperty] -> ShowS)
-> Show X12ValidationRuleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> X12ValidationRuleProperty -> ShowS
showsPrec :: Int -> X12ValidationRuleProperty -> ShowS
$cshow :: X12ValidationRuleProperty -> String
show :: X12ValidationRuleProperty -> String
$cshowList :: [X12ValidationRuleProperty] -> ShowS
showList :: [X12ValidationRuleProperty] -> ShowS
Prelude.Show)
mkX12ValidationRuleProperty :: X12ValidationRuleProperty
mkX12ValidationRuleProperty :: X12ValidationRuleProperty
mkX12ValidationRuleProperty
= X12ValidationRuleProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
codeListValidationRule :: Maybe X12CodeListValidationRuleProperty
codeListValidationRule = Maybe X12CodeListValidationRuleProperty
forall a. Maybe a
Prelude.Nothing,
elementLengthValidationRule :: Maybe X12ElementLengthValidationRuleProperty
elementLengthValidationRule = Maybe X12ElementLengthValidationRuleProperty
forall a. Maybe a
Prelude.Nothing,
elementRequirementValidationRule :: Maybe X12ElementRequirementValidationRuleProperty
elementRequirementValidationRule = Maybe X12ElementRequirementValidationRuleProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties X12ValidationRuleProperty where
toResourceProperties :: X12ValidationRuleProperty -> ResourceProperties
toResourceProperties X12ValidationRuleProperty {Maybe X12CodeListValidationRuleProperty
Maybe X12ElementLengthValidationRuleProperty
Maybe X12ElementRequirementValidationRuleProperty
()
haddock_workaround_ :: X12ValidationRuleProperty -> ()
codeListValidationRule :: X12ValidationRuleProperty
-> Maybe X12CodeListValidationRuleProperty
elementLengthValidationRule :: X12ValidationRuleProperty
-> Maybe X12ElementLengthValidationRuleProperty
elementRequirementValidationRule :: X12ValidationRuleProperty
-> Maybe X12ElementRequirementValidationRuleProperty
haddock_workaround_ :: ()
codeListValidationRule :: Maybe X12CodeListValidationRuleProperty
elementLengthValidationRule :: Maybe X12ElementLengthValidationRuleProperty
elementRequirementValidationRule :: Maybe X12ElementRequirementValidationRuleProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::B2BI::Transformer.X12ValidationRule",
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 -> X12CodeListValidationRuleProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CodeListValidationRule"
(X12CodeListValidationRuleProperty -> (Key, Value))
-> Maybe X12CodeListValidationRuleProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe X12CodeListValidationRuleProperty
codeListValidationRule,
Key -> X12ElementLengthValidationRuleProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ElementLengthValidationRule"
(X12ElementLengthValidationRuleProperty -> (Key, Value))
-> Maybe X12ElementLengthValidationRuleProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe X12ElementLengthValidationRuleProperty
elementLengthValidationRule,
Key -> X12ElementRequirementValidationRuleProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ElementRequirementValidationRule"
(X12ElementRequirementValidationRuleProperty -> (Key, Value))
-> Maybe X12ElementRequirementValidationRuleProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe X12ElementRequirementValidationRuleProperty
elementRequirementValidationRule])}
instance JSON.ToJSON X12ValidationRuleProperty where
toJSON :: X12ValidationRuleProperty -> Value
toJSON X12ValidationRuleProperty {Maybe X12CodeListValidationRuleProperty
Maybe X12ElementLengthValidationRuleProperty
Maybe X12ElementRequirementValidationRuleProperty
()
haddock_workaround_ :: X12ValidationRuleProperty -> ()
codeListValidationRule :: X12ValidationRuleProperty
-> Maybe X12CodeListValidationRuleProperty
elementLengthValidationRule :: X12ValidationRuleProperty
-> Maybe X12ElementLengthValidationRuleProperty
elementRequirementValidationRule :: X12ValidationRuleProperty
-> Maybe X12ElementRequirementValidationRuleProperty
haddock_workaround_ :: ()
codeListValidationRule :: Maybe X12CodeListValidationRuleProperty
elementLengthValidationRule :: Maybe X12ElementLengthValidationRuleProperty
elementRequirementValidationRule :: Maybe X12ElementRequirementValidationRuleProperty
..}
= [(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 -> X12CodeListValidationRuleProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CodeListValidationRule"
(X12CodeListValidationRuleProperty -> (Key, Value))
-> Maybe X12CodeListValidationRuleProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe X12CodeListValidationRuleProperty
codeListValidationRule,
Key -> X12ElementLengthValidationRuleProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ElementLengthValidationRule"
(X12ElementLengthValidationRuleProperty -> (Key, Value))
-> Maybe X12ElementLengthValidationRuleProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe X12ElementLengthValidationRuleProperty
elementLengthValidationRule,
Key -> X12ElementRequirementValidationRuleProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ElementRequirementValidationRule"
(X12ElementRequirementValidationRuleProperty -> (Key, Value))
-> Maybe X12ElementRequirementValidationRuleProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe X12ElementRequirementValidationRuleProperty
elementRequirementValidationRule]))
instance Property "CodeListValidationRule" X12ValidationRuleProperty where
type PropertyType "CodeListValidationRule" X12ValidationRuleProperty = X12CodeListValidationRuleProperty
set :: PropertyType "CodeListValidationRule" X12ValidationRuleProperty
-> X12ValidationRuleProperty -> X12ValidationRuleProperty
set PropertyType "CodeListValidationRule" X12ValidationRuleProperty
newValue X12ValidationRuleProperty {Maybe X12CodeListValidationRuleProperty
Maybe X12ElementLengthValidationRuleProperty
Maybe X12ElementRequirementValidationRuleProperty
()
haddock_workaround_ :: X12ValidationRuleProperty -> ()
codeListValidationRule :: X12ValidationRuleProperty
-> Maybe X12CodeListValidationRuleProperty
elementLengthValidationRule :: X12ValidationRuleProperty
-> Maybe X12ElementLengthValidationRuleProperty
elementRequirementValidationRule :: X12ValidationRuleProperty
-> Maybe X12ElementRequirementValidationRuleProperty
haddock_workaround_ :: ()
codeListValidationRule :: Maybe X12CodeListValidationRuleProperty
elementLengthValidationRule :: Maybe X12ElementLengthValidationRuleProperty
elementRequirementValidationRule :: Maybe X12ElementRequirementValidationRuleProperty
..}
= X12ValidationRuleProperty
{codeListValidationRule :: Maybe X12CodeListValidationRuleProperty
codeListValidationRule = X12CodeListValidationRuleProperty
-> Maybe X12CodeListValidationRuleProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CodeListValidationRule" X12ValidationRuleProperty
X12CodeListValidationRuleProperty
newValue, Maybe X12ElementLengthValidationRuleProperty
Maybe X12ElementRequirementValidationRuleProperty
()
haddock_workaround_ :: ()
elementLengthValidationRule :: Maybe X12ElementLengthValidationRuleProperty
elementRequirementValidationRule :: Maybe X12ElementRequirementValidationRuleProperty
haddock_workaround_ :: ()
elementLengthValidationRule :: Maybe X12ElementLengthValidationRuleProperty
elementRequirementValidationRule :: Maybe X12ElementRequirementValidationRuleProperty
..}
instance Property "ElementLengthValidationRule" X12ValidationRuleProperty where
type PropertyType "ElementLengthValidationRule" X12ValidationRuleProperty = X12ElementLengthValidationRuleProperty
set :: PropertyType
"ElementLengthValidationRule" X12ValidationRuleProperty
-> X12ValidationRuleProperty -> X12ValidationRuleProperty
set PropertyType
"ElementLengthValidationRule" X12ValidationRuleProperty
newValue X12ValidationRuleProperty {Maybe X12CodeListValidationRuleProperty
Maybe X12ElementLengthValidationRuleProperty
Maybe X12ElementRequirementValidationRuleProperty
()
haddock_workaround_ :: X12ValidationRuleProperty -> ()
codeListValidationRule :: X12ValidationRuleProperty
-> Maybe X12CodeListValidationRuleProperty
elementLengthValidationRule :: X12ValidationRuleProperty
-> Maybe X12ElementLengthValidationRuleProperty
elementRequirementValidationRule :: X12ValidationRuleProperty
-> Maybe X12ElementRequirementValidationRuleProperty
haddock_workaround_ :: ()
codeListValidationRule :: Maybe X12CodeListValidationRuleProperty
elementLengthValidationRule :: Maybe X12ElementLengthValidationRuleProperty
elementRequirementValidationRule :: Maybe X12ElementRequirementValidationRuleProperty
..}
= X12ValidationRuleProperty
{elementLengthValidationRule :: Maybe X12ElementLengthValidationRuleProperty
elementLengthValidationRule = X12ElementLengthValidationRuleProperty
-> Maybe X12ElementLengthValidationRuleProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ElementLengthValidationRule" X12ValidationRuleProperty
X12ElementLengthValidationRuleProperty
newValue, Maybe X12CodeListValidationRuleProperty
Maybe X12ElementRequirementValidationRuleProperty
()
haddock_workaround_ :: ()
codeListValidationRule :: Maybe X12CodeListValidationRuleProperty
elementRequirementValidationRule :: Maybe X12ElementRequirementValidationRuleProperty
haddock_workaround_ :: ()
codeListValidationRule :: Maybe X12CodeListValidationRuleProperty
elementRequirementValidationRule :: Maybe X12ElementRequirementValidationRuleProperty
..}
instance Property "ElementRequirementValidationRule" X12ValidationRuleProperty where
type PropertyType "ElementRequirementValidationRule" X12ValidationRuleProperty = X12ElementRequirementValidationRuleProperty
set :: PropertyType
"ElementRequirementValidationRule" X12ValidationRuleProperty
-> X12ValidationRuleProperty -> X12ValidationRuleProperty
set PropertyType
"ElementRequirementValidationRule" X12ValidationRuleProperty
newValue X12ValidationRuleProperty {Maybe X12CodeListValidationRuleProperty
Maybe X12ElementLengthValidationRuleProperty
Maybe X12ElementRequirementValidationRuleProperty
()
haddock_workaround_ :: X12ValidationRuleProperty -> ()
codeListValidationRule :: X12ValidationRuleProperty
-> Maybe X12CodeListValidationRuleProperty
elementLengthValidationRule :: X12ValidationRuleProperty
-> Maybe X12ElementLengthValidationRuleProperty
elementRequirementValidationRule :: X12ValidationRuleProperty
-> Maybe X12ElementRequirementValidationRuleProperty
haddock_workaround_ :: ()
codeListValidationRule :: Maybe X12CodeListValidationRuleProperty
elementLengthValidationRule :: Maybe X12ElementLengthValidationRuleProperty
elementRequirementValidationRule :: Maybe X12ElementRequirementValidationRuleProperty
..}
= X12ValidationRuleProperty
{elementRequirementValidationRule :: Maybe X12ElementRequirementValidationRuleProperty
elementRequirementValidationRule = X12ElementRequirementValidationRuleProperty
-> Maybe X12ElementRequirementValidationRuleProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ElementRequirementValidationRule" X12ValidationRuleProperty
X12ElementRequirementValidationRuleProperty
newValue, Maybe X12CodeListValidationRuleProperty
Maybe X12ElementLengthValidationRuleProperty
()
haddock_workaround_ :: ()
codeListValidationRule :: Maybe X12CodeListValidationRuleProperty
elementLengthValidationRule :: Maybe X12ElementLengthValidationRuleProperty
haddock_workaround_ :: ()
codeListValidationRule :: Maybe X12CodeListValidationRuleProperty
elementLengthValidationRule :: Maybe X12ElementLengthValidationRuleProperty
..}