{-# 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.DvbSubDestinationTeletextGridControl
-- 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.DvbSubDestinationTeletextGridControl
  ( DvbSubDestinationTeletextGridControl
      ( ..,
        DvbSubDestinationTeletextGridControl_FIXED,
        DvbSubDestinationTeletextGridControl_SCALED
      ),
  )
where

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

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

pattern DvbSubDestinationTeletextGridControl_FIXED :: DvbSubDestinationTeletextGridControl
pattern $bDvbSubDestinationTeletextGridControl_FIXED :: DvbSubDestinationTeletextGridControl
$mDvbSubDestinationTeletextGridControl_FIXED :: forall {r}.
DvbSubDestinationTeletextGridControl
-> ((# #) -> r) -> ((# #) -> r) -> r
DvbSubDestinationTeletextGridControl_FIXED = DvbSubDestinationTeletextGridControl' "FIXED"

pattern DvbSubDestinationTeletextGridControl_SCALED :: DvbSubDestinationTeletextGridControl
pattern $bDvbSubDestinationTeletextGridControl_SCALED :: DvbSubDestinationTeletextGridControl
$mDvbSubDestinationTeletextGridControl_SCALED :: forall {r}.
DvbSubDestinationTeletextGridControl
-> ((# #) -> r) -> ((# #) -> r) -> r
DvbSubDestinationTeletextGridControl_SCALED = DvbSubDestinationTeletextGridControl' "SCALED"

{-# COMPLETE
  DvbSubDestinationTeletextGridControl_FIXED,
  DvbSubDestinationTeletextGridControl_SCALED,
  DvbSubDestinationTeletextGridControl'
  #-}