{-# 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.SSM.Types.OpsItemStatus
-- 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.SSM.Types.OpsItemStatus
  ( OpsItemStatus
      ( ..,
        OpsItemStatus_Approved,
        OpsItemStatus_Cancelled,
        OpsItemStatus_Cancelling,
        OpsItemStatus_ChangeCalendarOverrideApproved,
        OpsItemStatus_ChangeCalendarOverrideRejected,
        OpsItemStatus_Closed,
        OpsItemStatus_CompletedWithFailure,
        OpsItemStatus_CompletedWithSuccess,
        OpsItemStatus_Failed,
        OpsItemStatus_InProgress,
        OpsItemStatus_Open,
        OpsItemStatus_Pending,
        OpsItemStatus_PendingApproval,
        OpsItemStatus_PendingChangeCalendarOverride,
        OpsItemStatus_Rejected,
        OpsItemStatus_Resolved,
        OpsItemStatus_RunbookInProgress,
        OpsItemStatus_Scheduled,
        OpsItemStatus_TimedOut
      ),
  )
where

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

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

pattern OpsItemStatus_Approved :: OpsItemStatus
pattern $bOpsItemStatus_Approved :: OpsItemStatus
$mOpsItemStatus_Approved :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_Approved = OpsItemStatus' "Approved"

pattern OpsItemStatus_Cancelled :: OpsItemStatus
pattern $bOpsItemStatus_Cancelled :: OpsItemStatus
$mOpsItemStatus_Cancelled :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_Cancelled = OpsItemStatus' "Cancelled"

pattern OpsItemStatus_Cancelling :: OpsItemStatus
pattern $bOpsItemStatus_Cancelling :: OpsItemStatus
$mOpsItemStatus_Cancelling :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_Cancelling = OpsItemStatus' "Cancelling"

pattern OpsItemStatus_ChangeCalendarOverrideApproved :: OpsItemStatus
pattern $bOpsItemStatus_ChangeCalendarOverrideApproved :: OpsItemStatus
$mOpsItemStatus_ChangeCalendarOverrideApproved :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_ChangeCalendarOverrideApproved = OpsItemStatus' "ChangeCalendarOverrideApproved"

pattern OpsItemStatus_ChangeCalendarOverrideRejected :: OpsItemStatus
pattern $bOpsItemStatus_ChangeCalendarOverrideRejected :: OpsItemStatus
$mOpsItemStatus_ChangeCalendarOverrideRejected :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_ChangeCalendarOverrideRejected = OpsItemStatus' "ChangeCalendarOverrideRejected"

pattern OpsItemStatus_Closed :: OpsItemStatus
pattern $bOpsItemStatus_Closed :: OpsItemStatus
$mOpsItemStatus_Closed :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_Closed = OpsItemStatus' "Closed"

pattern OpsItemStatus_CompletedWithFailure :: OpsItemStatus
pattern $bOpsItemStatus_CompletedWithFailure :: OpsItemStatus
$mOpsItemStatus_CompletedWithFailure :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_CompletedWithFailure = OpsItemStatus' "CompletedWithFailure"

pattern OpsItemStatus_CompletedWithSuccess :: OpsItemStatus
pattern $bOpsItemStatus_CompletedWithSuccess :: OpsItemStatus
$mOpsItemStatus_CompletedWithSuccess :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_CompletedWithSuccess = OpsItemStatus' "CompletedWithSuccess"

pattern OpsItemStatus_Failed :: OpsItemStatus
pattern $bOpsItemStatus_Failed :: OpsItemStatus
$mOpsItemStatus_Failed :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_Failed = OpsItemStatus' "Failed"

pattern OpsItemStatus_InProgress :: OpsItemStatus
pattern $bOpsItemStatus_InProgress :: OpsItemStatus
$mOpsItemStatus_InProgress :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_InProgress = OpsItemStatus' "InProgress"

pattern OpsItemStatus_Open :: OpsItemStatus
pattern $bOpsItemStatus_Open :: OpsItemStatus
$mOpsItemStatus_Open :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_Open = OpsItemStatus' "Open"

pattern OpsItemStatus_Pending :: OpsItemStatus
pattern $bOpsItemStatus_Pending :: OpsItemStatus
$mOpsItemStatus_Pending :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_Pending = OpsItemStatus' "Pending"

pattern OpsItemStatus_PendingApproval :: OpsItemStatus
pattern $bOpsItemStatus_PendingApproval :: OpsItemStatus
$mOpsItemStatus_PendingApproval :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_PendingApproval = OpsItemStatus' "PendingApproval"

pattern OpsItemStatus_PendingChangeCalendarOverride :: OpsItemStatus
pattern $bOpsItemStatus_PendingChangeCalendarOverride :: OpsItemStatus
$mOpsItemStatus_PendingChangeCalendarOverride :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_PendingChangeCalendarOverride = OpsItemStatus' "PendingChangeCalendarOverride"

pattern OpsItemStatus_Rejected :: OpsItemStatus
pattern $bOpsItemStatus_Rejected :: OpsItemStatus
$mOpsItemStatus_Rejected :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_Rejected = OpsItemStatus' "Rejected"

pattern OpsItemStatus_Resolved :: OpsItemStatus
pattern $bOpsItemStatus_Resolved :: OpsItemStatus
$mOpsItemStatus_Resolved :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_Resolved = OpsItemStatus' "Resolved"

pattern OpsItemStatus_RunbookInProgress :: OpsItemStatus
pattern $bOpsItemStatus_RunbookInProgress :: OpsItemStatus
$mOpsItemStatus_RunbookInProgress :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_RunbookInProgress = OpsItemStatus' "RunbookInProgress"

pattern OpsItemStatus_Scheduled :: OpsItemStatus
pattern $bOpsItemStatus_Scheduled :: OpsItemStatus
$mOpsItemStatus_Scheduled :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_Scheduled = OpsItemStatus' "Scheduled"

pattern OpsItemStatus_TimedOut :: OpsItemStatus
pattern $bOpsItemStatus_TimedOut :: OpsItemStatus
$mOpsItemStatus_TimedOut :: forall r. OpsItemStatus -> (Void# -> r) -> (Void# -> r) -> r
OpsItemStatus_TimedOut = OpsItemStatus' "TimedOut"

{-# COMPLETE
  OpsItemStatus_Approved,
  OpsItemStatus_Cancelled,
  OpsItemStatus_Cancelling,
  OpsItemStatus_ChangeCalendarOverrideApproved,
  OpsItemStatus_ChangeCalendarOverrideRejected,
  OpsItemStatus_Closed,
  OpsItemStatus_CompletedWithFailure,
  OpsItemStatus_CompletedWithSuccess,
  OpsItemStatus_Failed,
  OpsItemStatus_InProgress,
  OpsItemStatus_Open,
  OpsItemStatus_Pending,
  OpsItemStatus_PendingApproval,
  OpsItemStatus_PendingChangeCalendarOverride,
  OpsItemStatus_Rejected,
  OpsItemStatus_Resolved,
  OpsItemStatus_RunbookInProgress,
  OpsItemStatus_Scheduled,
  OpsItemStatus_TimedOut,
  OpsItemStatus'
  #-}