{-# 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.MediaPackage.Types.AdMarkers
-- 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.MediaPackage.Types.AdMarkers
  ( AdMarkers
      ( ..,
        AdMarkers_DATERANGE,
        AdMarkers_NONE,
        AdMarkers_PASSTHROUGH,
        AdMarkers_SCTE35_ENHANCED
      ),
  )
where

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

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

pattern AdMarkers_DATERANGE :: AdMarkers
pattern $bAdMarkers_DATERANGE :: AdMarkers
$mAdMarkers_DATERANGE :: forall r. AdMarkers -> (Void# -> r) -> (Void# -> r) -> r
AdMarkers_DATERANGE = AdMarkers' "DATERANGE"

pattern AdMarkers_NONE :: AdMarkers
pattern $bAdMarkers_NONE :: AdMarkers
$mAdMarkers_NONE :: forall r. AdMarkers -> (Void# -> r) -> (Void# -> r) -> r
AdMarkers_NONE = AdMarkers' "NONE"

pattern AdMarkers_PASSTHROUGH :: AdMarkers
pattern $bAdMarkers_PASSTHROUGH :: AdMarkers
$mAdMarkers_PASSTHROUGH :: forall r. AdMarkers -> (Void# -> r) -> (Void# -> r) -> r
AdMarkers_PASSTHROUGH = AdMarkers' "PASSTHROUGH"

pattern AdMarkers_SCTE35_ENHANCED :: AdMarkers
pattern $bAdMarkers_SCTE35_ENHANCED :: AdMarkers
$mAdMarkers_SCTE35_ENHANCED :: forall r. AdMarkers -> (Void# -> r) -> (Void# -> r) -> r
AdMarkers_SCTE35_ENHANCED = AdMarkers' "SCTE35_ENHANCED"

{-# COMPLETE
  AdMarkers_DATERANGE,
  AdMarkers_NONE,
  AdMarkers_PASSTHROUGH,
  AdMarkers_SCTE35_ENHANCED,
  AdMarkers'
  #-}