{-# 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.Config.Types.RecorderStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Config.Types.RecorderStatus
  ( RecorderStatus
      ( ..,
        RecorderStatus_Failure,
        RecorderStatus_Pending,
        RecorderStatus_Success
      ),
  )
where

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

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

pattern RecorderStatus_Failure :: RecorderStatus
pattern $bRecorderStatus_Failure :: RecorderStatus
$mRecorderStatus_Failure :: forall {r}. RecorderStatus -> ((# #) -> r) -> ((# #) -> r) -> r
RecorderStatus_Failure = RecorderStatus' "Failure"

pattern RecorderStatus_Pending :: RecorderStatus
pattern $bRecorderStatus_Pending :: RecorderStatus
$mRecorderStatus_Pending :: forall {r}. RecorderStatus -> ((# #) -> r) -> ((# #) -> r) -> r
RecorderStatus_Pending = RecorderStatus' "Pending"

pattern RecorderStatus_Success :: RecorderStatus
pattern $bRecorderStatus_Success :: RecorderStatus
$mRecorderStatus_Success :: forall {r}. RecorderStatus -> ((# #) -> r) -> ((# #) -> r) -> r
RecorderStatus_Success = RecorderStatus' "Success"

{-# COMPLETE
  RecorderStatus_Failure,
  RecorderStatus_Pending,
  RecorderStatus_Success,
  RecorderStatus'
  #-}