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

import qualified Amazonka.Core as Core
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 ::
      Core.Text
  }
  deriving stock
    ( Int -> InputResolution -> ShowS
[InputResolution] -> ShowS
InputResolution -> String
(Int -> InputResolution -> ShowS)
-> (InputResolution -> String)
-> ([InputResolution] -> ShowS)
-> Show InputResolution
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]
(Int -> ReadS InputResolution)
-> ReadS [InputResolution]
-> ReadPrec InputResolution
-> ReadPrec [InputResolution]
-> Read 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
(InputResolution -> InputResolution -> Bool)
-> (InputResolution -> InputResolution -> Bool)
-> Eq InputResolution
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
Eq InputResolution
-> (InputResolution -> InputResolution -> Ordering)
-> (InputResolution -> InputResolution -> Bool)
-> (InputResolution -> InputResolution -> Bool)
-> (InputResolution -> InputResolution -> Bool)
-> (InputResolution -> InputResolution -> Bool)
-> (InputResolution -> InputResolution -> InputResolution)
-> (InputResolution -> InputResolution -> InputResolution)
-> Ord 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
$cp1Ord :: Eq InputResolution
Prelude.Ord,
      (forall x. InputResolution -> Rep InputResolution x)
-> (forall x. Rep InputResolution x -> InputResolution)
-> Generic InputResolution
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
    ( Int -> InputResolution -> Int
InputResolution -> Int
(Int -> InputResolution -> Int)
-> (InputResolution -> Int) -> Hashable InputResolution
forall 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 -> ()
(InputResolution -> ()) -> NFData InputResolution
forall a. (a -> ()) -> NFData a
rnf :: InputResolution -> ()
$crnf :: InputResolution -> ()
Prelude.NFData,
      Text -> Either String InputResolution
(Text -> Either String InputResolution) -> FromText InputResolution
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InputResolution
$cfromText :: Text -> Either String InputResolution
Core.FromText,
      InputResolution -> Text
(InputResolution -> Text) -> ToText InputResolution
forall a. (a -> Text) -> ToText a
toText :: InputResolution -> Text
$ctoText :: InputResolution -> Text
Core.ToText,
      InputResolution -> ByteString
(InputResolution -> ByteString) -> ToByteString InputResolution
forall a. (a -> ByteString) -> ToByteString a
toBS :: InputResolution -> ByteString
$ctoBS :: InputResolution -> ByteString
Core.ToByteString,
      InputResolution -> ByteStringBuilder
(InputResolution -> ByteStringBuilder) -> ToLog InputResolution
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InputResolution -> ByteStringBuilder
$cbuild :: InputResolution -> ByteStringBuilder
Core.ToLog,
      HeaderName -> InputResolution -> [Header]
(HeaderName -> InputResolution -> [Header])
-> ToHeader InputResolution
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InputResolution -> [Header]
$ctoHeader :: HeaderName -> InputResolution -> [Header]
Core.ToHeader,
      InputResolution -> QueryString
(InputResolution -> QueryString) -> ToQuery InputResolution
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InputResolution -> QueryString
$ctoQuery :: InputResolution -> QueryString
Core.ToQuery,
      Value -> Parser [InputResolution]
Value -> Parser InputResolution
(Value -> Parser InputResolution)
-> (Value -> Parser [InputResolution]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [InputResolution]
FromJSONKeyFunction InputResolution
FromJSONKeyFunction InputResolution
-> FromJSONKeyFunction [InputResolution]
-> FromJSONKey InputResolution
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InputResolution]
$cfromJSONKeyList :: FromJSONKeyFunction [InputResolution]
fromJSONKey :: FromJSONKeyFunction InputResolution
$cfromJSONKey :: FromJSONKeyFunction InputResolution
Core.FromJSONKey,
      [InputResolution] -> Encoding
[InputResolution] -> Value
InputResolution -> Encoding
InputResolution -> Value
(InputResolution -> Value)
-> (InputResolution -> Encoding)
-> ([InputResolution] -> Value)
-> ([InputResolution] -> Encoding)
-> ToJSON InputResolution
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
Core.ToJSON,
      ToJSONKeyFunction [InputResolution]
ToJSONKeyFunction InputResolution
ToJSONKeyFunction InputResolution
-> ToJSONKeyFunction [InputResolution] -> ToJSONKey InputResolution
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InputResolution]
$ctoJSONKeyList :: ToJSONKeyFunction [InputResolution]
toJSONKey :: ToJSONKeyFunction InputResolution
$ctoJSONKey :: ToJSONKeyFunction InputResolution
Core.ToJSONKey,
      [Node] -> Either String InputResolution
([Node] -> Either String InputResolution)
-> FromXML InputResolution
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InputResolution
$cparseXML :: [Node] -> Either String InputResolution
Core.FromXML,
      InputResolution -> XML
(InputResolution -> XML) -> ToXML InputResolution
forall a. (a -> XML) -> ToXML a
toXML :: InputResolution -> XML
$ctoXML :: InputResolution -> XML
Core.ToXML
    )

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

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

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

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