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

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

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

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

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