{-# 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.TemplateErrorType
-- 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.TemplateErrorType
  ( TemplateErrorType
      ( ..,
        TemplateErrorType_ACCESS_DENIED,
        TemplateErrorType_DATA_SET_NOT_FOUND,
        TemplateErrorType_INTERNAL_FAILURE,
        TemplateErrorType_SOURCE_NOT_FOUND
      ),
  )
where

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

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

pattern TemplateErrorType_ACCESS_DENIED :: TemplateErrorType
pattern $bTemplateErrorType_ACCESS_DENIED :: TemplateErrorType
$mTemplateErrorType_ACCESS_DENIED :: forall {r}. TemplateErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
TemplateErrorType_ACCESS_DENIED = TemplateErrorType' "ACCESS_DENIED"

pattern TemplateErrorType_DATA_SET_NOT_FOUND :: TemplateErrorType
pattern $bTemplateErrorType_DATA_SET_NOT_FOUND :: TemplateErrorType
$mTemplateErrorType_DATA_SET_NOT_FOUND :: forall {r}. TemplateErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
TemplateErrorType_DATA_SET_NOT_FOUND = TemplateErrorType' "DATA_SET_NOT_FOUND"

pattern TemplateErrorType_INTERNAL_FAILURE :: TemplateErrorType
pattern $bTemplateErrorType_INTERNAL_FAILURE :: TemplateErrorType
$mTemplateErrorType_INTERNAL_FAILURE :: forall {r}. TemplateErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
TemplateErrorType_INTERNAL_FAILURE = TemplateErrorType' "INTERNAL_FAILURE"

pattern TemplateErrorType_SOURCE_NOT_FOUND :: TemplateErrorType
pattern $bTemplateErrorType_SOURCE_NOT_FOUND :: TemplateErrorType
$mTemplateErrorType_SOURCE_NOT_FOUND :: forall {r}. TemplateErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
TemplateErrorType_SOURCE_NOT_FOUND = TemplateErrorType' "SOURCE_NOT_FOUND"

{-# COMPLETE
  TemplateErrorType_ACCESS_DENIED,
  TemplateErrorType_DATA_SET_NOT_FOUND,
  TemplateErrorType_INTERNAL_FAILURE,
  TemplateErrorType_SOURCE_NOT_FOUND,
  TemplateErrorType'
  #-}