{-# 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.InputResolution
-- 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.InputResolution
  ( InputResolution
      ( ..,
        InputResolution_HD,
        InputResolution_SD,
        InputResolution_UHD
      ),
  )
where

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

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

pattern InputResolution_HD :: InputResolution
pattern $bInputResolution_HD :: InputResolution
$mInputResolution_HD :: forall {r}. InputResolution -> ((# #) -> r) -> ((# #) -> r) -> r
InputResolution_HD = InputResolution' "HD"

pattern InputResolution_SD :: InputResolution
pattern $bInputResolution_SD :: InputResolution
$mInputResolution_SD :: forall {r}. InputResolution -> ((# #) -> r) -> ((# #) -> r) -> r
InputResolution_SD = InputResolution' "SD"

pattern InputResolution_UHD :: InputResolution
pattern $bInputResolution_UHD :: InputResolution
$mInputResolution_UHD :: forall {r}. InputResolution -> ((# #) -> r) -> ((# #) -> r) -> r
InputResolution_UHD = InputResolution' "UHD"

{-# COMPLETE
  InputResolution_HD,
  InputResolution_SD,
  InputResolution_UHD,
  InputResolution'
  #-}