{-# 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.StageTransitionType
-- 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.CodePipeline.Types.StageTransitionType
  ( StageTransitionType
      ( ..,
        StageTransitionType_Inbound,
        StageTransitionType_Outbound
      ),
  )
where

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

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

pattern StageTransitionType_Inbound :: StageTransitionType
pattern $bStageTransitionType_Inbound :: StageTransitionType
$mStageTransitionType_Inbound :: forall r. StageTransitionType -> (Void# -> r) -> (Void# -> r) -> r
StageTransitionType_Inbound = StageTransitionType' "Inbound"

pattern StageTransitionType_Outbound :: StageTransitionType
pattern $bStageTransitionType_Outbound :: StageTransitionType
$mStageTransitionType_Outbound :: forall r. StageTransitionType -> (Void# -> r) -> (Void# -> r) -> r
StageTransitionType_Outbound = StageTransitionType' "Outbound"

{-# COMPLETE
  StageTransitionType_Inbound,
  StageTransitionType_Outbound,
  StageTransitionType'
  #-}