{-# 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.BurnInTeletextGridControl
-- 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.BurnInTeletextGridControl
  ( BurnInTeletextGridControl
      ( ..,
        BurnInTeletextGridControl_FIXED,
        BurnInTeletextGridControl_SCALED
      ),
  )
where

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

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

pattern BurnInTeletextGridControl_FIXED :: BurnInTeletextGridControl
pattern $bBurnInTeletextGridControl_FIXED :: BurnInTeletextGridControl
$mBurnInTeletextGridControl_FIXED :: forall r.
BurnInTeletextGridControl -> (Void# -> r) -> (Void# -> r) -> r
BurnInTeletextGridControl_FIXED = BurnInTeletextGridControl' "FIXED"

pattern BurnInTeletextGridControl_SCALED :: BurnInTeletextGridControl
pattern $bBurnInTeletextGridControl_SCALED :: BurnInTeletextGridControl
$mBurnInTeletextGridControl_SCALED :: forall r.
BurnInTeletextGridControl -> (Void# -> r) -> (Void# -> r) -> r
BurnInTeletextGridControl_SCALED = BurnInTeletextGridControl' "SCALED"

{-# COMPLETE
  BurnInTeletextGridControl_FIXED,
  BurnInTeletextGridControl_SCALED,
  BurnInTeletextGridControl'
  #-}