{-# 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.AlexaBusiness.Types.BusinessReportFailureCode
-- 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.AlexaBusiness.Types.BusinessReportFailureCode
  ( BusinessReportFailureCode
      ( ..,
        BusinessReportFailureCode_ACCESS_DENIED,
        BusinessReportFailureCode_INTERNAL_FAILURE,
        BusinessReportFailureCode_NO_SUCH_BUCKET
      ),
  )
where

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

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

pattern BusinessReportFailureCode_ACCESS_DENIED :: BusinessReportFailureCode
pattern $bBusinessReportFailureCode_ACCESS_DENIED :: BusinessReportFailureCode
$mBusinessReportFailureCode_ACCESS_DENIED :: forall r.
BusinessReportFailureCode -> (Void# -> r) -> (Void# -> r) -> r
BusinessReportFailureCode_ACCESS_DENIED = BusinessReportFailureCode' "ACCESS_DENIED"

pattern BusinessReportFailureCode_INTERNAL_FAILURE :: BusinessReportFailureCode
pattern $bBusinessReportFailureCode_INTERNAL_FAILURE :: BusinessReportFailureCode
$mBusinessReportFailureCode_INTERNAL_FAILURE :: forall r.
BusinessReportFailureCode -> (Void# -> r) -> (Void# -> r) -> r
BusinessReportFailureCode_INTERNAL_FAILURE = BusinessReportFailureCode' "INTERNAL_FAILURE"

pattern BusinessReportFailureCode_NO_SUCH_BUCKET :: BusinessReportFailureCode
pattern $bBusinessReportFailureCode_NO_SUCH_BUCKET :: BusinessReportFailureCode
$mBusinessReportFailureCode_NO_SUCH_BUCKET :: forall r.
BusinessReportFailureCode -> (Void# -> r) -> (Void# -> r) -> r
BusinessReportFailureCode_NO_SUCH_BUCKET = BusinessReportFailureCode' "NO_SUCH_BUCKET"

{-# COMPLETE
  BusinessReportFailureCode_ACCESS_DENIED,
  BusinessReportFailureCode_INTERNAL_FAILURE,
  BusinessReportFailureCode_NO_SUCH_BUCKET,
  BusinessReportFailureCode'
  #-}