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

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

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

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

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

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