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