{-# 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.TtmlDestinationStyleControl
-- 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.TtmlDestinationStyleControl
  ( TtmlDestinationStyleControl
      ( ..,
        TtmlDestinationStyleControl_PASSTHROUGH,
        TtmlDestinationStyleControl_USE_CONFIGURED
      ),
  )
where

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

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

pattern TtmlDestinationStyleControl_PASSTHROUGH :: TtmlDestinationStyleControl
pattern $bTtmlDestinationStyleControl_PASSTHROUGH :: TtmlDestinationStyleControl
$mTtmlDestinationStyleControl_PASSTHROUGH :: forall {r}.
TtmlDestinationStyleControl -> ((# #) -> r) -> ((# #) -> r) -> r
TtmlDestinationStyleControl_PASSTHROUGH = TtmlDestinationStyleControl' "PASSTHROUGH"

pattern TtmlDestinationStyleControl_USE_CONFIGURED :: TtmlDestinationStyleControl
pattern $bTtmlDestinationStyleControl_USE_CONFIGURED :: TtmlDestinationStyleControl
$mTtmlDestinationStyleControl_USE_CONFIGURED :: forall {r}.
TtmlDestinationStyleControl -> ((# #) -> r) -> ((# #) -> r) -> r
TtmlDestinationStyleControl_USE_CONFIGURED = TtmlDestinationStyleControl' "USE_CONFIGURED"

{-# COMPLETE
  TtmlDestinationStyleControl_PASSTHROUGH,
  TtmlDestinationStyleControl_USE_CONFIGURED,
  TtmlDestinationStyleControl'
  #-}