{-# 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.WebvttDestinationStyleControl
-- 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.WebvttDestinationStyleControl
  ( WebvttDestinationStyleControl
      ( ..,
        WebvttDestinationStyleControl_NO_STYLE_DATA,
        WebvttDestinationStyleControl_PASSTHROUGH
      ),
  )
where

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

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

pattern WebvttDestinationStyleControl_NO_STYLE_DATA :: WebvttDestinationStyleControl
pattern $bWebvttDestinationStyleControl_NO_STYLE_DATA :: WebvttDestinationStyleControl
$mWebvttDestinationStyleControl_NO_STYLE_DATA :: forall r.
WebvttDestinationStyleControl -> (Void# -> r) -> (Void# -> r) -> r
WebvttDestinationStyleControl_NO_STYLE_DATA = WebvttDestinationStyleControl' "NO_STYLE_DATA"

pattern WebvttDestinationStyleControl_PASSTHROUGH :: WebvttDestinationStyleControl
pattern $bWebvttDestinationStyleControl_PASSTHROUGH :: WebvttDestinationStyleControl
$mWebvttDestinationStyleControl_PASSTHROUGH :: forall r.
WebvttDestinationStyleControl -> (Void# -> r) -> (Void# -> r) -> r
WebvttDestinationStyleControl_PASSTHROUGH = WebvttDestinationStyleControl' "PASSTHROUGH"

{-# COMPLETE
  WebvttDestinationStyleControl_NO_STYLE_DATA,
  WebvttDestinationStyleControl_PASSTHROUGH,
  WebvttDestinationStyleControl'
  #-}