{-# 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.ChimeSdkMediaPipelines.Types.ResolutionOption
-- 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.ChimeSdkMediaPipelines.Types.ResolutionOption
  ( ResolutionOption
      ( ..,
        ResolutionOption_FHD,
        ResolutionOption_HD
      ),
  )
where

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

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

pattern ResolutionOption_FHD :: ResolutionOption
pattern $bResolutionOption_FHD :: ResolutionOption
$mResolutionOption_FHD :: forall {r}. ResolutionOption -> ((# #) -> r) -> ((# #) -> r) -> r
ResolutionOption_FHD = ResolutionOption' "FHD"

pattern ResolutionOption_HD :: ResolutionOption
pattern $bResolutionOption_HD :: ResolutionOption
$mResolutionOption_HD :: forall {r}. ResolutionOption -> ((# #) -> r) -> ((# #) -> r) -> r
ResolutionOption_HD = ResolutionOption' "HD"

{-# COMPLETE
  ResolutionOption_FHD,
  ResolutionOption_HD,
  ResolutionOption'
  #-}