{-# 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.MediaLive.Types.ReservationResolution
-- 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.MediaLive.Types.ReservationResolution
  ( ReservationResolution
      ( ..,
        ReservationResolution_FHD,
        ReservationResolution_HD,
        ReservationResolution_SD,
        ReservationResolution_UHD
      ),
  )
where

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

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

pattern ReservationResolution_FHD :: ReservationResolution
pattern $bReservationResolution_FHD :: ReservationResolution
$mReservationResolution_FHD :: forall {r}.
ReservationResolution -> ((# #) -> r) -> ((# #) -> r) -> r
ReservationResolution_FHD = ReservationResolution' "FHD"

pattern ReservationResolution_HD :: ReservationResolution
pattern $bReservationResolution_HD :: ReservationResolution
$mReservationResolution_HD :: forall {r}.
ReservationResolution -> ((# #) -> r) -> ((# #) -> r) -> r
ReservationResolution_HD = ReservationResolution' "HD"

pattern ReservationResolution_SD :: ReservationResolution
pattern $bReservationResolution_SD :: ReservationResolution
$mReservationResolution_SD :: forall {r}.
ReservationResolution -> ((# #) -> r) -> ((# #) -> r) -> r
ReservationResolution_SD = ReservationResolution' "SD"

pattern ReservationResolution_UHD :: ReservationResolution
pattern $bReservationResolution_UHD :: ReservationResolution
$mReservationResolution_UHD :: forall {r}.
ReservationResolution -> ((# #) -> r) -> ((# #) -> r) -> r
ReservationResolution_UHD = ReservationResolution' "UHD"

{-# COMPLETE
  ReservationResolution_FHD,
  ReservationResolution_HD,
  ReservationResolution_SD,
  ReservationResolution_UHD,
  ReservationResolution'
  #-}