{-# 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.QuickSight.Types.ThemeType
-- 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.QuickSight.Types.ThemeType
  ( ThemeType
      ( ..,
        ThemeType_ALL,
        ThemeType_CUSTOM,
        ThemeType_QUICKSIGHT
      ),
  )
where

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

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

pattern ThemeType_ALL :: ThemeType
pattern $bThemeType_ALL :: ThemeType
$mThemeType_ALL :: forall {r}. ThemeType -> ((# #) -> r) -> ((# #) -> r) -> r
ThemeType_ALL = ThemeType' "ALL"

pattern ThemeType_CUSTOM :: ThemeType
pattern $bThemeType_CUSTOM :: ThemeType
$mThemeType_CUSTOM :: forall {r}. ThemeType -> ((# #) -> r) -> ((# #) -> r) -> r
ThemeType_CUSTOM = ThemeType' "CUSTOM"

pattern ThemeType_QUICKSIGHT :: ThemeType
pattern $bThemeType_QUICKSIGHT :: ThemeType
$mThemeType_QUICKSIGHT :: forall {r}. ThemeType -> ((# #) -> r) -> ((# #) -> r) -> r
ThemeType_QUICKSIGHT = ThemeType' "QUICKSIGHT"

{-# COMPLETE
  ThemeType_ALL,
  ThemeType_CUSTOM,
  ThemeType_QUICKSIGHT,
  ThemeType'
  #-}