{-# 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.InputDeviceConfiguredInput
-- 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.InputDeviceConfiguredInput
  ( InputDeviceConfiguredInput
      ( ..,
        InputDeviceConfiguredInput_AUTO,
        InputDeviceConfiguredInput_HDMI,
        InputDeviceConfiguredInput_SDI
      ),
  )
where

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

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

pattern InputDeviceConfiguredInput_AUTO :: InputDeviceConfiguredInput
pattern $bInputDeviceConfiguredInput_AUTO :: InputDeviceConfiguredInput
$mInputDeviceConfiguredInput_AUTO :: forall {r}.
InputDeviceConfiguredInput -> ((# #) -> r) -> ((# #) -> r) -> r
InputDeviceConfiguredInput_AUTO = InputDeviceConfiguredInput' "AUTO"

pattern InputDeviceConfiguredInput_HDMI :: InputDeviceConfiguredInput
pattern $bInputDeviceConfiguredInput_HDMI :: InputDeviceConfiguredInput
$mInputDeviceConfiguredInput_HDMI :: forall {r}.
InputDeviceConfiguredInput -> ((# #) -> r) -> ((# #) -> r) -> r
InputDeviceConfiguredInput_HDMI = InputDeviceConfiguredInput' "HDMI"

pattern InputDeviceConfiguredInput_SDI :: InputDeviceConfiguredInput
pattern $bInputDeviceConfiguredInput_SDI :: InputDeviceConfiguredInput
$mInputDeviceConfiguredInput_SDI :: forall {r}.
InputDeviceConfiguredInput -> ((# #) -> r) -> ((# #) -> r) -> r
InputDeviceConfiguredInput_SDI = InputDeviceConfiguredInput' "SDI"

{-# COMPLETE
  InputDeviceConfiguredInput_AUTO,
  InputDeviceConfiguredInput_HDMI,
  InputDeviceConfiguredInput_SDI,
  InputDeviceConfiguredInput'
  #-}