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

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

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

{-# COMPLETE
  InputDeviceType_HD,
  InputDeviceType'
  #-}