{-# 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-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.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.Prelude as Prelude

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

pattern TemplateErrorType_ACCESS_DENIED :: TemplateErrorType
pattern $bTemplateErrorType_ACCESS_DENIED :: TemplateErrorType
$mTemplateErrorType_ACCESS_DENIED :: forall r. TemplateErrorType -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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'
  #-}