{-# 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.KinesisVideoArchivedMedia.Types.HLSDiscontinuityMode
-- 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.KinesisVideoArchivedMedia.Types.HLSDiscontinuityMode
  ( HLSDiscontinuityMode
      ( ..,
        HLSDiscontinuityMode_ALWAYS,
        HLSDiscontinuityMode_NEVER,
        HLSDiscontinuityMode_ON_DISCONTINUITY
      ),
  )
where

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

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

pattern HLSDiscontinuityMode_ALWAYS :: HLSDiscontinuityMode
pattern $bHLSDiscontinuityMode_ALWAYS :: HLSDiscontinuityMode
$mHLSDiscontinuityMode_ALWAYS :: forall r. HLSDiscontinuityMode -> (Void# -> r) -> (Void# -> r) -> r
HLSDiscontinuityMode_ALWAYS = HLSDiscontinuityMode' "ALWAYS"

pattern HLSDiscontinuityMode_NEVER :: HLSDiscontinuityMode
pattern $bHLSDiscontinuityMode_NEVER :: HLSDiscontinuityMode
$mHLSDiscontinuityMode_NEVER :: forall r. HLSDiscontinuityMode -> (Void# -> r) -> (Void# -> r) -> r
HLSDiscontinuityMode_NEVER = HLSDiscontinuityMode' "NEVER"

pattern HLSDiscontinuityMode_ON_DISCONTINUITY :: HLSDiscontinuityMode
pattern $bHLSDiscontinuityMode_ON_DISCONTINUITY :: HLSDiscontinuityMode
$mHLSDiscontinuityMode_ON_DISCONTINUITY :: forall r. HLSDiscontinuityMode -> (Void# -> r) -> (Void# -> r) -> r
HLSDiscontinuityMode_ON_DISCONTINUITY = HLSDiscontinuityMode' "ON_DISCONTINUITY"

{-# COMPLETE
  HLSDiscontinuityMode_ALWAYS,
  HLSDiscontinuityMode_NEVER,
  HLSDiscontinuityMode_ON_DISCONTINUITY,
  HLSDiscontinuityMode'
  #-}