{-# 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.AnalysisErrorType
-- 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.AnalysisErrorType
  ( AnalysisErrorType
      ( ..,
        AnalysisErrorType_ACCESS_DENIED,
        AnalysisErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH,
        AnalysisErrorType_COLUMN_REPLACEMENT_MISSING,
        AnalysisErrorType_COLUMN_TYPE_MISMATCH,
        AnalysisErrorType_DATA_SET_NOT_FOUND,
        AnalysisErrorType_INTERNAL_FAILURE,
        AnalysisErrorType_PARAMETER_NOT_FOUND,
        AnalysisErrorType_PARAMETER_TYPE_INVALID,
        AnalysisErrorType_PARAMETER_VALUE_INCOMPATIBLE,
        AnalysisErrorType_SOURCE_NOT_FOUND
      ),
  )
where

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

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

pattern AnalysisErrorType_ACCESS_DENIED :: AnalysisErrorType
pattern $bAnalysisErrorType_ACCESS_DENIED :: AnalysisErrorType
$mAnalysisErrorType_ACCESS_DENIED :: forall r. AnalysisErrorType -> (Void# -> r) -> (Void# -> r) -> r
AnalysisErrorType_ACCESS_DENIED = AnalysisErrorType' "ACCESS_DENIED"

pattern AnalysisErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH :: AnalysisErrorType
pattern $bAnalysisErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH :: AnalysisErrorType
$mAnalysisErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH :: forall r. AnalysisErrorType -> (Void# -> r) -> (Void# -> r) -> r
AnalysisErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH = AnalysisErrorType' "COLUMN_GEOGRAPHIC_ROLE_MISMATCH"

pattern AnalysisErrorType_COLUMN_REPLACEMENT_MISSING :: AnalysisErrorType
pattern $bAnalysisErrorType_COLUMN_REPLACEMENT_MISSING :: AnalysisErrorType
$mAnalysisErrorType_COLUMN_REPLACEMENT_MISSING :: forall r. AnalysisErrorType -> (Void# -> r) -> (Void# -> r) -> r
AnalysisErrorType_COLUMN_REPLACEMENT_MISSING = AnalysisErrorType' "COLUMN_REPLACEMENT_MISSING"

pattern AnalysisErrorType_COLUMN_TYPE_MISMATCH :: AnalysisErrorType
pattern $bAnalysisErrorType_COLUMN_TYPE_MISMATCH :: AnalysisErrorType
$mAnalysisErrorType_COLUMN_TYPE_MISMATCH :: forall r. AnalysisErrorType -> (Void# -> r) -> (Void# -> r) -> r
AnalysisErrorType_COLUMN_TYPE_MISMATCH = AnalysisErrorType' "COLUMN_TYPE_MISMATCH"

pattern AnalysisErrorType_DATA_SET_NOT_FOUND :: AnalysisErrorType
pattern $bAnalysisErrorType_DATA_SET_NOT_FOUND :: AnalysisErrorType
$mAnalysisErrorType_DATA_SET_NOT_FOUND :: forall r. AnalysisErrorType -> (Void# -> r) -> (Void# -> r) -> r
AnalysisErrorType_DATA_SET_NOT_FOUND = AnalysisErrorType' "DATA_SET_NOT_FOUND"

pattern AnalysisErrorType_INTERNAL_FAILURE :: AnalysisErrorType
pattern $bAnalysisErrorType_INTERNAL_FAILURE :: AnalysisErrorType
$mAnalysisErrorType_INTERNAL_FAILURE :: forall r. AnalysisErrorType -> (Void# -> r) -> (Void# -> r) -> r
AnalysisErrorType_INTERNAL_FAILURE = AnalysisErrorType' "INTERNAL_FAILURE"

pattern AnalysisErrorType_PARAMETER_NOT_FOUND :: AnalysisErrorType
pattern $bAnalysisErrorType_PARAMETER_NOT_FOUND :: AnalysisErrorType
$mAnalysisErrorType_PARAMETER_NOT_FOUND :: forall r. AnalysisErrorType -> (Void# -> r) -> (Void# -> r) -> r
AnalysisErrorType_PARAMETER_NOT_FOUND = AnalysisErrorType' "PARAMETER_NOT_FOUND"

pattern AnalysisErrorType_PARAMETER_TYPE_INVALID :: AnalysisErrorType
pattern $bAnalysisErrorType_PARAMETER_TYPE_INVALID :: AnalysisErrorType
$mAnalysisErrorType_PARAMETER_TYPE_INVALID :: forall r. AnalysisErrorType -> (Void# -> r) -> (Void# -> r) -> r
AnalysisErrorType_PARAMETER_TYPE_INVALID = AnalysisErrorType' "PARAMETER_TYPE_INVALID"

pattern AnalysisErrorType_PARAMETER_VALUE_INCOMPATIBLE :: AnalysisErrorType
pattern $bAnalysisErrorType_PARAMETER_VALUE_INCOMPATIBLE :: AnalysisErrorType
$mAnalysisErrorType_PARAMETER_VALUE_INCOMPATIBLE :: forall r. AnalysisErrorType -> (Void# -> r) -> (Void# -> r) -> r
AnalysisErrorType_PARAMETER_VALUE_INCOMPATIBLE = AnalysisErrorType' "PARAMETER_VALUE_INCOMPATIBLE"

pattern AnalysisErrorType_SOURCE_NOT_FOUND :: AnalysisErrorType
pattern $bAnalysisErrorType_SOURCE_NOT_FOUND :: AnalysisErrorType
$mAnalysisErrorType_SOURCE_NOT_FOUND :: forall r. AnalysisErrorType -> (Void# -> r) -> (Void# -> r) -> r
AnalysisErrorType_SOURCE_NOT_FOUND = AnalysisErrorType' "SOURCE_NOT_FOUND"

{-# COMPLETE
  AnalysisErrorType_ACCESS_DENIED,
  AnalysisErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH,
  AnalysisErrorType_COLUMN_REPLACEMENT_MISSING,
  AnalysisErrorType_COLUMN_TYPE_MISMATCH,
  AnalysisErrorType_DATA_SET_NOT_FOUND,
  AnalysisErrorType_INTERNAL_FAILURE,
  AnalysisErrorType_PARAMETER_NOT_FOUND,
  AnalysisErrorType_PARAMETER_TYPE_INVALID,
  AnalysisErrorType_PARAMETER_VALUE_INCOMPATIBLE,
  AnalysisErrorType_SOURCE_NOT_FOUND,
  AnalysisErrorType'
  #-}