{-# 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.EbuTtDDestinationStyleControl
-- 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.EbuTtDDestinationStyleControl
  ( EbuTtDDestinationStyleControl
      ( ..,
        EbuTtDDestinationStyleControl_EXCLUDE,
        EbuTtDDestinationStyleControl_INCLUDE
      ),
  )
where

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

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

pattern EbuTtDDestinationStyleControl_EXCLUDE :: EbuTtDDestinationStyleControl
pattern $bEbuTtDDestinationStyleControl_EXCLUDE :: EbuTtDDestinationStyleControl
$mEbuTtDDestinationStyleControl_EXCLUDE :: forall {r}.
EbuTtDDestinationStyleControl -> ((# #) -> r) -> ((# #) -> r) -> r
EbuTtDDestinationStyleControl_EXCLUDE = EbuTtDDestinationStyleControl' "EXCLUDE"

pattern EbuTtDDestinationStyleControl_INCLUDE :: EbuTtDDestinationStyleControl
pattern $bEbuTtDDestinationStyleControl_INCLUDE :: EbuTtDDestinationStyleControl
$mEbuTtDDestinationStyleControl_INCLUDE :: forall {r}.
EbuTtDDestinationStyleControl -> ((# #) -> r) -> ((# #) -> r) -> r
EbuTtDDestinationStyleControl_INCLUDE = EbuTtDDestinationStyleControl' "INCLUDE"

{-# COMPLETE
  EbuTtDDestinationStyleControl_EXCLUDE,
  EbuTtDDestinationStyleControl_INCLUDE,
  EbuTtDDestinationStyleControl'
  #-}