module Stratosphere.MediaLive.Channel.NielsenCBETProperty (
        NielsenCBETProperty(..), mkNielsenCBETProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NielsenCBETProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-nielsencbet.html>
    NielsenCBETProperty {NielsenCBETProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-nielsencbet.html#cfn-medialive-channel-nielsencbet-cbetcheckdigitstring>
                         NielsenCBETProperty -> Maybe (Value Text)
cbetCheckDigitString :: (Prelude.Maybe (Value Prelude.Text)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-nielsencbet.html#cfn-medialive-channel-nielsencbet-cbetstepaside>
                         NielsenCBETProperty -> Maybe (Value Text)
cbetStepaside :: (Prelude.Maybe (Value Prelude.Text)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-nielsencbet.html#cfn-medialive-channel-nielsencbet-csid>
                         NielsenCBETProperty -> Maybe (Value Text)
csid :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (NielsenCBETProperty -> NielsenCBETProperty -> Bool
(NielsenCBETProperty -> NielsenCBETProperty -> Bool)
-> (NielsenCBETProperty -> NielsenCBETProperty -> Bool)
-> Eq NielsenCBETProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NielsenCBETProperty -> NielsenCBETProperty -> Bool
== :: NielsenCBETProperty -> NielsenCBETProperty -> Bool
$c/= :: NielsenCBETProperty -> NielsenCBETProperty -> Bool
/= :: NielsenCBETProperty -> NielsenCBETProperty -> Bool
Prelude.Eq, Int -> NielsenCBETProperty -> ShowS
[NielsenCBETProperty] -> ShowS
NielsenCBETProperty -> String
(Int -> NielsenCBETProperty -> ShowS)
-> (NielsenCBETProperty -> String)
-> ([NielsenCBETProperty] -> ShowS)
-> Show NielsenCBETProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NielsenCBETProperty -> ShowS
showsPrec :: Int -> NielsenCBETProperty -> ShowS
$cshow :: NielsenCBETProperty -> String
show :: NielsenCBETProperty -> String
$cshowList :: [NielsenCBETProperty] -> ShowS
showList :: [NielsenCBETProperty] -> ShowS
Prelude.Show)
mkNielsenCBETProperty :: NielsenCBETProperty
mkNielsenCBETProperty :: NielsenCBETProperty
mkNielsenCBETProperty
  = NielsenCBETProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), cbetCheckDigitString :: Maybe (Value Text)
cbetCheckDigitString = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       cbetStepaside :: Maybe (Value Text)
cbetStepaside = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, csid :: Maybe (Value Text)
csid = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NielsenCBETProperty where
  toResourceProperties :: NielsenCBETProperty -> ResourceProperties
toResourceProperties NielsenCBETProperty {Maybe (Value Text)
()
haddock_workaround_ :: NielsenCBETProperty -> ()
cbetCheckDigitString :: NielsenCBETProperty -> Maybe (Value Text)
cbetStepaside :: NielsenCBETProperty -> Maybe (Value Text)
csid :: NielsenCBETProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cbetCheckDigitString :: Maybe (Value Text)
cbetStepaside :: Maybe (Value Text)
csid :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.NielsenCBET",
         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
"CbetCheckDigitString" (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)
cbetCheckDigitString,
                            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
"CbetStepaside" (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)
cbetStepaside,
                            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
"Csid" (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)
csid])}
instance JSON.ToJSON NielsenCBETProperty where
  toJSON :: NielsenCBETProperty -> Value
toJSON NielsenCBETProperty {Maybe (Value Text)
()
haddock_workaround_ :: NielsenCBETProperty -> ()
cbetCheckDigitString :: NielsenCBETProperty -> Maybe (Value Text)
cbetStepaside :: NielsenCBETProperty -> Maybe (Value Text)
csid :: NielsenCBETProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cbetCheckDigitString :: Maybe (Value Text)
cbetStepaside :: Maybe (Value Text)
csid :: 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
"CbetCheckDigitString" (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)
cbetCheckDigitString,
               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
"CbetStepaside" (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)
cbetStepaside,
               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
"Csid" (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)
csid]))
instance Property "CbetCheckDigitString" NielsenCBETProperty where
  type PropertyType "CbetCheckDigitString" NielsenCBETProperty = Value Prelude.Text
  set :: PropertyType "CbetCheckDigitString" NielsenCBETProperty
-> NielsenCBETProperty -> NielsenCBETProperty
set PropertyType "CbetCheckDigitString" NielsenCBETProperty
newValue NielsenCBETProperty {Maybe (Value Text)
()
haddock_workaround_ :: NielsenCBETProperty -> ()
cbetCheckDigitString :: NielsenCBETProperty -> Maybe (Value Text)
cbetStepaside :: NielsenCBETProperty -> Maybe (Value Text)
csid :: NielsenCBETProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cbetCheckDigitString :: Maybe (Value Text)
cbetStepaside :: Maybe (Value Text)
csid :: Maybe (Value Text)
..}
    = NielsenCBETProperty
        {cbetCheckDigitString :: Maybe (Value Text)
cbetCheckDigitString = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CbetCheckDigitString" NielsenCBETProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
cbetStepaside :: Maybe (Value Text)
csid :: Maybe (Value Text)
haddock_workaround_ :: ()
cbetStepaside :: Maybe (Value Text)
csid :: Maybe (Value Text)
..}
instance Property "CbetStepaside" NielsenCBETProperty where
  type PropertyType "CbetStepaside" NielsenCBETProperty = Value Prelude.Text
  set :: PropertyType "CbetStepaside" NielsenCBETProperty
-> NielsenCBETProperty -> NielsenCBETProperty
set PropertyType "CbetStepaside" NielsenCBETProperty
newValue NielsenCBETProperty {Maybe (Value Text)
()
haddock_workaround_ :: NielsenCBETProperty -> ()
cbetCheckDigitString :: NielsenCBETProperty -> Maybe (Value Text)
cbetStepaside :: NielsenCBETProperty -> Maybe (Value Text)
csid :: NielsenCBETProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cbetCheckDigitString :: Maybe (Value Text)
cbetStepaside :: Maybe (Value Text)
csid :: Maybe (Value Text)
..}
    = NielsenCBETProperty {cbetStepaside :: Maybe (Value Text)
cbetStepaside = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CbetStepaside" NielsenCBETProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
cbetCheckDigitString :: Maybe (Value Text)
csid :: Maybe (Value Text)
haddock_workaround_ :: ()
cbetCheckDigitString :: Maybe (Value Text)
csid :: Maybe (Value Text)
..}
instance Property "Csid" NielsenCBETProperty where
  type PropertyType "Csid" NielsenCBETProperty = Value Prelude.Text
  set :: PropertyType "Csid" NielsenCBETProperty
-> NielsenCBETProperty -> NielsenCBETProperty
set PropertyType "Csid" NielsenCBETProperty
newValue NielsenCBETProperty {Maybe (Value Text)
()
haddock_workaround_ :: NielsenCBETProperty -> ()
cbetCheckDigitString :: NielsenCBETProperty -> Maybe (Value Text)
cbetStepaside :: NielsenCBETProperty -> Maybe (Value Text)
csid :: NielsenCBETProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cbetCheckDigitString :: Maybe (Value Text)
cbetStepaside :: Maybe (Value Text)
csid :: Maybe (Value Text)
..}
    = NielsenCBETProperty {csid :: Maybe (Value Text)
csid = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Csid" NielsenCBETProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
cbetCheckDigitString :: Maybe (Value Text)
cbetStepaside :: Maybe (Value Text)
haddock_workaround_ :: ()
cbetCheckDigitString :: Maybe (Value Text)
cbetStepaside :: Maybe (Value Text)
..}