{-# 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.CodeCommit.Types.PullRequestStatusEnum
-- 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.CodeCommit.Types.PullRequestStatusEnum
  ( PullRequestStatusEnum
      ( ..,
        PullRequestStatusEnum_CLOSED,
        PullRequestStatusEnum_OPEN
      ),
  )
where

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

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

pattern PullRequestStatusEnum_CLOSED :: PullRequestStatusEnum
pattern $bPullRequestStatusEnum_CLOSED :: PullRequestStatusEnum
$mPullRequestStatusEnum_CLOSED :: forall r.
PullRequestStatusEnum -> (Void# -> r) -> (Void# -> r) -> r
PullRequestStatusEnum_CLOSED = PullRequestStatusEnum' "CLOSED"

pattern PullRequestStatusEnum_OPEN :: PullRequestStatusEnum
pattern $bPullRequestStatusEnum_OPEN :: PullRequestStatusEnum
$mPullRequestStatusEnum_OPEN :: forall r.
PullRequestStatusEnum -> (Void# -> r) -> (Void# -> r) -> r
PullRequestStatusEnum_OPEN = PullRequestStatusEnum' "OPEN"

{-# COMPLETE
  PullRequestStatusEnum_CLOSED,
  PullRequestStatusEnum_OPEN,
  PullRequestStatusEnum'
  #-}