{-# 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.M2tsEbifControl
-- 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.M2tsEbifControl
  ( M2tsEbifControl
      ( ..,
        M2tsEbifControl_NONE,
        M2tsEbifControl_PASSTHROUGH
      ),
  )
where

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

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

pattern M2tsEbifControl_NONE :: M2tsEbifControl
pattern $bM2tsEbifControl_NONE :: M2tsEbifControl
$mM2tsEbifControl_NONE :: forall {r}. M2tsEbifControl -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsEbifControl_NONE = M2tsEbifControl' "NONE"

pattern M2tsEbifControl_PASSTHROUGH :: M2tsEbifControl
pattern $bM2tsEbifControl_PASSTHROUGH :: M2tsEbifControl
$mM2tsEbifControl_PASSTHROUGH :: forall {r}. M2tsEbifControl -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsEbifControl_PASSTHROUGH = M2tsEbifControl' "PASSTHROUGH"

{-# COMPLETE
  M2tsEbifControl_NONE,
  M2tsEbifControl_PASSTHROUGH,
  M2tsEbifControl'
  #-}