{-# 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.InputClass
-- 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.InputClass
  ( InputClass
      ( ..,
        InputClass_SINGLE_PIPELINE,
        InputClass_STANDARD
      ),
  )
where

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

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

pattern InputClass_SINGLE_PIPELINE :: InputClass
pattern $bInputClass_SINGLE_PIPELINE :: InputClass
$mInputClass_SINGLE_PIPELINE :: forall {r}. InputClass -> ((# #) -> r) -> ((# #) -> r) -> r
InputClass_SINGLE_PIPELINE = InputClass' "SINGLE_PIPELINE"

pattern InputClass_STANDARD :: InputClass
pattern $bInputClass_STANDARD :: InputClass
$mInputClass_STANDARD :: forall {r}. InputClass -> ((# #) -> r) -> ((# #) -> r) -> r
InputClass_STANDARD = InputClass' "STANDARD"

{-# COMPLETE
  InputClass_SINGLE_PIPELINE,
  InputClass_STANDARD,
  InputClass'
  #-}