{-# 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.NamespaceErrorType
-- 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.NamespaceErrorType
  ( NamespaceErrorType
      ( ..,
        NamespaceErrorType_INTERNAL_SERVICE_ERROR,
        NamespaceErrorType_PERMISSION_DENIED
      ),
  )
where

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

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

pattern NamespaceErrorType_INTERNAL_SERVICE_ERROR :: NamespaceErrorType
pattern $bNamespaceErrorType_INTERNAL_SERVICE_ERROR :: NamespaceErrorType
$mNamespaceErrorType_INTERNAL_SERVICE_ERROR :: forall r. NamespaceErrorType -> (Void# -> r) -> (Void# -> r) -> r
NamespaceErrorType_INTERNAL_SERVICE_ERROR = NamespaceErrorType' "INTERNAL_SERVICE_ERROR"

pattern NamespaceErrorType_PERMISSION_DENIED :: NamespaceErrorType
pattern $bNamespaceErrorType_PERMISSION_DENIED :: NamespaceErrorType
$mNamespaceErrorType_PERMISSION_DENIED :: forall r. NamespaceErrorType -> (Void# -> r) -> (Void# -> r) -> r
NamespaceErrorType_PERMISSION_DENIED = NamespaceErrorType' "PERMISSION_DENIED"

{-# COMPLETE
  NamespaceErrorType_INTERNAL_SERVICE_ERROR,
  NamespaceErrorType_PERMISSION_DENIED,
  NamespaceErrorType'
  #-}