{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaLive.Types.HlsProgramDateTimeClock
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaLive.Types.HlsProgramDateTimeClock
  ( HlsProgramDateTimeClock
      ( ..,
        HlsProgramDateTimeClock_INITIALIZE_FROM_OUTPUT_TIMECODE,
        HlsProgramDateTimeClock_SYSTEM_CLOCK
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Hls Program Date Time Clock
newtype HlsProgramDateTimeClock = HlsProgramDateTimeClock'
  { HlsProgramDateTimeClock -> Text
fromHlsProgramDateTimeClock ::
      Data.Text
  }
  deriving stock
    ( Int -> HlsProgramDateTimeClock -> ShowS
[HlsProgramDateTimeClock] -> ShowS
HlsProgramDateTimeClock -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HlsProgramDateTimeClock] -> ShowS
$cshowList :: [HlsProgramDateTimeClock] -> ShowS
show :: HlsProgramDateTimeClock -> String
$cshow :: HlsProgramDateTimeClock -> String
showsPrec :: Int -> HlsProgramDateTimeClock -> ShowS
$cshowsPrec :: Int -> HlsProgramDateTimeClock -> ShowS
Prelude.Show,
      ReadPrec [HlsProgramDateTimeClock]
ReadPrec HlsProgramDateTimeClock
Int -> ReadS HlsProgramDateTimeClock
ReadS [HlsProgramDateTimeClock]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HlsProgramDateTimeClock]
$creadListPrec :: ReadPrec [HlsProgramDateTimeClock]
readPrec :: ReadPrec HlsProgramDateTimeClock
$creadPrec :: ReadPrec HlsProgramDateTimeClock
readList :: ReadS [HlsProgramDateTimeClock]
$creadList :: ReadS [HlsProgramDateTimeClock]
readsPrec :: Int -> ReadS HlsProgramDateTimeClock
$creadsPrec :: Int -> ReadS HlsProgramDateTimeClock
Prelude.Read,
      HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Bool
$c/= :: HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Bool
== :: HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Bool
$c== :: HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Bool
Prelude.Eq,
      Eq HlsProgramDateTimeClock
HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Bool
HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Ordering
HlsProgramDateTimeClock
-> HlsProgramDateTimeClock -> HlsProgramDateTimeClock
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: HlsProgramDateTimeClock
-> HlsProgramDateTimeClock -> HlsProgramDateTimeClock
$cmin :: HlsProgramDateTimeClock
-> HlsProgramDateTimeClock -> HlsProgramDateTimeClock
max :: HlsProgramDateTimeClock
-> HlsProgramDateTimeClock -> HlsProgramDateTimeClock
$cmax :: HlsProgramDateTimeClock
-> HlsProgramDateTimeClock -> HlsProgramDateTimeClock
>= :: HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Bool
$c>= :: HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Bool
> :: HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Bool
$c> :: HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Bool
<= :: HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Bool
$c<= :: HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Bool
< :: HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Bool
$c< :: HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Bool
compare :: HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Ordering
$ccompare :: HlsProgramDateTimeClock -> HlsProgramDateTimeClock -> Ordering
Prelude.Ord,
      forall x. Rep HlsProgramDateTimeClock x -> HlsProgramDateTimeClock
forall x. HlsProgramDateTimeClock -> Rep HlsProgramDateTimeClock x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep HlsProgramDateTimeClock x -> HlsProgramDateTimeClock
$cfrom :: forall x. HlsProgramDateTimeClock -> Rep HlsProgramDateTimeClock x
Prelude.Generic
    )
  deriving newtype
    ( Eq HlsProgramDateTimeClock
Int -> HlsProgramDateTimeClock -> Int
HlsProgramDateTimeClock -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: HlsProgramDateTimeClock -> Int
$chash :: HlsProgramDateTimeClock -> Int
hashWithSalt :: Int -> HlsProgramDateTimeClock -> Int
$chashWithSalt :: Int -> HlsProgramDateTimeClock -> Int
Prelude.Hashable,
      HlsProgramDateTimeClock -> ()
forall a. (a -> ()) -> NFData a
rnf :: HlsProgramDateTimeClock -> ()
$crnf :: HlsProgramDateTimeClock -> ()
Prelude.NFData,
      Text -> Either String HlsProgramDateTimeClock
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String HlsProgramDateTimeClock
$cfromText :: Text -> Either String HlsProgramDateTimeClock
Data.FromText,
      HlsProgramDateTimeClock -> Text
forall a. (a -> Text) -> ToText a
toText :: HlsProgramDateTimeClock -> Text
$ctoText :: HlsProgramDateTimeClock -> Text
Data.ToText,
      HlsProgramDateTimeClock -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: HlsProgramDateTimeClock -> ByteString
$ctoBS :: HlsProgramDateTimeClock -> ByteString
Data.ToByteString,
      HlsProgramDateTimeClock -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: HlsProgramDateTimeClock -> ByteStringBuilder
$cbuild :: HlsProgramDateTimeClock -> ByteStringBuilder
Data.ToLog,
      HeaderName -> HlsProgramDateTimeClock -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> HlsProgramDateTimeClock -> [Header]
$ctoHeader :: HeaderName -> HlsProgramDateTimeClock -> [Header]
Data.ToHeader,
      HlsProgramDateTimeClock -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: HlsProgramDateTimeClock -> QueryString
$ctoQuery :: HlsProgramDateTimeClock -> QueryString
Data.ToQuery,
      Value -> Parser [HlsProgramDateTimeClock]
Value -> Parser HlsProgramDateTimeClock
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [HlsProgramDateTimeClock]
$cparseJSONList :: Value -> Parser [HlsProgramDateTimeClock]
parseJSON :: Value -> Parser HlsProgramDateTimeClock
$cparseJSON :: Value -> Parser HlsProgramDateTimeClock
Data.FromJSON,
      FromJSONKeyFunction [HlsProgramDateTimeClock]
FromJSONKeyFunction HlsProgramDateTimeClock
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [HlsProgramDateTimeClock]
$cfromJSONKeyList :: FromJSONKeyFunction [HlsProgramDateTimeClock]
fromJSONKey :: FromJSONKeyFunction HlsProgramDateTimeClock
$cfromJSONKey :: FromJSONKeyFunction HlsProgramDateTimeClock
Data.FromJSONKey,
      [HlsProgramDateTimeClock] -> Encoding
[HlsProgramDateTimeClock] -> Value
HlsProgramDateTimeClock -> Encoding
HlsProgramDateTimeClock -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [HlsProgramDateTimeClock] -> Encoding
$ctoEncodingList :: [HlsProgramDateTimeClock] -> Encoding
toJSONList :: [HlsProgramDateTimeClock] -> Value
$ctoJSONList :: [HlsProgramDateTimeClock] -> Value
toEncoding :: HlsProgramDateTimeClock -> Encoding
$ctoEncoding :: HlsProgramDateTimeClock -> Encoding
toJSON :: HlsProgramDateTimeClock -> Value
$ctoJSON :: HlsProgramDateTimeClock -> Value
Data.ToJSON,
      ToJSONKeyFunction [HlsProgramDateTimeClock]
ToJSONKeyFunction HlsProgramDateTimeClock
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [HlsProgramDateTimeClock]
$ctoJSONKeyList :: ToJSONKeyFunction [HlsProgramDateTimeClock]
toJSONKey :: ToJSONKeyFunction HlsProgramDateTimeClock
$ctoJSONKey :: ToJSONKeyFunction HlsProgramDateTimeClock
Data.ToJSONKey,
      [Node] -> Either String HlsProgramDateTimeClock
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String HlsProgramDateTimeClock
$cparseXML :: [Node] -> Either String HlsProgramDateTimeClock
Data.FromXML,
      HlsProgramDateTimeClock -> XML
forall a. (a -> XML) -> ToXML a
toXML :: HlsProgramDateTimeClock -> XML
$ctoXML :: HlsProgramDateTimeClock -> XML
Data.ToXML
    )

pattern HlsProgramDateTimeClock_INITIALIZE_FROM_OUTPUT_TIMECODE :: HlsProgramDateTimeClock
pattern $bHlsProgramDateTimeClock_INITIALIZE_FROM_OUTPUT_TIMECODE :: HlsProgramDateTimeClock
$mHlsProgramDateTimeClock_INITIALIZE_FROM_OUTPUT_TIMECODE :: forall {r}.
HlsProgramDateTimeClock -> ((# #) -> r) -> ((# #) -> r) -> r
HlsProgramDateTimeClock_INITIALIZE_FROM_OUTPUT_TIMECODE = HlsProgramDateTimeClock' "INITIALIZE_FROM_OUTPUT_TIMECODE"

pattern HlsProgramDateTimeClock_SYSTEM_CLOCK :: HlsProgramDateTimeClock
pattern $bHlsProgramDateTimeClock_SYSTEM_CLOCK :: HlsProgramDateTimeClock
$mHlsProgramDateTimeClock_SYSTEM_CLOCK :: forall {r}.
HlsProgramDateTimeClock -> ((# #) -> r) -> ((# #) -> r) -> r
HlsProgramDateTimeClock_SYSTEM_CLOCK = HlsProgramDateTimeClock' "SYSTEM_CLOCK"

{-# COMPLETE
  HlsProgramDateTimeClock_INITIALIZE_FROM_OUTPUT_TIMECODE,
  HlsProgramDateTimeClock_SYSTEM_CLOCK,
  HlsProgramDateTimeClock'
  #-}