{-# 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-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.Config.Types.RecorderStatus
  ( RecorderStatus
      ( ..,
        RecorderStatus_Failure,
        RecorderStatus_Pending,
        RecorderStatus_Success
      ),
  )
where

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

newtype RecorderStatus = RecorderStatus'
  { RecorderStatus -> Text
fromRecorderStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> RecorderStatus -> ShowS
[RecorderStatus] -> ShowS
RecorderStatus -> String
(Int -> RecorderStatus -> ShowS)
-> (RecorderStatus -> String)
-> ([RecorderStatus] -> ShowS)
-> Show RecorderStatus
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]
(Int -> ReadS RecorderStatus)
-> ReadS [RecorderStatus]
-> ReadPrec RecorderStatus
-> ReadPrec [RecorderStatus]
-> Read 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
(RecorderStatus -> RecorderStatus -> Bool)
-> (RecorderStatus -> RecorderStatus -> Bool) -> Eq RecorderStatus
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
Eq RecorderStatus
-> (RecorderStatus -> RecorderStatus -> Ordering)
-> (RecorderStatus -> RecorderStatus -> Bool)
-> (RecorderStatus -> RecorderStatus -> Bool)
-> (RecorderStatus -> RecorderStatus -> Bool)
-> (RecorderStatus -> RecorderStatus -> Bool)
-> (RecorderStatus -> RecorderStatus -> RecorderStatus)
-> (RecorderStatus -> RecorderStatus -> RecorderStatus)
-> Ord 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
$cp1Ord :: Eq RecorderStatus
Prelude.Ord,
      (forall x. RecorderStatus -> Rep RecorderStatus x)
-> (forall x. Rep RecorderStatus x -> RecorderStatus)
-> Generic RecorderStatus
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
    ( Int -> RecorderStatus -> Int
RecorderStatus -> Int
(Int -> RecorderStatus -> Int)
-> (RecorderStatus -> Int) -> Hashable RecorderStatus
forall 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 -> ()
(RecorderStatus -> ()) -> NFData RecorderStatus
forall a. (a -> ()) -> NFData a
rnf :: RecorderStatus -> ()
$crnf :: RecorderStatus -> ()
Prelude.NFData,
      Text -> Either String RecorderStatus
(Text -> Either String RecorderStatus) -> FromText RecorderStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RecorderStatus
$cfromText :: Text -> Either String RecorderStatus
Core.FromText,
      RecorderStatus -> Text
(RecorderStatus -> Text) -> ToText RecorderStatus
forall a. (a -> Text) -> ToText a
toText :: RecorderStatus -> Text
$ctoText :: RecorderStatus -> Text
Core.ToText,
      RecorderStatus -> ByteString
(RecorderStatus -> ByteString) -> ToByteString RecorderStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: RecorderStatus -> ByteString
$ctoBS :: RecorderStatus -> ByteString
Core.ToByteString,
      RecorderStatus -> ByteStringBuilder
(RecorderStatus -> ByteStringBuilder) -> ToLog RecorderStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RecorderStatus -> ByteStringBuilder
$cbuild :: RecorderStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> RecorderStatus -> [Header]
(HeaderName -> RecorderStatus -> [Header])
-> ToHeader RecorderStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RecorderStatus -> [Header]
$ctoHeader :: HeaderName -> RecorderStatus -> [Header]
Core.ToHeader,
      RecorderStatus -> QueryString
(RecorderStatus -> QueryString) -> ToQuery RecorderStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RecorderStatus -> QueryString
$ctoQuery :: RecorderStatus -> QueryString
Core.ToQuery,
      Value -> Parser [RecorderStatus]
Value -> Parser RecorderStatus
(Value -> Parser RecorderStatus)
-> (Value -> Parser [RecorderStatus]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [RecorderStatus]
FromJSONKeyFunction RecorderStatus
FromJSONKeyFunction RecorderStatus
-> FromJSONKeyFunction [RecorderStatus]
-> FromJSONKey RecorderStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RecorderStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [RecorderStatus]
fromJSONKey :: FromJSONKeyFunction RecorderStatus
$cfromJSONKey :: FromJSONKeyFunction RecorderStatus
Core.FromJSONKey,
      [RecorderStatus] -> Encoding
[RecorderStatus] -> Value
RecorderStatus -> Encoding
RecorderStatus -> Value
(RecorderStatus -> Value)
-> (RecorderStatus -> Encoding)
-> ([RecorderStatus] -> Value)
-> ([RecorderStatus] -> Encoding)
-> ToJSON RecorderStatus
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
Core.ToJSON,
      ToJSONKeyFunction [RecorderStatus]
ToJSONKeyFunction RecorderStatus
ToJSONKeyFunction RecorderStatus
-> ToJSONKeyFunction [RecorderStatus] -> ToJSONKey RecorderStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RecorderStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [RecorderStatus]
toJSONKey :: ToJSONKeyFunction RecorderStatus
$ctoJSONKey :: ToJSONKeyFunction RecorderStatus
Core.ToJSONKey,
      [Node] -> Either String RecorderStatus
([Node] -> Either String RecorderStatus) -> FromXML RecorderStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RecorderStatus
$cparseXML :: [Node] -> Either String RecorderStatus
Core.FromXML,
      RecorderStatus -> XML
(RecorderStatus -> XML) -> ToXML RecorderStatus
forall a. (a -> XML) -> ToXML a
toXML :: RecorderStatus -> XML
$ctoXML :: RecorderStatus -> XML
Core.ToXML
    )

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

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

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

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