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

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

newtype ThemeType = ThemeType'
  { ThemeType -> Text
fromThemeType ::
      Core.Text
  }
  deriving stock
    ( Int -> ThemeType -> ShowS
[ThemeType] -> ShowS
ThemeType -> String
(Int -> ThemeType -> ShowS)
-> (ThemeType -> String)
-> ([ThemeType] -> ShowS)
-> Show ThemeType
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]
(Int -> ReadS ThemeType)
-> ReadS [ThemeType]
-> ReadPrec ThemeType
-> ReadPrec [ThemeType]
-> Read 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
(ThemeType -> ThemeType -> Bool)
-> (ThemeType -> ThemeType -> Bool) -> Eq ThemeType
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
Eq ThemeType
-> (ThemeType -> ThemeType -> Ordering)
-> (ThemeType -> ThemeType -> Bool)
-> (ThemeType -> ThemeType -> Bool)
-> (ThemeType -> ThemeType -> Bool)
-> (ThemeType -> ThemeType -> Bool)
-> (ThemeType -> ThemeType -> ThemeType)
-> (ThemeType -> ThemeType -> ThemeType)
-> Ord 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
$cp1Ord :: Eq ThemeType
Prelude.Ord,
      (forall x. ThemeType -> Rep ThemeType x)
-> (forall x. Rep ThemeType x -> ThemeType) -> Generic ThemeType
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
    ( Int -> ThemeType -> Int
ThemeType -> Int
(Int -> ThemeType -> Int)
-> (ThemeType -> Int) -> Hashable ThemeType
forall 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 -> ()
(ThemeType -> ()) -> NFData ThemeType
forall a. (a -> ()) -> NFData a
rnf :: ThemeType -> ()
$crnf :: ThemeType -> ()
Prelude.NFData,
      Text -> Either String ThemeType
(Text -> Either String ThemeType) -> FromText ThemeType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ThemeType
$cfromText :: Text -> Either String ThemeType
Core.FromText,
      ThemeType -> Text
(ThemeType -> Text) -> ToText ThemeType
forall a. (a -> Text) -> ToText a
toText :: ThemeType -> Text
$ctoText :: ThemeType -> Text
Core.ToText,
      ThemeType -> ByteString
(ThemeType -> ByteString) -> ToByteString ThemeType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ThemeType -> ByteString
$ctoBS :: ThemeType -> ByteString
Core.ToByteString,
      ThemeType -> ByteStringBuilder
(ThemeType -> ByteStringBuilder) -> ToLog ThemeType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ThemeType -> ByteStringBuilder
$cbuild :: ThemeType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ThemeType -> [Header]
(HeaderName -> ThemeType -> [Header]) -> ToHeader ThemeType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ThemeType -> [Header]
$ctoHeader :: HeaderName -> ThemeType -> [Header]
Core.ToHeader,
      ThemeType -> QueryString
(ThemeType -> QueryString) -> ToQuery ThemeType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ThemeType -> QueryString
$ctoQuery :: ThemeType -> QueryString
Core.ToQuery,
      Value -> Parser [ThemeType]
Value -> Parser ThemeType
(Value -> Parser ThemeType)
-> (Value -> Parser [ThemeType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ThemeType]
FromJSONKeyFunction ThemeType
FromJSONKeyFunction ThemeType
-> FromJSONKeyFunction [ThemeType] -> FromJSONKey ThemeType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ThemeType]
$cfromJSONKeyList :: FromJSONKeyFunction [ThemeType]
fromJSONKey :: FromJSONKeyFunction ThemeType
$cfromJSONKey :: FromJSONKeyFunction ThemeType
Core.FromJSONKey,
      [ThemeType] -> Encoding
[ThemeType] -> Value
ThemeType -> Encoding
ThemeType -> Value
(ThemeType -> Value)
-> (ThemeType -> Encoding)
-> ([ThemeType] -> Value)
-> ([ThemeType] -> Encoding)
-> ToJSON ThemeType
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
Core.ToJSON,
      ToJSONKeyFunction [ThemeType]
ToJSONKeyFunction ThemeType
ToJSONKeyFunction ThemeType
-> ToJSONKeyFunction [ThemeType] -> ToJSONKey ThemeType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ThemeType]
$ctoJSONKeyList :: ToJSONKeyFunction [ThemeType]
toJSONKey :: ToJSONKeyFunction ThemeType
$ctoJSONKey :: ToJSONKeyFunction ThemeType
Core.ToJSONKey,
      [Node] -> Either String ThemeType
([Node] -> Either String ThemeType) -> FromXML ThemeType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ThemeType
$cparseXML :: [Node] -> Either String ThemeType
Core.FromXML,
      ThemeType -> XML
(ThemeType -> XML) -> ToXML ThemeType
forall a. (a -> XML) -> ToXML a
toXML :: ThemeType -> XML
$ctoXML :: ThemeType -> XML
Core.ToXML
    )

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

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

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

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