{-# 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.HlsIvSource
-- 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.HlsIvSource
  ( HlsIvSource
      ( ..,
        HlsIvSource_EXPLICIT,
        HlsIvSource_FOLLOWS_SEGMENT_NUMBER
      ),
  )
where

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

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

pattern HlsIvSource_EXPLICIT :: HlsIvSource
pattern $bHlsIvSource_EXPLICIT :: HlsIvSource
$mHlsIvSource_EXPLICIT :: forall r. HlsIvSource -> (Void# -> r) -> (Void# -> r) -> r
HlsIvSource_EXPLICIT = HlsIvSource' "EXPLICIT"

pattern HlsIvSource_FOLLOWS_SEGMENT_NUMBER :: HlsIvSource
pattern $bHlsIvSource_FOLLOWS_SEGMENT_NUMBER :: HlsIvSource
$mHlsIvSource_FOLLOWS_SEGMENT_NUMBER :: forall r. HlsIvSource -> (Void# -> r) -> (Void# -> r) -> r
HlsIvSource_FOLLOWS_SEGMENT_NUMBER = HlsIvSource' "FOLLOWS_SEGMENT_NUMBER"

{-# COMPLETE
  HlsIvSource_EXPLICIT,
  HlsIvSource_FOLLOWS_SEGMENT_NUMBER,
  HlsIvSource'
  #-}