{-# 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.ThemeErrorType
-- 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.ThemeErrorType
  ( ThemeErrorType
      ( ..,
        ThemeErrorType_INTERNAL_FAILURE
      ),
  )
where

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

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

pattern ThemeErrorType_INTERNAL_FAILURE :: ThemeErrorType
pattern $bThemeErrorType_INTERNAL_FAILURE :: ThemeErrorType
$mThemeErrorType_INTERNAL_FAILURE :: forall {r}. ThemeErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
ThemeErrorType_INTERNAL_FAILURE = ThemeErrorType' "INTERNAL_FAILURE"

{-# COMPLETE
  ThemeErrorType_INTERNAL_FAILURE,
  ThemeErrorType'
  #-}