{-# 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.InputDeviceActiveInput
-- 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.InputDeviceActiveInput
  ( InputDeviceActiveInput
      ( ..,
        InputDeviceActiveInput_HDMI,
        InputDeviceActiveInput_SDI
      ),
  )
where

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

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

pattern InputDeviceActiveInput_HDMI :: InputDeviceActiveInput
pattern $bInputDeviceActiveInput_HDMI :: InputDeviceActiveInput
$mInputDeviceActiveInput_HDMI :: forall r.
InputDeviceActiveInput -> (Void# -> r) -> (Void# -> r) -> r
InputDeviceActiveInput_HDMI = InputDeviceActiveInput' "HDMI"

pattern InputDeviceActiveInput_SDI :: InputDeviceActiveInput
pattern $bInputDeviceActiveInput_SDI :: InputDeviceActiveInput
$mInputDeviceActiveInput_SDI :: forall r.
InputDeviceActiveInput -> (Void# -> r) -> (Void# -> r) -> r
InputDeviceActiveInput_SDI = InputDeviceActiveInput' "SDI"

{-# COMPLETE
  InputDeviceActiveInput_HDMI,
  InputDeviceActiveInput_SDI,
  InputDeviceActiveInput'
  #-}