{-# 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.KinesisVideoArchivedMedia.Types.FormatConfigKey
-- 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.KinesisVideoArchivedMedia.Types.FormatConfigKey
  ( FormatConfigKey
      ( ..,
        FormatConfigKey_JPEGQuality
      ),
  )
where

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

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

pattern FormatConfigKey_JPEGQuality :: FormatConfigKey
pattern $bFormatConfigKey_JPEGQuality :: FormatConfigKey
$mFormatConfigKey_JPEGQuality :: forall {r}. FormatConfigKey -> ((# #) -> r) -> ((# #) -> r) -> r
FormatConfigKey_JPEGQuality = FormatConfigKey' "JPEGQuality"

{-# COMPLETE
  FormatConfigKey_JPEGQuality,
  FormatConfigKey'
  #-}