{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaLive.Types.M2tsCcDescriptor
( M2tsCcDescriptor
( ..,
M2tsCcDescriptor_DISABLED,
M2tsCcDescriptor_ENABLED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype M2tsCcDescriptor = M2tsCcDescriptor'
{ M2tsCcDescriptor -> Text
fromM2tsCcDescriptor ::
Core.Text
}
deriving stock
( Int -> M2tsCcDescriptor -> ShowS
[M2tsCcDescriptor] -> ShowS
M2tsCcDescriptor -> String
(Int -> M2tsCcDescriptor -> ShowS)
-> (M2tsCcDescriptor -> String)
-> ([M2tsCcDescriptor] -> ShowS)
-> Show M2tsCcDescriptor
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [M2tsCcDescriptor] -> ShowS
$cshowList :: [M2tsCcDescriptor] -> ShowS
show :: M2tsCcDescriptor -> String
$cshow :: M2tsCcDescriptor -> String
showsPrec :: Int -> M2tsCcDescriptor -> ShowS
$cshowsPrec :: Int -> M2tsCcDescriptor -> ShowS
Prelude.Show,
ReadPrec [M2tsCcDescriptor]
ReadPrec M2tsCcDescriptor
Int -> ReadS M2tsCcDescriptor
ReadS [M2tsCcDescriptor]
(Int -> ReadS M2tsCcDescriptor)
-> ReadS [M2tsCcDescriptor]
-> ReadPrec M2tsCcDescriptor
-> ReadPrec [M2tsCcDescriptor]
-> Read M2tsCcDescriptor
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [M2tsCcDescriptor]
$creadListPrec :: ReadPrec [M2tsCcDescriptor]
readPrec :: ReadPrec M2tsCcDescriptor
$creadPrec :: ReadPrec M2tsCcDescriptor
readList :: ReadS [M2tsCcDescriptor]
$creadList :: ReadS [M2tsCcDescriptor]
readsPrec :: Int -> ReadS M2tsCcDescriptor
$creadsPrec :: Int -> ReadS M2tsCcDescriptor
Prelude.Read,
M2tsCcDescriptor -> M2tsCcDescriptor -> Bool
(M2tsCcDescriptor -> M2tsCcDescriptor -> Bool)
-> (M2tsCcDescriptor -> M2tsCcDescriptor -> Bool)
-> Eq M2tsCcDescriptor
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: M2tsCcDescriptor -> M2tsCcDescriptor -> Bool
$c/= :: M2tsCcDescriptor -> M2tsCcDescriptor -> Bool
== :: M2tsCcDescriptor -> M2tsCcDescriptor -> Bool
$c== :: M2tsCcDescriptor -> M2tsCcDescriptor -> Bool
Prelude.Eq,
Eq M2tsCcDescriptor
Eq M2tsCcDescriptor
-> (M2tsCcDescriptor -> M2tsCcDescriptor -> Ordering)
-> (M2tsCcDescriptor -> M2tsCcDescriptor -> Bool)
-> (M2tsCcDescriptor -> M2tsCcDescriptor -> Bool)
-> (M2tsCcDescriptor -> M2tsCcDescriptor -> Bool)
-> (M2tsCcDescriptor -> M2tsCcDescriptor -> Bool)
-> (M2tsCcDescriptor -> M2tsCcDescriptor -> M2tsCcDescriptor)
-> (M2tsCcDescriptor -> M2tsCcDescriptor -> M2tsCcDescriptor)
-> Ord M2tsCcDescriptor
M2tsCcDescriptor -> M2tsCcDescriptor -> Bool
M2tsCcDescriptor -> M2tsCcDescriptor -> Ordering
M2tsCcDescriptor -> M2tsCcDescriptor -> M2tsCcDescriptor
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 :: M2tsCcDescriptor -> M2tsCcDescriptor -> M2tsCcDescriptor
$cmin :: M2tsCcDescriptor -> M2tsCcDescriptor -> M2tsCcDescriptor
max :: M2tsCcDescriptor -> M2tsCcDescriptor -> M2tsCcDescriptor
$cmax :: M2tsCcDescriptor -> M2tsCcDescriptor -> M2tsCcDescriptor
>= :: M2tsCcDescriptor -> M2tsCcDescriptor -> Bool
$c>= :: M2tsCcDescriptor -> M2tsCcDescriptor -> Bool
> :: M2tsCcDescriptor -> M2tsCcDescriptor -> Bool
$c> :: M2tsCcDescriptor -> M2tsCcDescriptor -> Bool
<= :: M2tsCcDescriptor -> M2tsCcDescriptor -> Bool
$c<= :: M2tsCcDescriptor -> M2tsCcDescriptor -> Bool
< :: M2tsCcDescriptor -> M2tsCcDescriptor -> Bool
$c< :: M2tsCcDescriptor -> M2tsCcDescriptor -> Bool
compare :: M2tsCcDescriptor -> M2tsCcDescriptor -> Ordering
$ccompare :: M2tsCcDescriptor -> M2tsCcDescriptor -> Ordering
$cp1Ord :: Eq M2tsCcDescriptor
Prelude.Ord,
(forall x. M2tsCcDescriptor -> Rep M2tsCcDescriptor x)
-> (forall x. Rep M2tsCcDescriptor x -> M2tsCcDescriptor)
-> Generic M2tsCcDescriptor
forall x. Rep M2tsCcDescriptor x -> M2tsCcDescriptor
forall x. M2tsCcDescriptor -> Rep M2tsCcDescriptor x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep M2tsCcDescriptor x -> M2tsCcDescriptor
$cfrom :: forall x. M2tsCcDescriptor -> Rep M2tsCcDescriptor x
Prelude.Generic
)
deriving newtype
( Int -> M2tsCcDescriptor -> Int
M2tsCcDescriptor -> Int
(Int -> M2tsCcDescriptor -> Int)
-> (M2tsCcDescriptor -> Int) -> Hashable M2tsCcDescriptor
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: M2tsCcDescriptor -> Int
$chash :: M2tsCcDescriptor -> Int
hashWithSalt :: Int -> M2tsCcDescriptor -> Int
$chashWithSalt :: Int -> M2tsCcDescriptor -> Int
Prelude.Hashable,
M2tsCcDescriptor -> ()
(M2tsCcDescriptor -> ()) -> NFData M2tsCcDescriptor
forall a. (a -> ()) -> NFData a
rnf :: M2tsCcDescriptor -> ()
$crnf :: M2tsCcDescriptor -> ()
Prelude.NFData,
Text -> Either String M2tsCcDescriptor
(Text -> Either String M2tsCcDescriptor)
-> FromText M2tsCcDescriptor
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String M2tsCcDescriptor
$cfromText :: Text -> Either String M2tsCcDescriptor
Core.FromText,
M2tsCcDescriptor -> Text
(M2tsCcDescriptor -> Text) -> ToText M2tsCcDescriptor
forall a. (a -> Text) -> ToText a
toText :: M2tsCcDescriptor -> Text
$ctoText :: M2tsCcDescriptor -> Text
Core.ToText,
M2tsCcDescriptor -> ByteString
(M2tsCcDescriptor -> ByteString) -> ToByteString M2tsCcDescriptor
forall a. (a -> ByteString) -> ToByteString a
toBS :: M2tsCcDescriptor -> ByteString
$ctoBS :: M2tsCcDescriptor -> ByteString
Core.ToByteString,
M2tsCcDescriptor -> ByteStringBuilder
(M2tsCcDescriptor -> ByteStringBuilder) -> ToLog M2tsCcDescriptor
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: M2tsCcDescriptor -> ByteStringBuilder
$cbuild :: M2tsCcDescriptor -> ByteStringBuilder
Core.ToLog,
HeaderName -> M2tsCcDescriptor -> [Header]
(HeaderName -> M2tsCcDescriptor -> [Header])
-> ToHeader M2tsCcDescriptor
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> M2tsCcDescriptor -> [Header]
$ctoHeader :: HeaderName -> M2tsCcDescriptor -> [Header]
Core.ToHeader,
M2tsCcDescriptor -> QueryString
(M2tsCcDescriptor -> QueryString) -> ToQuery M2tsCcDescriptor
forall a. (a -> QueryString) -> ToQuery a
toQuery :: M2tsCcDescriptor -> QueryString
$ctoQuery :: M2tsCcDescriptor -> QueryString
Core.ToQuery,
Value -> Parser [M2tsCcDescriptor]
Value -> Parser M2tsCcDescriptor
(Value -> Parser M2tsCcDescriptor)
-> (Value -> Parser [M2tsCcDescriptor])
-> FromJSON M2tsCcDescriptor
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [M2tsCcDescriptor]
$cparseJSONList :: Value -> Parser [M2tsCcDescriptor]
parseJSON :: Value -> Parser M2tsCcDescriptor
$cparseJSON :: Value -> Parser M2tsCcDescriptor
Core.FromJSON,
FromJSONKeyFunction [M2tsCcDescriptor]
FromJSONKeyFunction M2tsCcDescriptor
FromJSONKeyFunction M2tsCcDescriptor
-> FromJSONKeyFunction [M2tsCcDescriptor]
-> FromJSONKey M2tsCcDescriptor
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [M2tsCcDescriptor]
$cfromJSONKeyList :: FromJSONKeyFunction [M2tsCcDescriptor]
fromJSONKey :: FromJSONKeyFunction M2tsCcDescriptor
$cfromJSONKey :: FromJSONKeyFunction M2tsCcDescriptor
Core.FromJSONKey,
[M2tsCcDescriptor] -> Encoding
[M2tsCcDescriptor] -> Value
M2tsCcDescriptor -> Encoding
M2tsCcDescriptor -> Value
(M2tsCcDescriptor -> Value)
-> (M2tsCcDescriptor -> Encoding)
-> ([M2tsCcDescriptor] -> Value)
-> ([M2tsCcDescriptor] -> Encoding)
-> ToJSON M2tsCcDescriptor
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [M2tsCcDescriptor] -> Encoding
$ctoEncodingList :: [M2tsCcDescriptor] -> Encoding
toJSONList :: [M2tsCcDescriptor] -> Value
$ctoJSONList :: [M2tsCcDescriptor] -> Value
toEncoding :: M2tsCcDescriptor -> Encoding
$ctoEncoding :: M2tsCcDescriptor -> Encoding
toJSON :: M2tsCcDescriptor -> Value
$ctoJSON :: M2tsCcDescriptor -> Value
Core.ToJSON,
ToJSONKeyFunction [M2tsCcDescriptor]
ToJSONKeyFunction M2tsCcDescriptor
ToJSONKeyFunction M2tsCcDescriptor
-> ToJSONKeyFunction [M2tsCcDescriptor]
-> ToJSONKey M2tsCcDescriptor
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [M2tsCcDescriptor]
$ctoJSONKeyList :: ToJSONKeyFunction [M2tsCcDescriptor]
toJSONKey :: ToJSONKeyFunction M2tsCcDescriptor
$ctoJSONKey :: ToJSONKeyFunction M2tsCcDescriptor
Core.ToJSONKey,
[Node] -> Either String M2tsCcDescriptor
([Node] -> Either String M2tsCcDescriptor)
-> FromXML M2tsCcDescriptor
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String M2tsCcDescriptor
$cparseXML :: [Node] -> Either String M2tsCcDescriptor
Core.FromXML,
M2tsCcDescriptor -> XML
(M2tsCcDescriptor -> XML) -> ToXML M2tsCcDescriptor
forall a. (a -> XML) -> ToXML a
toXML :: M2tsCcDescriptor -> XML
$ctoXML :: M2tsCcDescriptor -> XML
Core.ToXML
)
pattern M2tsCcDescriptor_DISABLED :: M2tsCcDescriptor
pattern $bM2tsCcDescriptor_DISABLED :: M2tsCcDescriptor
$mM2tsCcDescriptor_DISABLED :: forall r. M2tsCcDescriptor -> (Void# -> r) -> (Void# -> r) -> r
M2tsCcDescriptor_DISABLED = M2tsCcDescriptor' "DISABLED"
pattern M2tsCcDescriptor_ENABLED :: M2tsCcDescriptor
pattern $bM2tsCcDescriptor_ENABLED :: M2tsCcDescriptor
$mM2tsCcDescriptor_ENABLED :: forall r. M2tsCcDescriptor -> (Void# -> r) -> (Void# -> r) -> r
M2tsCcDescriptor_ENABLED = M2tsCcDescriptor' "ENABLED"
{-# COMPLETE
M2tsCcDescriptor_DISABLED,
M2tsCcDescriptor_ENABLED,
M2tsCcDescriptor'
#-}