{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

-- | Hls Manifest Duration Format
newtype HlsManifestDurationFormat = HlsManifestDurationFormat'
  { HlsManifestDurationFormat -> Text
fromHlsManifestDurationFormat ::
      Core.Text
  }
  deriving stock
    ( Int -> HlsManifestDurationFormat -> ShowS
[HlsManifestDurationFormat] -> ShowS
HlsManifestDurationFormat -> String
(Int -> HlsManifestDurationFormat -> ShowS)
-> (HlsManifestDurationFormat -> String)
-> ([HlsManifestDurationFormat] -> ShowS)
-> Show HlsManifestDurationFormat
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]
(Int -> ReadS HlsManifestDurationFormat)
-> ReadS [HlsManifestDurationFormat]
-> ReadPrec HlsManifestDurationFormat
-> ReadPrec [HlsManifestDurationFormat]
-> Read 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
(HlsManifestDurationFormat -> HlsManifestDurationFormat -> Bool)
-> (HlsManifestDurationFormat -> HlsManifestDurationFormat -> Bool)
-> Eq HlsManifestDurationFormat
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
Eq HlsManifestDurationFormat
-> (HlsManifestDurationFormat
    -> HlsManifestDurationFormat -> Ordering)
-> (HlsManifestDurationFormat -> HlsManifestDurationFormat -> Bool)
-> (HlsManifestDurationFormat -> HlsManifestDurationFormat -> Bool)
-> (HlsManifestDurationFormat -> HlsManifestDurationFormat -> Bool)
-> (HlsManifestDurationFormat -> HlsManifestDurationFormat -> Bool)
-> (HlsManifestDurationFormat
    -> HlsManifestDurationFormat -> HlsManifestDurationFormat)
-> (HlsManifestDurationFormat
    -> HlsManifestDurationFormat -> HlsManifestDurationFormat)
-> Ord 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
$cp1Ord :: Eq HlsManifestDurationFormat
Prelude.Ord,
      (forall x.
 HlsManifestDurationFormat -> Rep HlsManifestDurationFormat x)
-> (forall x.
    Rep HlsManifestDurationFormat x -> HlsManifestDurationFormat)
-> Generic HlsManifestDurationFormat
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
    ( Int -> HlsManifestDurationFormat -> Int
HlsManifestDurationFormat -> Int
(Int -> HlsManifestDurationFormat -> Int)
-> (HlsManifestDurationFormat -> Int)
-> Hashable HlsManifestDurationFormat
forall 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 -> ()
(HlsManifestDurationFormat -> ())
-> NFData HlsManifestDurationFormat
forall a. (a -> ()) -> NFData a
rnf :: HlsManifestDurationFormat -> ()
$crnf :: HlsManifestDurationFormat -> ()
Prelude.NFData,
      Text -> Either String HlsManifestDurationFormat
(Text -> Either String HlsManifestDurationFormat)
-> FromText HlsManifestDurationFormat
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String HlsManifestDurationFormat
$cfromText :: Text -> Either String HlsManifestDurationFormat
Core.FromText,
      HlsManifestDurationFormat -> Text
(HlsManifestDurationFormat -> Text)
-> ToText HlsManifestDurationFormat
forall a. (a -> Text) -> ToText a
toText :: HlsManifestDurationFormat -> Text
$ctoText :: HlsManifestDurationFormat -> Text
Core.ToText,
      HlsManifestDurationFormat -> ByteString
(HlsManifestDurationFormat -> ByteString)
-> ToByteString HlsManifestDurationFormat
forall a. (a -> ByteString) -> ToByteString a
toBS :: HlsManifestDurationFormat -> ByteString
$ctoBS :: HlsManifestDurationFormat -> ByteString
Core.ToByteString,
      HlsManifestDurationFormat -> ByteStringBuilder
(HlsManifestDurationFormat -> ByteStringBuilder)
-> ToLog HlsManifestDurationFormat
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: HlsManifestDurationFormat -> ByteStringBuilder
$cbuild :: HlsManifestDurationFormat -> ByteStringBuilder
Core.ToLog,
      HeaderName -> HlsManifestDurationFormat -> [Header]
(HeaderName -> HlsManifestDurationFormat -> [Header])
-> ToHeader HlsManifestDurationFormat
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> HlsManifestDurationFormat -> [Header]
$ctoHeader :: HeaderName -> HlsManifestDurationFormat -> [Header]
Core.ToHeader,
      HlsManifestDurationFormat -> QueryString
(HlsManifestDurationFormat -> QueryString)
-> ToQuery HlsManifestDurationFormat
forall a. (a -> QueryString) -> ToQuery a
toQuery :: HlsManifestDurationFormat -> QueryString
$ctoQuery :: HlsManifestDurationFormat -> QueryString
Core.ToQuery,
      Value -> Parser [HlsManifestDurationFormat]
Value -> Parser HlsManifestDurationFormat
(Value -> Parser HlsManifestDurationFormat)
-> (Value -> Parser [HlsManifestDurationFormat])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [HlsManifestDurationFormat]
FromJSONKeyFunction HlsManifestDurationFormat
FromJSONKeyFunction HlsManifestDurationFormat
-> FromJSONKeyFunction [HlsManifestDurationFormat]
-> FromJSONKey HlsManifestDurationFormat
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [HlsManifestDurationFormat]
$cfromJSONKeyList :: FromJSONKeyFunction [HlsManifestDurationFormat]
fromJSONKey :: FromJSONKeyFunction HlsManifestDurationFormat
$cfromJSONKey :: FromJSONKeyFunction HlsManifestDurationFormat
Core.FromJSONKey,
      [HlsManifestDurationFormat] -> Encoding
[HlsManifestDurationFormat] -> Value
HlsManifestDurationFormat -> Encoding
HlsManifestDurationFormat -> Value
(HlsManifestDurationFormat -> Value)
-> (HlsManifestDurationFormat -> Encoding)
-> ([HlsManifestDurationFormat] -> Value)
-> ([HlsManifestDurationFormat] -> Encoding)
-> ToJSON HlsManifestDurationFormat
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
Core.ToJSON,
      ToJSONKeyFunction [HlsManifestDurationFormat]
ToJSONKeyFunction HlsManifestDurationFormat
ToJSONKeyFunction HlsManifestDurationFormat
-> ToJSONKeyFunction [HlsManifestDurationFormat]
-> ToJSONKey HlsManifestDurationFormat
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [HlsManifestDurationFormat]
$ctoJSONKeyList :: ToJSONKeyFunction [HlsManifestDurationFormat]
toJSONKey :: ToJSONKeyFunction HlsManifestDurationFormat
$ctoJSONKey :: ToJSONKeyFunction HlsManifestDurationFormat
Core.ToJSONKey,
      [Node] -> Either String HlsManifestDurationFormat
([Node] -> Either String HlsManifestDurationFormat)
-> FromXML HlsManifestDurationFormat
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String HlsManifestDurationFormat
$cparseXML :: [Node] -> Either String HlsManifestDurationFormat
Core.FromXML,
      HlsManifestDurationFormat -> XML
(HlsManifestDurationFormat -> XML)
-> ToXML HlsManifestDurationFormat
forall a. (a -> XML) -> ToXML a
toXML :: HlsManifestDurationFormat -> XML
$ctoXML :: HlsManifestDurationFormat -> XML
Core.ToXML
    )

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

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

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