{-# 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.DvbSubDestinationShadowColor
-- 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.DvbSubDestinationShadowColor
  ( DvbSubDestinationShadowColor
      ( ..,
        DvbSubDestinationShadowColor_BLACK,
        DvbSubDestinationShadowColor_NONE,
        DvbSubDestinationShadowColor_WHITE
      ),
  )
where

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

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

pattern DvbSubDestinationShadowColor_BLACK :: DvbSubDestinationShadowColor
pattern $bDvbSubDestinationShadowColor_BLACK :: DvbSubDestinationShadowColor
$mDvbSubDestinationShadowColor_BLACK :: forall r.
DvbSubDestinationShadowColor -> (Void# -> r) -> (Void# -> r) -> r
DvbSubDestinationShadowColor_BLACK = DvbSubDestinationShadowColor' "BLACK"

pattern DvbSubDestinationShadowColor_NONE :: DvbSubDestinationShadowColor
pattern $bDvbSubDestinationShadowColor_NONE :: DvbSubDestinationShadowColor
$mDvbSubDestinationShadowColor_NONE :: forall r.
DvbSubDestinationShadowColor -> (Void# -> r) -> (Void# -> r) -> r
DvbSubDestinationShadowColor_NONE = DvbSubDestinationShadowColor' "NONE"

pattern DvbSubDestinationShadowColor_WHITE :: DvbSubDestinationShadowColor
pattern $bDvbSubDestinationShadowColor_WHITE :: DvbSubDestinationShadowColor
$mDvbSubDestinationShadowColor_WHITE :: forall r.
DvbSubDestinationShadowColor -> (Void# -> r) -> (Void# -> r) -> r
DvbSubDestinationShadowColor_WHITE = DvbSubDestinationShadowColor' "WHITE"

{-# COMPLETE
  DvbSubDestinationShadowColor_BLACK,
  DvbSubDestinationShadowColor_NONE,
  DvbSubDestinationShadowColor_WHITE,
  DvbSubDestinationShadowColor'
  #-}