{-# 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.InputDeviceType
-- 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.InputDeviceType
  ( InputDeviceType
      ( ..,
        InputDeviceType_HD,
        InputDeviceType_UHD
      ),
  )
where

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

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

pattern InputDeviceType_HD :: InputDeviceType
pattern $bInputDeviceType_HD :: InputDeviceType
$mInputDeviceType_HD :: forall {r}. InputDeviceType -> ((# #) -> r) -> ((# #) -> r) -> r
InputDeviceType_HD = InputDeviceType' "HD"

pattern InputDeviceType_UHD :: InputDeviceType
pattern $bInputDeviceType_UHD :: InputDeviceType
$mInputDeviceType_UHD :: forall {r}. InputDeviceType -> ((# #) -> r) -> ((# #) -> r) -> r
InputDeviceType_UHD = InputDeviceType' "UHD"

{-# COMPLETE
  InputDeviceType_HD,
  InputDeviceType_UHD,
  InputDeviceType'
  #-}