{-# 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.MediaConvert.Types.HlsDescriptiveVideoServiceFlag
-- 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.MediaConvert.Types.HlsDescriptiveVideoServiceFlag
  ( HlsDescriptiveVideoServiceFlag
      ( ..,
        HlsDescriptiveVideoServiceFlag_DONT_FLAG,
        HlsDescriptiveVideoServiceFlag_FLAG
      ),
  )
where

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

-- | Specify whether to flag this audio track as descriptive video service
-- (DVS) in your HLS parent manifest. When you choose Flag (FLAG),
-- MediaConvert includes the parameter
-- CHARACTERISTICS=\"public.accessibility.describes-video\" in the
-- EXT-X-MEDIA entry for this track. When you keep the default choice,
-- Don\'t flag (DONT_FLAG), MediaConvert leaves this parameter out. The DVS
-- flag can help with accessibility on Apple devices. For more information,
-- see the Apple documentation.
newtype HlsDescriptiveVideoServiceFlag = HlsDescriptiveVideoServiceFlag'
  { HlsDescriptiveVideoServiceFlag -> Text
fromHlsDescriptiveVideoServiceFlag ::
      Core.Text
  }
  deriving stock
    ( Int -> HlsDescriptiveVideoServiceFlag -> ShowS
[HlsDescriptiveVideoServiceFlag] -> ShowS
HlsDescriptiveVideoServiceFlag -> String
(Int -> HlsDescriptiveVideoServiceFlag -> ShowS)
-> (HlsDescriptiveVideoServiceFlag -> String)
-> ([HlsDescriptiveVideoServiceFlag] -> ShowS)
-> Show HlsDescriptiveVideoServiceFlag
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HlsDescriptiveVideoServiceFlag] -> ShowS
$cshowList :: [HlsDescriptiveVideoServiceFlag] -> ShowS
show :: HlsDescriptiveVideoServiceFlag -> String
$cshow :: HlsDescriptiveVideoServiceFlag -> String
showsPrec :: Int -> HlsDescriptiveVideoServiceFlag -> ShowS
$cshowsPrec :: Int -> HlsDescriptiveVideoServiceFlag -> ShowS
Prelude.Show,
      ReadPrec [HlsDescriptiveVideoServiceFlag]
ReadPrec HlsDescriptiveVideoServiceFlag
Int -> ReadS HlsDescriptiveVideoServiceFlag
ReadS [HlsDescriptiveVideoServiceFlag]
(Int -> ReadS HlsDescriptiveVideoServiceFlag)
-> ReadS [HlsDescriptiveVideoServiceFlag]
-> ReadPrec HlsDescriptiveVideoServiceFlag
-> ReadPrec [HlsDescriptiveVideoServiceFlag]
-> Read HlsDescriptiveVideoServiceFlag
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HlsDescriptiveVideoServiceFlag]
$creadListPrec :: ReadPrec [HlsDescriptiveVideoServiceFlag]
readPrec :: ReadPrec HlsDescriptiveVideoServiceFlag
$creadPrec :: ReadPrec HlsDescriptiveVideoServiceFlag
readList :: ReadS [HlsDescriptiveVideoServiceFlag]
$creadList :: ReadS [HlsDescriptiveVideoServiceFlag]
readsPrec :: Int -> ReadS HlsDescriptiveVideoServiceFlag
$creadsPrec :: Int -> ReadS HlsDescriptiveVideoServiceFlag
Prelude.Read,
      HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Bool
(HlsDescriptiveVideoServiceFlag
 -> HlsDescriptiveVideoServiceFlag -> Bool)
-> (HlsDescriptiveVideoServiceFlag
    -> HlsDescriptiveVideoServiceFlag -> Bool)
-> Eq HlsDescriptiveVideoServiceFlag
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Bool
$c/= :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Bool
== :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Bool
$c== :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Bool
Prelude.Eq,
      Eq HlsDescriptiveVideoServiceFlag
Eq HlsDescriptiveVideoServiceFlag
-> (HlsDescriptiveVideoServiceFlag
    -> HlsDescriptiveVideoServiceFlag -> Ordering)
-> (HlsDescriptiveVideoServiceFlag
    -> HlsDescriptiveVideoServiceFlag -> Bool)
-> (HlsDescriptiveVideoServiceFlag
    -> HlsDescriptiveVideoServiceFlag -> Bool)
-> (HlsDescriptiveVideoServiceFlag
    -> HlsDescriptiveVideoServiceFlag -> Bool)
-> (HlsDescriptiveVideoServiceFlag
    -> HlsDescriptiveVideoServiceFlag -> Bool)
-> (HlsDescriptiveVideoServiceFlag
    -> HlsDescriptiveVideoServiceFlag
    -> HlsDescriptiveVideoServiceFlag)
-> (HlsDescriptiveVideoServiceFlag
    -> HlsDescriptiveVideoServiceFlag
    -> HlsDescriptiveVideoServiceFlag)
-> Ord HlsDescriptiveVideoServiceFlag
HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Bool
HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Ordering
HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> HlsDescriptiveVideoServiceFlag
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 :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> HlsDescriptiveVideoServiceFlag
$cmin :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> HlsDescriptiveVideoServiceFlag
max :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> HlsDescriptiveVideoServiceFlag
$cmax :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> HlsDescriptiveVideoServiceFlag
>= :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Bool
$c>= :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Bool
> :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Bool
$c> :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Bool
<= :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Bool
$c<= :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Bool
< :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Bool
$c< :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Bool
compare :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Ordering
$ccompare :: HlsDescriptiveVideoServiceFlag
-> HlsDescriptiveVideoServiceFlag -> Ordering
$cp1Ord :: Eq HlsDescriptiveVideoServiceFlag
Prelude.Ord,
      (forall x.
 HlsDescriptiveVideoServiceFlag
 -> Rep HlsDescriptiveVideoServiceFlag x)
-> (forall x.
    Rep HlsDescriptiveVideoServiceFlag x
    -> HlsDescriptiveVideoServiceFlag)
-> Generic HlsDescriptiveVideoServiceFlag
forall x.
Rep HlsDescriptiveVideoServiceFlag x
-> HlsDescriptiveVideoServiceFlag
forall x.
HlsDescriptiveVideoServiceFlag
-> Rep HlsDescriptiveVideoServiceFlag x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep HlsDescriptiveVideoServiceFlag x
-> HlsDescriptiveVideoServiceFlag
$cfrom :: forall x.
HlsDescriptiveVideoServiceFlag
-> Rep HlsDescriptiveVideoServiceFlag x
Prelude.Generic
    )
  deriving newtype
    ( Int -> HlsDescriptiveVideoServiceFlag -> Int
HlsDescriptiveVideoServiceFlag -> Int
(Int -> HlsDescriptiveVideoServiceFlag -> Int)
-> (HlsDescriptiveVideoServiceFlag -> Int)
-> Hashable HlsDescriptiveVideoServiceFlag
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: HlsDescriptiveVideoServiceFlag -> Int
$chash :: HlsDescriptiveVideoServiceFlag -> Int
hashWithSalt :: Int -> HlsDescriptiveVideoServiceFlag -> Int
$chashWithSalt :: Int -> HlsDescriptiveVideoServiceFlag -> Int
Prelude.Hashable,
      HlsDescriptiveVideoServiceFlag -> ()
(HlsDescriptiveVideoServiceFlag -> ())
-> NFData HlsDescriptiveVideoServiceFlag
forall a. (a -> ()) -> NFData a
rnf :: HlsDescriptiveVideoServiceFlag -> ()
$crnf :: HlsDescriptiveVideoServiceFlag -> ()
Prelude.NFData,
      Text -> Either String HlsDescriptiveVideoServiceFlag
(Text -> Either String HlsDescriptiveVideoServiceFlag)
-> FromText HlsDescriptiveVideoServiceFlag
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String HlsDescriptiveVideoServiceFlag
$cfromText :: Text -> Either String HlsDescriptiveVideoServiceFlag
Core.FromText,
      HlsDescriptiveVideoServiceFlag -> Text
(HlsDescriptiveVideoServiceFlag -> Text)
-> ToText HlsDescriptiveVideoServiceFlag
forall a. (a -> Text) -> ToText a
toText :: HlsDescriptiveVideoServiceFlag -> Text
$ctoText :: HlsDescriptiveVideoServiceFlag -> Text
Core.ToText,
      HlsDescriptiveVideoServiceFlag -> ByteString
(HlsDescriptiveVideoServiceFlag -> ByteString)
-> ToByteString HlsDescriptiveVideoServiceFlag
forall a. (a -> ByteString) -> ToByteString a
toBS :: HlsDescriptiveVideoServiceFlag -> ByteString
$ctoBS :: HlsDescriptiveVideoServiceFlag -> ByteString
Core.ToByteString,
      HlsDescriptiveVideoServiceFlag -> ByteStringBuilder
(HlsDescriptiveVideoServiceFlag -> ByteStringBuilder)
-> ToLog HlsDescriptiveVideoServiceFlag
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: HlsDescriptiveVideoServiceFlag -> ByteStringBuilder
$cbuild :: HlsDescriptiveVideoServiceFlag -> ByteStringBuilder
Core.ToLog,
      HeaderName -> HlsDescriptiveVideoServiceFlag -> [Header]
(HeaderName -> HlsDescriptiveVideoServiceFlag -> [Header])
-> ToHeader HlsDescriptiveVideoServiceFlag
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> HlsDescriptiveVideoServiceFlag -> [Header]
$ctoHeader :: HeaderName -> HlsDescriptiveVideoServiceFlag -> [Header]
Core.ToHeader,
      HlsDescriptiveVideoServiceFlag -> QueryString
(HlsDescriptiveVideoServiceFlag -> QueryString)
-> ToQuery HlsDescriptiveVideoServiceFlag
forall a. (a -> QueryString) -> ToQuery a
toQuery :: HlsDescriptiveVideoServiceFlag -> QueryString
$ctoQuery :: HlsDescriptiveVideoServiceFlag -> QueryString
Core.ToQuery,
      Value -> Parser [HlsDescriptiveVideoServiceFlag]
Value -> Parser HlsDescriptiveVideoServiceFlag
(Value -> Parser HlsDescriptiveVideoServiceFlag)
-> (Value -> Parser [HlsDescriptiveVideoServiceFlag])
-> FromJSON HlsDescriptiveVideoServiceFlag
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [HlsDescriptiveVideoServiceFlag]
$cparseJSONList :: Value -> Parser [HlsDescriptiveVideoServiceFlag]
parseJSON :: Value -> Parser HlsDescriptiveVideoServiceFlag
$cparseJSON :: Value -> Parser HlsDescriptiveVideoServiceFlag
Core.FromJSON,
      FromJSONKeyFunction [HlsDescriptiveVideoServiceFlag]
FromJSONKeyFunction HlsDescriptiveVideoServiceFlag
FromJSONKeyFunction HlsDescriptiveVideoServiceFlag
-> FromJSONKeyFunction [HlsDescriptiveVideoServiceFlag]
-> FromJSONKey HlsDescriptiveVideoServiceFlag
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [HlsDescriptiveVideoServiceFlag]
$cfromJSONKeyList :: FromJSONKeyFunction [HlsDescriptiveVideoServiceFlag]
fromJSONKey :: FromJSONKeyFunction HlsDescriptiveVideoServiceFlag
$cfromJSONKey :: FromJSONKeyFunction HlsDescriptiveVideoServiceFlag
Core.FromJSONKey,
      [HlsDescriptiveVideoServiceFlag] -> Encoding
[HlsDescriptiveVideoServiceFlag] -> Value
HlsDescriptiveVideoServiceFlag -> Encoding
HlsDescriptiveVideoServiceFlag -> Value
(HlsDescriptiveVideoServiceFlag -> Value)
-> (HlsDescriptiveVideoServiceFlag -> Encoding)
-> ([HlsDescriptiveVideoServiceFlag] -> Value)
-> ([HlsDescriptiveVideoServiceFlag] -> Encoding)
-> ToJSON HlsDescriptiveVideoServiceFlag
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [HlsDescriptiveVideoServiceFlag] -> Encoding
$ctoEncodingList :: [HlsDescriptiveVideoServiceFlag] -> Encoding
toJSONList :: [HlsDescriptiveVideoServiceFlag] -> Value
$ctoJSONList :: [HlsDescriptiveVideoServiceFlag] -> Value
toEncoding :: HlsDescriptiveVideoServiceFlag -> Encoding
$ctoEncoding :: HlsDescriptiveVideoServiceFlag -> Encoding
toJSON :: HlsDescriptiveVideoServiceFlag -> Value
$ctoJSON :: HlsDescriptiveVideoServiceFlag -> Value
Core.ToJSON,
      ToJSONKeyFunction [HlsDescriptiveVideoServiceFlag]
ToJSONKeyFunction HlsDescriptiveVideoServiceFlag
ToJSONKeyFunction HlsDescriptiveVideoServiceFlag
-> ToJSONKeyFunction [HlsDescriptiveVideoServiceFlag]
-> ToJSONKey HlsDescriptiveVideoServiceFlag
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [HlsDescriptiveVideoServiceFlag]
$ctoJSONKeyList :: ToJSONKeyFunction [HlsDescriptiveVideoServiceFlag]
toJSONKey :: ToJSONKeyFunction HlsDescriptiveVideoServiceFlag
$ctoJSONKey :: ToJSONKeyFunction HlsDescriptiveVideoServiceFlag
Core.ToJSONKey,
      [Node] -> Either String HlsDescriptiveVideoServiceFlag
([Node] -> Either String HlsDescriptiveVideoServiceFlag)
-> FromXML HlsDescriptiveVideoServiceFlag
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String HlsDescriptiveVideoServiceFlag
$cparseXML :: [Node] -> Either String HlsDescriptiveVideoServiceFlag
Core.FromXML,
      HlsDescriptiveVideoServiceFlag -> XML
(HlsDescriptiveVideoServiceFlag -> XML)
-> ToXML HlsDescriptiveVideoServiceFlag
forall a. (a -> XML) -> ToXML a
toXML :: HlsDescriptiveVideoServiceFlag -> XML
$ctoXML :: HlsDescriptiveVideoServiceFlag -> XML
Core.ToXML
    )

pattern HlsDescriptiveVideoServiceFlag_DONT_FLAG :: HlsDescriptiveVideoServiceFlag
pattern $bHlsDescriptiveVideoServiceFlag_DONT_FLAG :: HlsDescriptiveVideoServiceFlag
$mHlsDescriptiveVideoServiceFlag_DONT_FLAG :: forall r.
HlsDescriptiveVideoServiceFlag -> (Void# -> r) -> (Void# -> r) -> r
HlsDescriptiveVideoServiceFlag_DONT_FLAG = HlsDescriptiveVideoServiceFlag' "DONT_FLAG"

pattern HlsDescriptiveVideoServiceFlag_FLAG :: HlsDescriptiveVideoServiceFlag
pattern $bHlsDescriptiveVideoServiceFlag_FLAG :: HlsDescriptiveVideoServiceFlag
$mHlsDescriptiveVideoServiceFlag_FLAG :: forall r.
HlsDescriptiveVideoServiceFlag -> (Void# -> r) -> (Void# -> r) -> r
HlsDescriptiveVideoServiceFlag_FLAG = HlsDescriptiveVideoServiceFlag' "FLAG"

{-# COMPLETE
  HlsDescriptiveVideoServiceFlag_DONT_FLAG,
  HlsDescriptiveVideoServiceFlag_FLAG,
  HlsDescriptiveVideoServiceFlag'
  #-}