{-# 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.SSMIncidents.Types.IncidentRecordStatus
-- 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.SSMIncidents.Types.IncidentRecordStatus
  ( IncidentRecordStatus
      ( ..,
        IncidentRecordStatus_OPEN,
        IncidentRecordStatus_RESOLVED
      ),
  )
where

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

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

pattern IncidentRecordStatus_OPEN :: IncidentRecordStatus
pattern $bIncidentRecordStatus_OPEN :: IncidentRecordStatus
$mIncidentRecordStatus_OPEN :: forall {r}.
IncidentRecordStatus -> ((# #) -> r) -> ((# #) -> r) -> r
IncidentRecordStatus_OPEN = IncidentRecordStatus' "OPEN"

pattern IncidentRecordStatus_RESOLVED :: IncidentRecordStatus
pattern $bIncidentRecordStatus_RESOLVED :: IncidentRecordStatus
$mIncidentRecordStatus_RESOLVED :: forall {r}.
IncidentRecordStatus -> ((# #) -> r) -> ((# #) -> r) -> r
IncidentRecordStatus_RESOLVED = IncidentRecordStatus' "RESOLVED"

{-# COMPLETE
  IncidentRecordStatus_OPEN,
  IncidentRecordStatus_RESOLVED,
  IncidentRecordStatus'
  #-}