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

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

-- | Hls Iv Source
newtype HlsIvSource = HlsIvSource'
  { HlsIvSource -> Text
fromHlsIvSource ::
      Data.Text
  }
  deriving stock
    ( Int -> HlsIvSource -> ShowS
[HlsIvSource] -> ShowS
HlsIvSource -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq HlsIvSource
Int -> HlsIvSource -> Int
HlsIvSource -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: HlsIvSource -> ()
$crnf :: HlsIvSource -> ()
Prelude.NFData,
      Text -> Either String HlsIvSource
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String HlsIvSource
$cfromText :: Text -> Either String HlsIvSource
Data.FromText,
      HlsIvSource -> Text
forall a. (a -> Text) -> ToText a
toText :: HlsIvSource -> Text
$ctoText :: HlsIvSource -> Text
Data.ToText,
      HlsIvSource -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: HlsIvSource -> ByteString
$ctoBS :: HlsIvSource -> ByteString
Data.ToByteString,
      HlsIvSource -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: HlsIvSource -> ByteStringBuilder
$cbuild :: HlsIvSource -> ByteStringBuilder
Data.ToLog,
      HeaderName -> HlsIvSource -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> HlsIvSource -> [Header]
$ctoHeader :: HeaderName -> HlsIvSource -> [Header]
Data.ToHeader,
      HlsIvSource -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: HlsIvSource -> QueryString
$ctoQuery :: HlsIvSource -> QueryString
Data.ToQuery,
      Value -> Parser [HlsIvSource]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [HlsIvSource]
FromJSONKeyFunction HlsIvSource
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [HlsIvSource]
$cfromJSONKeyList :: FromJSONKeyFunction [HlsIvSource]
fromJSONKey :: FromJSONKeyFunction HlsIvSource
$cfromJSONKey :: FromJSONKeyFunction HlsIvSource
Data.FromJSONKey,
      [HlsIvSource] -> Encoding
[HlsIvSource] -> Value
HlsIvSource -> Encoding
HlsIvSource -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [HlsIvSource]
ToJSONKeyFunction HlsIvSource
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [HlsIvSource]
$ctoJSONKeyList :: ToJSONKeyFunction [HlsIvSource]
toJSONKey :: ToJSONKeyFunction HlsIvSource
$ctoJSONKey :: ToJSONKeyFunction HlsIvSource
Data.ToJSONKey,
      [Node] -> Either String HlsIvSource
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String HlsIvSource
$cparseXML :: [Node] -> Either String HlsIvSource
Data.FromXML,
      HlsIvSource -> XML
forall a. (a -> XML) -> ToXML a
toXML :: HlsIvSource -> XML
$ctoXML :: HlsIvSource -> XML
Data.ToXML
    )

pattern HlsIvSource_EXPLICIT :: HlsIvSource
pattern $bHlsIvSource_EXPLICIT :: HlsIvSource
$mHlsIvSource_EXPLICIT :: forall {r}. HlsIvSource -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> r) -> r
HlsIvSource_FOLLOWS_SEGMENT_NUMBER = HlsIvSource' "FOLLOWS_SEGMENT_NUMBER"

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