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

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

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

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

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

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