{-# 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.HlsScte35SourceType
-- 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.HlsScte35SourceType
  ( HlsScte35SourceType
      ( ..,
        HlsScte35SourceType_MANIFEST,
        HlsScte35SourceType_SEGMENTS
      ),
  )
where

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

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

pattern HlsScte35SourceType_MANIFEST :: HlsScte35SourceType
pattern $bHlsScte35SourceType_MANIFEST :: HlsScte35SourceType
$mHlsScte35SourceType_MANIFEST :: forall {r}.
HlsScte35SourceType -> ((# #) -> r) -> ((# #) -> r) -> r
HlsScte35SourceType_MANIFEST = HlsScte35SourceType' "MANIFEST"

pattern HlsScte35SourceType_SEGMENTS :: HlsScte35SourceType
pattern $bHlsScte35SourceType_SEGMENTS :: HlsScte35SourceType
$mHlsScte35SourceType_SEGMENTS :: forall {r}.
HlsScte35SourceType -> ((# #) -> r) -> ((# #) -> r) -> r
HlsScte35SourceType_SEGMENTS = HlsScte35SourceType' "SEGMENTS"

{-# COMPLETE
  HlsScte35SourceType_MANIFEST,
  HlsScte35SourceType_SEGMENTS,
  HlsScte35SourceType'
  #-}