{-# 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.DocumentReviewAction
-- 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.SSM.Types.DocumentReviewAction
  ( DocumentReviewAction
      ( ..,
        DocumentReviewAction_Approve,
        DocumentReviewAction_Reject,
        DocumentReviewAction_SendForReview,
        DocumentReviewAction_UpdateReview
      ),
  )
where

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

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

pattern DocumentReviewAction_Approve :: DocumentReviewAction
pattern $bDocumentReviewAction_Approve :: DocumentReviewAction
$mDocumentReviewAction_Approve :: forall {r}.
DocumentReviewAction -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentReviewAction_Approve = DocumentReviewAction' "Approve"

pattern DocumentReviewAction_Reject :: DocumentReviewAction
pattern $bDocumentReviewAction_Reject :: DocumentReviewAction
$mDocumentReviewAction_Reject :: forall {r}.
DocumentReviewAction -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentReviewAction_Reject = DocumentReviewAction' "Reject"

pattern DocumentReviewAction_SendForReview :: DocumentReviewAction
pattern $bDocumentReviewAction_SendForReview :: DocumentReviewAction
$mDocumentReviewAction_SendForReview :: forall {r}.
DocumentReviewAction -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentReviewAction_SendForReview = DocumentReviewAction' "SendForReview"

pattern DocumentReviewAction_UpdateReview :: DocumentReviewAction
pattern $bDocumentReviewAction_UpdateReview :: DocumentReviewAction
$mDocumentReviewAction_UpdateReview :: forall {r}.
DocumentReviewAction -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentReviewAction_UpdateReview = DocumentReviewAction' "UpdateReview"

{-# COMPLETE
  DocumentReviewAction_Approve,
  DocumentReviewAction_Reject,
  DocumentReviewAction_SendForReview,
  DocumentReviewAction_UpdateReview,
  DocumentReviewAction'
  #-}