{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
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 ::
      Data.Text
  }
  deriving stock
    ( Int -> HlsDescriptiveVideoServiceFlag -> ShowS
[HlsDescriptiveVideoServiceFlag] -> ShowS
HlsDescriptiveVideoServiceFlag -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq HlsDescriptiveVideoServiceFlag
Int -> HlsDescriptiveVideoServiceFlag -> Int
HlsDescriptiveVideoServiceFlag -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: HlsDescriptiveVideoServiceFlag -> ()
$crnf :: HlsDescriptiveVideoServiceFlag -> ()
Prelude.NFData,
      Text -> Either String HlsDescriptiveVideoServiceFlag
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String HlsDescriptiveVideoServiceFlag
$cfromText :: Text -> Either String HlsDescriptiveVideoServiceFlag
Data.FromText,
      HlsDescriptiveVideoServiceFlag -> Text
forall a. (a -> Text) -> ToText a
toText :: HlsDescriptiveVideoServiceFlag -> Text
$ctoText :: HlsDescriptiveVideoServiceFlag -> Text
Data.ToText,
      HlsDescriptiveVideoServiceFlag -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: HlsDescriptiveVideoServiceFlag -> ByteString
$ctoBS :: HlsDescriptiveVideoServiceFlag -> ByteString
Data.ToByteString,
      HlsDescriptiveVideoServiceFlag -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: HlsDescriptiveVideoServiceFlag -> ByteStringBuilder
$cbuild :: HlsDescriptiveVideoServiceFlag -> ByteStringBuilder
Data.ToLog,
      HeaderName -> HlsDescriptiveVideoServiceFlag -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> HlsDescriptiveVideoServiceFlag -> [Header]
$ctoHeader :: HeaderName -> HlsDescriptiveVideoServiceFlag -> [Header]
Data.ToHeader,
      HlsDescriptiveVideoServiceFlag -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: HlsDescriptiveVideoServiceFlag -> QueryString
$ctoQuery :: HlsDescriptiveVideoServiceFlag -> QueryString
Data.ToQuery,
      Value -> Parser [HlsDescriptiveVideoServiceFlag]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [HlsDescriptiveVideoServiceFlag]
FromJSONKeyFunction HlsDescriptiveVideoServiceFlag
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [HlsDescriptiveVideoServiceFlag]
$cfromJSONKeyList :: FromJSONKeyFunction [HlsDescriptiveVideoServiceFlag]
fromJSONKey :: FromJSONKeyFunction HlsDescriptiveVideoServiceFlag
$cfromJSONKey :: FromJSONKeyFunction HlsDescriptiveVideoServiceFlag
Data.FromJSONKey,
      [HlsDescriptiveVideoServiceFlag] -> Encoding
[HlsDescriptiveVideoServiceFlag] -> Value
HlsDescriptiveVideoServiceFlag -> Encoding
HlsDescriptiveVideoServiceFlag -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [HlsDescriptiveVideoServiceFlag]
ToJSONKeyFunction HlsDescriptiveVideoServiceFlag
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [HlsDescriptiveVideoServiceFlag]
$ctoJSONKeyList :: ToJSONKeyFunction [HlsDescriptiveVideoServiceFlag]
toJSONKey :: ToJSONKeyFunction HlsDescriptiveVideoServiceFlag
$ctoJSONKey :: ToJSONKeyFunction HlsDescriptiveVideoServiceFlag
Data.ToJSONKey,
      [Node] -> Either String HlsDescriptiveVideoServiceFlag
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String HlsDescriptiveVideoServiceFlag
$cparseXML :: [Node] -> Either String HlsDescriptiveVideoServiceFlag
Data.FromXML,
      HlsDescriptiveVideoServiceFlag -> XML
forall a. (a -> XML) -> ToXML a
toXML :: HlsDescriptiveVideoServiceFlag -> XML
$ctoXML :: HlsDescriptiveVideoServiceFlag -> XML
Data.ToXML
    )

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

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

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