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

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

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

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

{-# COMPLETE
  ThemeErrorType_INTERNAL_FAILURE,
  ThemeErrorType'
  #-}