{-# 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.Pi.Types.DetailStatus
-- 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.Pi.Types.DetailStatus
  ( DetailStatus
      ( ..,
        DetailStatus_AVAILABLE,
        DetailStatus_PROCESSING,
        DetailStatus_UNAVAILABLE
      ),
  )
where

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

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

pattern DetailStatus_AVAILABLE :: DetailStatus
pattern $bDetailStatus_AVAILABLE :: DetailStatus
$mDetailStatus_AVAILABLE :: forall r. DetailStatus -> (Void# -> r) -> (Void# -> r) -> r
DetailStatus_AVAILABLE = DetailStatus' "AVAILABLE"

pattern DetailStatus_PROCESSING :: DetailStatus
pattern $bDetailStatus_PROCESSING :: DetailStatus
$mDetailStatus_PROCESSING :: forall r. DetailStatus -> (Void# -> r) -> (Void# -> r) -> r
DetailStatus_PROCESSING = DetailStatus' "PROCESSING"

pattern DetailStatus_UNAVAILABLE :: DetailStatus
pattern $bDetailStatus_UNAVAILABLE :: DetailStatus
$mDetailStatus_UNAVAILABLE :: forall r. DetailStatus -> (Void# -> r) -> (Void# -> r) -> r
DetailStatus_UNAVAILABLE = DetailStatus' "UNAVAILABLE"

{-# COMPLETE
  DetailStatus_AVAILABLE,
  DetailStatus_PROCESSING,
  DetailStatus_UNAVAILABLE,
  DetailStatus'
  #-}