{-# 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.ChannelClass
-- 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.ChannelClass
  ( ChannelClass
      ( ..,
        ChannelClass_SINGLE_PIPELINE,
        ChannelClass_STANDARD
      ),
  )
where

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

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

pattern ChannelClass_SINGLE_PIPELINE :: ChannelClass
pattern $bChannelClass_SINGLE_PIPELINE :: ChannelClass
$mChannelClass_SINGLE_PIPELINE :: forall {r}. ChannelClass -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelClass_SINGLE_PIPELINE = ChannelClass' "SINGLE_PIPELINE"

pattern ChannelClass_STANDARD :: ChannelClass
pattern $bChannelClass_STANDARD :: ChannelClass
$mChannelClass_STANDARD :: forall {r}. ChannelClass -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelClass_STANDARD = ChannelClass' "STANDARD"

{-# COMPLETE
  ChannelClass_SINGLE_PIPELINE,
  ChannelClass_STANDARD,
  ChannelClass'
  #-}