{-# 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.M2tsCcDescriptor
-- 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.M2tsCcDescriptor
  ( M2tsCcDescriptor
      ( ..,
        M2tsCcDescriptor_DISABLED,
        M2tsCcDescriptor_ENABLED
      ),
  )
where

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

-- | M2ts Cc Descriptor
newtype M2tsCcDescriptor = M2tsCcDescriptor'
  { M2tsCcDescriptor -> Text
fromM2tsCcDescriptor ::
      Data.Text
  }
  deriving stock
    ( Int -> M2tsCcDescriptor -> ShowS
[M2tsCcDescriptor] -> ShowS
M2tsCcDescriptor -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq M2tsCcDescriptor
Int -> M2tsCcDescriptor -> Int
M2tsCcDescriptor -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: M2tsCcDescriptor -> ()
$crnf :: M2tsCcDescriptor -> ()
Prelude.NFData,
      Text -> Either String M2tsCcDescriptor
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String M2tsCcDescriptor
$cfromText :: Text -> Either String M2tsCcDescriptor
Data.FromText,
      M2tsCcDescriptor -> Text
forall a. (a -> Text) -> ToText a
toText :: M2tsCcDescriptor -> Text
$ctoText :: M2tsCcDescriptor -> Text
Data.ToText,
      M2tsCcDescriptor -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: M2tsCcDescriptor -> ByteString
$ctoBS :: M2tsCcDescriptor -> ByteString
Data.ToByteString,
      M2tsCcDescriptor -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: M2tsCcDescriptor -> ByteStringBuilder
$cbuild :: M2tsCcDescriptor -> ByteStringBuilder
Data.ToLog,
      HeaderName -> M2tsCcDescriptor -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> M2tsCcDescriptor -> [Header]
$ctoHeader :: HeaderName -> M2tsCcDescriptor -> [Header]
Data.ToHeader,
      M2tsCcDescriptor -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: M2tsCcDescriptor -> QueryString
$ctoQuery :: M2tsCcDescriptor -> QueryString
Data.ToQuery,
      Value -> Parser [M2tsCcDescriptor]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [M2tsCcDescriptor]
FromJSONKeyFunction M2tsCcDescriptor
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [M2tsCcDescriptor]
$cfromJSONKeyList :: FromJSONKeyFunction [M2tsCcDescriptor]
fromJSONKey :: FromJSONKeyFunction M2tsCcDescriptor
$cfromJSONKey :: FromJSONKeyFunction M2tsCcDescriptor
Data.FromJSONKey,
      [M2tsCcDescriptor] -> Encoding
[M2tsCcDescriptor] -> Value
M2tsCcDescriptor -> Encoding
M2tsCcDescriptor -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [M2tsCcDescriptor]
ToJSONKeyFunction M2tsCcDescriptor
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [M2tsCcDescriptor]
$ctoJSONKeyList :: ToJSONKeyFunction [M2tsCcDescriptor]
toJSONKey :: ToJSONKeyFunction M2tsCcDescriptor
$ctoJSONKey :: ToJSONKeyFunction M2tsCcDescriptor
Data.ToJSONKey,
      [Node] -> Either String M2tsCcDescriptor
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String M2tsCcDescriptor
$cparseXML :: [Node] -> Either String M2tsCcDescriptor
Data.FromXML,
      M2tsCcDescriptor -> XML
forall a. (a -> XML) -> ToXML a
toXML :: M2tsCcDescriptor -> XML
$ctoXML :: M2tsCcDescriptor -> XML
Data.ToXML
    )

pattern M2tsCcDescriptor_DISABLED :: M2tsCcDescriptor
pattern $bM2tsCcDescriptor_DISABLED :: M2tsCcDescriptor
$mM2tsCcDescriptor_DISABLED :: forall {r}. M2tsCcDescriptor -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsCcDescriptor_DISABLED = M2tsCcDescriptor' "DISABLED"

pattern M2tsCcDescriptor_ENABLED :: M2tsCcDescriptor
pattern $bM2tsCcDescriptor_ENABLED :: M2tsCcDescriptor
$mM2tsCcDescriptor_ENABLED :: forall {r}. M2tsCcDescriptor -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsCcDescriptor_ENABLED = M2tsCcDescriptor' "ENABLED"

{-# COMPLETE
  M2tsCcDescriptor_DISABLED,
  M2tsCcDescriptor_ENABLED,
  M2tsCcDescriptor'
  #-}