module Stratosphere.B2BI.Partnership.X12ControlNumbersProperty (
        X12ControlNumbersProperty(..), mkX12ControlNumbersProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data X12ControlNumbersProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12controlnumbers.html>
    X12ControlNumbersProperty {X12ControlNumbersProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12controlnumbers.html#cfn-b2bi-partnership-x12controlnumbers-startingfunctionalgroupcontrolnumber>
                               X12ControlNumbersProperty -> Maybe (Value Double)
startingFunctionalGroupControlNumber :: (Prelude.Maybe (Value Prelude.Double)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12controlnumbers.html#cfn-b2bi-partnership-x12controlnumbers-startinginterchangecontrolnumber>
                               X12ControlNumbersProperty -> Maybe (Value Double)
startingInterchangeControlNumber :: (Prelude.Maybe (Value Prelude.Double)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12controlnumbers.html#cfn-b2bi-partnership-x12controlnumbers-startingtransactionsetcontrolnumber>
                               X12ControlNumbersProperty -> Maybe (Value Double)
startingTransactionSetControlNumber :: (Prelude.Maybe (Value Prelude.Double))}
  deriving stock (X12ControlNumbersProperty -> X12ControlNumbersProperty -> Bool
(X12ControlNumbersProperty -> X12ControlNumbersProperty -> Bool)
-> (X12ControlNumbersProperty -> X12ControlNumbersProperty -> Bool)
-> Eq X12ControlNumbersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: X12ControlNumbersProperty -> X12ControlNumbersProperty -> Bool
== :: X12ControlNumbersProperty -> X12ControlNumbersProperty -> Bool
$c/= :: X12ControlNumbersProperty -> X12ControlNumbersProperty -> Bool
/= :: X12ControlNumbersProperty -> X12ControlNumbersProperty -> Bool
Prelude.Eq, Int -> X12ControlNumbersProperty -> ShowS
[X12ControlNumbersProperty] -> ShowS
X12ControlNumbersProperty -> String
(Int -> X12ControlNumbersProperty -> ShowS)
-> (X12ControlNumbersProperty -> String)
-> ([X12ControlNumbersProperty] -> ShowS)
-> Show X12ControlNumbersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> X12ControlNumbersProperty -> ShowS
showsPrec :: Int -> X12ControlNumbersProperty -> ShowS
$cshow :: X12ControlNumbersProperty -> String
show :: X12ControlNumbersProperty -> String
$cshowList :: [X12ControlNumbersProperty] -> ShowS
showList :: [X12ControlNumbersProperty] -> ShowS
Prelude.Show)
mkX12ControlNumbersProperty :: X12ControlNumbersProperty
mkX12ControlNumbersProperty :: X12ControlNumbersProperty
mkX12ControlNumbersProperty
  = X12ControlNumbersProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       startingFunctionalGroupControlNumber :: Maybe (Value Double)
startingFunctionalGroupControlNumber = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       startingInterchangeControlNumber :: Maybe (Value Double)
startingInterchangeControlNumber = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       startingTransactionSetControlNumber :: Maybe (Value Double)
startingTransactionSetControlNumber = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties X12ControlNumbersProperty where
  toResourceProperties :: X12ControlNumbersProperty -> ResourceProperties
toResourceProperties X12ControlNumbersProperty {Maybe (Value Double)
()
haddock_workaround_ :: X12ControlNumbersProperty -> ()
startingFunctionalGroupControlNumber :: X12ControlNumbersProperty -> Maybe (Value Double)
startingInterchangeControlNumber :: X12ControlNumbersProperty -> Maybe (Value Double)
startingTransactionSetControlNumber :: X12ControlNumbersProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
startingFunctionalGroupControlNumber :: Maybe (Value Double)
startingInterchangeControlNumber :: Maybe (Value Double)
startingTransactionSetControlNumber :: Maybe (Value Double)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::B2BI::Partnership.X12ControlNumbers",
         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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StartingFunctionalGroupControlNumber"
                              (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
startingFunctionalGroupControlNumber,
                            Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StartingInterchangeControlNumber"
                              (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
startingInterchangeControlNumber,
                            Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StartingTransactionSetControlNumber"
                              (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
startingTransactionSetControlNumber])}
instance JSON.ToJSON X12ControlNumbersProperty where
  toJSON :: X12ControlNumbersProperty -> Value
toJSON X12ControlNumbersProperty {Maybe (Value Double)
()
haddock_workaround_ :: X12ControlNumbersProperty -> ()
startingFunctionalGroupControlNumber :: X12ControlNumbersProperty -> Maybe (Value Double)
startingInterchangeControlNumber :: X12ControlNumbersProperty -> Maybe (Value Double)
startingTransactionSetControlNumber :: X12ControlNumbersProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
startingFunctionalGroupControlNumber :: Maybe (Value Double)
startingInterchangeControlNumber :: Maybe (Value Double)
startingTransactionSetControlNumber :: Maybe (Value Double)
..}
    = [(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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StartingFunctionalGroupControlNumber"
                 (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
startingFunctionalGroupControlNumber,
               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StartingInterchangeControlNumber"
                 (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
startingInterchangeControlNumber,
               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StartingTransactionSetControlNumber"
                 (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
startingTransactionSetControlNumber]))
instance Property "StartingFunctionalGroupControlNumber" X12ControlNumbersProperty where
  type PropertyType "StartingFunctionalGroupControlNumber" X12ControlNumbersProperty = Value Prelude.Double
  set :: PropertyType
  "StartingFunctionalGroupControlNumber" X12ControlNumbersProperty
-> X12ControlNumbersProperty -> X12ControlNumbersProperty
set PropertyType
  "StartingFunctionalGroupControlNumber" X12ControlNumbersProperty
newValue X12ControlNumbersProperty {Maybe (Value Double)
()
haddock_workaround_ :: X12ControlNumbersProperty -> ()
startingFunctionalGroupControlNumber :: X12ControlNumbersProperty -> Maybe (Value Double)
startingInterchangeControlNumber :: X12ControlNumbersProperty -> Maybe (Value Double)
startingTransactionSetControlNumber :: X12ControlNumbersProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
startingFunctionalGroupControlNumber :: Maybe (Value Double)
startingInterchangeControlNumber :: Maybe (Value Double)
startingTransactionSetControlNumber :: Maybe (Value Double)
..}
    = X12ControlNumbersProperty
        {startingFunctionalGroupControlNumber :: Maybe (Value Double)
startingFunctionalGroupControlNumber = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "StartingFunctionalGroupControlNumber" X12ControlNumbersProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
startingInterchangeControlNumber :: Maybe (Value Double)
startingTransactionSetControlNumber :: Maybe (Value Double)
haddock_workaround_ :: ()
startingInterchangeControlNumber :: Maybe (Value Double)
startingTransactionSetControlNumber :: Maybe (Value Double)
..}
instance Property "StartingInterchangeControlNumber" X12ControlNumbersProperty where
  type PropertyType "StartingInterchangeControlNumber" X12ControlNumbersProperty = Value Prelude.Double
  set :: PropertyType
  "StartingInterchangeControlNumber" X12ControlNumbersProperty
-> X12ControlNumbersProperty -> X12ControlNumbersProperty
set PropertyType
  "StartingInterchangeControlNumber" X12ControlNumbersProperty
newValue X12ControlNumbersProperty {Maybe (Value Double)
()
haddock_workaround_ :: X12ControlNumbersProperty -> ()
startingFunctionalGroupControlNumber :: X12ControlNumbersProperty -> Maybe (Value Double)
startingInterchangeControlNumber :: X12ControlNumbersProperty -> Maybe (Value Double)
startingTransactionSetControlNumber :: X12ControlNumbersProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
startingFunctionalGroupControlNumber :: Maybe (Value Double)
startingInterchangeControlNumber :: Maybe (Value Double)
startingTransactionSetControlNumber :: Maybe (Value Double)
..}
    = X12ControlNumbersProperty
        {startingInterchangeControlNumber :: Maybe (Value Double)
startingInterchangeControlNumber = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "StartingInterchangeControlNumber" X12ControlNumbersProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
startingFunctionalGroupControlNumber :: Maybe (Value Double)
startingTransactionSetControlNumber :: Maybe (Value Double)
haddock_workaround_ :: ()
startingFunctionalGroupControlNumber :: Maybe (Value Double)
startingTransactionSetControlNumber :: Maybe (Value Double)
..}
instance Property "StartingTransactionSetControlNumber" X12ControlNumbersProperty where
  type PropertyType "StartingTransactionSetControlNumber" X12ControlNumbersProperty = Value Prelude.Double
  set :: PropertyType
  "StartingTransactionSetControlNumber" X12ControlNumbersProperty
-> X12ControlNumbersProperty -> X12ControlNumbersProperty
set PropertyType
  "StartingTransactionSetControlNumber" X12ControlNumbersProperty
newValue X12ControlNumbersProperty {Maybe (Value Double)
()
haddock_workaround_ :: X12ControlNumbersProperty -> ()
startingFunctionalGroupControlNumber :: X12ControlNumbersProperty -> Maybe (Value Double)
startingInterchangeControlNumber :: X12ControlNumbersProperty -> Maybe (Value Double)
startingTransactionSetControlNumber :: X12ControlNumbersProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
startingFunctionalGroupControlNumber :: Maybe (Value Double)
startingInterchangeControlNumber :: Maybe (Value Double)
startingTransactionSetControlNumber :: Maybe (Value Double)
..}
    = X12ControlNumbersProperty
        {startingTransactionSetControlNumber :: Maybe (Value Double)
startingTransactionSetControlNumber = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "StartingTransactionSetControlNumber" X12ControlNumbersProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
startingFunctionalGroupControlNumber :: Maybe (Value Double)
startingInterchangeControlNumber :: Maybe (Value Double)
haddock_workaround_ :: ()
startingFunctionalGroupControlNumber :: Maybe (Value Double)
startingInterchangeControlNumber :: Maybe (Value Double)
..}