{-# 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.CodePipeline.Types.ApprovalStatus
-- 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.CodePipeline.Types.ApprovalStatus
  ( ApprovalStatus
      ( ..,
        ApprovalStatus_Approved,
        ApprovalStatus_Rejected
      ),
  )
where

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

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

pattern ApprovalStatus_Approved :: ApprovalStatus
pattern $bApprovalStatus_Approved :: ApprovalStatus
$mApprovalStatus_Approved :: forall {r}. ApprovalStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ApprovalStatus_Approved = ApprovalStatus' "Approved"

pattern ApprovalStatus_Rejected :: ApprovalStatus
pattern $bApprovalStatus_Rejected :: ApprovalStatus
$mApprovalStatus_Rejected :: forall {r}. ApprovalStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ApprovalStatus_Rejected = ApprovalStatus' "Rejected"

{-# COMPLETE
  ApprovalStatus_Approved,
  ApprovalStatus_Rejected,
  ApprovalStatus'
  #-}