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

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

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

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

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

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