{-# 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.DolbyVisionLevel6Mode
-- 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.DolbyVisionLevel6Mode
  ( DolbyVisionLevel6Mode
      ( ..,
        DolbyVisionLevel6Mode_PASSTHROUGH,
        DolbyVisionLevel6Mode_RECALCULATE,
        DolbyVisionLevel6Mode_SPECIFY
      ),
  )
where

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

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

pattern DolbyVisionLevel6Mode_PASSTHROUGH :: DolbyVisionLevel6Mode
pattern $bDolbyVisionLevel6Mode_PASSTHROUGH :: DolbyVisionLevel6Mode
$mDolbyVisionLevel6Mode_PASSTHROUGH :: forall r.
DolbyVisionLevel6Mode -> (Void# -> r) -> (Void# -> r) -> r
DolbyVisionLevel6Mode_PASSTHROUGH = DolbyVisionLevel6Mode' "PASSTHROUGH"

pattern DolbyVisionLevel6Mode_RECALCULATE :: DolbyVisionLevel6Mode
pattern $bDolbyVisionLevel6Mode_RECALCULATE :: DolbyVisionLevel6Mode
$mDolbyVisionLevel6Mode_RECALCULATE :: forall r.
DolbyVisionLevel6Mode -> (Void# -> r) -> (Void# -> r) -> r
DolbyVisionLevel6Mode_RECALCULATE = DolbyVisionLevel6Mode' "RECALCULATE"

pattern DolbyVisionLevel6Mode_SPECIFY :: DolbyVisionLevel6Mode
pattern $bDolbyVisionLevel6Mode_SPECIFY :: DolbyVisionLevel6Mode
$mDolbyVisionLevel6Mode_SPECIFY :: forall r.
DolbyVisionLevel6Mode -> (Void# -> r) -> (Void# -> r) -> r
DolbyVisionLevel6Mode_SPECIFY = DolbyVisionLevel6Mode' "SPECIFY"

{-# COMPLETE
  DolbyVisionLevel6Mode_PASSTHROUGH,
  DolbyVisionLevel6Mode_RECALCULATE,
  DolbyVisionLevel6Mode_SPECIFY,
  DolbyVisionLevel6Mode'
  #-}