{-# 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.HlsManifestDurationFormat
-- 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.HlsManifestDurationFormat
  ( HlsManifestDurationFormat
      ( ..,
        HlsManifestDurationFormat_FLOATING_POINT,
        HlsManifestDurationFormat_INTEGER
      ),
  )
where

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

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

pattern HlsManifestDurationFormat_FLOATING_POINT :: HlsManifestDurationFormat
pattern $bHlsManifestDurationFormat_FLOATING_POINT :: HlsManifestDurationFormat
$mHlsManifestDurationFormat_FLOATING_POINT :: forall {r}.
HlsManifestDurationFormat -> ((# #) -> r) -> ((# #) -> r) -> r
HlsManifestDurationFormat_FLOATING_POINT = HlsManifestDurationFormat' "FLOATING_POINT"

pattern HlsManifestDurationFormat_INTEGER :: HlsManifestDurationFormat
pattern $bHlsManifestDurationFormat_INTEGER :: HlsManifestDurationFormat
$mHlsManifestDurationFormat_INTEGER :: forall {r}.
HlsManifestDurationFormat -> ((# #) -> r) -> ((# #) -> r) -> r
HlsManifestDurationFormat_INTEGER = HlsManifestDurationFormat' "INTEGER"

{-# COMPLETE
  HlsManifestDurationFormat_FLOATING_POINT,
  HlsManifestDurationFormat_INTEGER,
  HlsManifestDurationFormat'
  #-}