{-# 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.DashboardErrorType
-- 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.DashboardErrorType
  ( DashboardErrorType
      ( ..,
        DashboardErrorType_ACCESS_DENIED,
        DashboardErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH,
        DashboardErrorType_COLUMN_REPLACEMENT_MISSING,
        DashboardErrorType_COLUMN_TYPE_MISMATCH,
        DashboardErrorType_DATA_SET_NOT_FOUND,
        DashboardErrorType_INTERNAL_FAILURE,
        DashboardErrorType_PARAMETER_NOT_FOUND,
        DashboardErrorType_PARAMETER_TYPE_INVALID,
        DashboardErrorType_PARAMETER_VALUE_INCOMPATIBLE,
        DashboardErrorType_SOURCE_NOT_FOUND
      ),
  )
where

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

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

pattern DashboardErrorType_ACCESS_DENIED :: DashboardErrorType
pattern $bDashboardErrorType_ACCESS_DENIED :: DashboardErrorType
$mDashboardErrorType_ACCESS_DENIED :: forall r. DashboardErrorType -> (Void# -> r) -> (Void# -> r) -> r
DashboardErrorType_ACCESS_DENIED = DashboardErrorType' "ACCESS_DENIED"

pattern DashboardErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH :: DashboardErrorType
pattern $bDashboardErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH :: DashboardErrorType
$mDashboardErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH :: forall r. DashboardErrorType -> (Void# -> r) -> (Void# -> r) -> r
DashboardErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH = DashboardErrorType' "COLUMN_GEOGRAPHIC_ROLE_MISMATCH"

pattern DashboardErrorType_COLUMN_REPLACEMENT_MISSING :: DashboardErrorType
pattern $bDashboardErrorType_COLUMN_REPLACEMENT_MISSING :: DashboardErrorType
$mDashboardErrorType_COLUMN_REPLACEMENT_MISSING :: forall r. DashboardErrorType -> (Void# -> r) -> (Void# -> r) -> r
DashboardErrorType_COLUMN_REPLACEMENT_MISSING = DashboardErrorType' "COLUMN_REPLACEMENT_MISSING"

pattern DashboardErrorType_COLUMN_TYPE_MISMATCH :: DashboardErrorType
pattern $bDashboardErrorType_COLUMN_TYPE_MISMATCH :: DashboardErrorType
$mDashboardErrorType_COLUMN_TYPE_MISMATCH :: forall r. DashboardErrorType -> (Void# -> r) -> (Void# -> r) -> r
DashboardErrorType_COLUMN_TYPE_MISMATCH = DashboardErrorType' "COLUMN_TYPE_MISMATCH"

pattern DashboardErrorType_DATA_SET_NOT_FOUND :: DashboardErrorType
pattern $bDashboardErrorType_DATA_SET_NOT_FOUND :: DashboardErrorType
$mDashboardErrorType_DATA_SET_NOT_FOUND :: forall r. DashboardErrorType -> (Void# -> r) -> (Void# -> r) -> r
DashboardErrorType_DATA_SET_NOT_FOUND = DashboardErrorType' "DATA_SET_NOT_FOUND"

pattern DashboardErrorType_INTERNAL_FAILURE :: DashboardErrorType
pattern $bDashboardErrorType_INTERNAL_FAILURE :: DashboardErrorType
$mDashboardErrorType_INTERNAL_FAILURE :: forall r. DashboardErrorType -> (Void# -> r) -> (Void# -> r) -> r
DashboardErrorType_INTERNAL_FAILURE = DashboardErrorType' "INTERNAL_FAILURE"

pattern DashboardErrorType_PARAMETER_NOT_FOUND :: DashboardErrorType
pattern $bDashboardErrorType_PARAMETER_NOT_FOUND :: DashboardErrorType
$mDashboardErrorType_PARAMETER_NOT_FOUND :: forall r. DashboardErrorType -> (Void# -> r) -> (Void# -> r) -> r
DashboardErrorType_PARAMETER_NOT_FOUND = DashboardErrorType' "PARAMETER_NOT_FOUND"

pattern DashboardErrorType_PARAMETER_TYPE_INVALID :: DashboardErrorType
pattern $bDashboardErrorType_PARAMETER_TYPE_INVALID :: DashboardErrorType
$mDashboardErrorType_PARAMETER_TYPE_INVALID :: forall r. DashboardErrorType -> (Void# -> r) -> (Void# -> r) -> r
DashboardErrorType_PARAMETER_TYPE_INVALID = DashboardErrorType' "PARAMETER_TYPE_INVALID"

pattern DashboardErrorType_PARAMETER_VALUE_INCOMPATIBLE :: DashboardErrorType
pattern $bDashboardErrorType_PARAMETER_VALUE_INCOMPATIBLE :: DashboardErrorType
$mDashboardErrorType_PARAMETER_VALUE_INCOMPATIBLE :: forall r. DashboardErrorType -> (Void# -> r) -> (Void# -> r) -> r
DashboardErrorType_PARAMETER_VALUE_INCOMPATIBLE = DashboardErrorType' "PARAMETER_VALUE_INCOMPATIBLE"

pattern DashboardErrorType_SOURCE_NOT_FOUND :: DashboardErrorType
pattern $bDashboardErrorType_SOURCE_NOT_FOUND :: DashboardErrorType
$mDashboardErrorType_SOURCE_NOT_FOUND :: forall r. DashboardErrorType -> (Void# -> r) -> (Void# -> r) -> r
DashboardErrorType_SOURCE_NOT_FOUND = DashboardErrorType' "SOURCE_NOT_FOUND"

{-# COMPLETE
  DashboardErrorType_ACCESS_DENIED,
  DashboardErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH,
  DashboardErrorType_COLUMN_REPLACEMENT_MISSING,
  DashboardErrorType_COLUMN_TYPE_MISMATCH,
  DashboardErrorType_DATA_SET_NOT_FOUND,
  DashboardErrorType_INTERNAL_FAILURE,
  DashboardErrorType_PARAMETER_NOT_FOUND,
  DashboardErrorType_PARAMETER_TYPE_INVALID,
  DashboardErrorType_PARAMETER_VALUE_INCOMPATIBLE,
  DashboardErrorType_SOURCE_NOT_FOUND,
  DashboardErrorType'
  #-}