{-# 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.HlsAdMarkers
-- 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.HlsAdMarkers
  ( HlsAdMarkers
      ( ..,
        HlsAdMarkers_ADOBE,
        HlsAdMarkers_ELEMENTAL,
        HlsAdMarkers_ELEMENTAL_SCTE35
      ),
  )
where

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

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

pattern HlsAdMarkers_ADOBE :: HlsAdMarkers
pattern $bHlsAdMarkers_ADOBE :: HlsAdMarkers
$mHlsAdMarkers_ADOBE :: forall r. HlsAdMarkers -> (Void# -> r) -> (Void# -> r) -> r
HlsAdMarkers_ADOBE = HlsAdMarkers' "ADOBE"

pattern HlsAdMarkers_ELEMENTAL :: HlsAdMarkers
pattern $bHlsAdMarkers_ELEMENTAL :: HlsAdMarkers
$mHlsAdMarkers_ELEMENTAL :: forall r. HlsAdMarkers -> (Void# -> r) -> (Void# -> r) -> r
HlsAdMarkers_ELEMENTAL = HlsAdMarkers' "ELEMENTAL"

pattern HlsAdMarkers_ELEMENTAL_SCTE35 :: HlsAdMarkers
pattern $bHlsAdMarkers_ELEMENTAL_SCTE35 :: HlsAdMarkers
$mHlsAdMarkers_ELEMENTAL_SCTE35 :: forall r. HlsAdMarkers -> (Void# -> r) -> (Void# -> r) -> r
HlsAdMarkers_ELEMENTAL_SCTE35 = HlsAdMarkers' "ELEMENTAL_SCTE35"

{-# COMPLETE
  HlsAdMarkers_ADOBE,
  HlsAdMarkers_ELEMENTAL,
  HlsAdMarkers_ELEMENTAL_SCTE35,
  HlsAdMarkers'
  #-}