{-# 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.M2tsArib
-- 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.M2tsArib
  ( M2tsArib
      ( ..,
        M2tsArib_DISABLED,
        M2tsArib_ENABLED
      ),
  )
where

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

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

pattern M2tsArib_DISABLED :: M2tsArib
pattern $bM2tsArib_DISABLED :: M2tsArib
$mM2tsArib_DISABLED :: forall r. M2tsArib -> (Void# -> r) -> (Void# -> r) -> r
M2tsArib_DISABLED = M2tsArib' "DISABLED"

pattern M2tsArib_ENABLED :: M2tsArib
pattern $bM2tsArib_ENABLED :: M2tsArib
$mM2tsArib_ENABLED :: forall r. M2tsArib -> (Void# -> r) -> (Void# -> r) -> r
M2tsArib_ENABLED = M2tsArib' "ENABLED"

{-# COMPLETE
  M2tsArib_DISABLED,
  M2tsArib_ENABLED,
  M2tsArib'
  #-}