{-# 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.MigrationHubOrchestrator.Types.StepActionType
-- 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.MigrationHubOrchestrator.Types.StepActionType
  ( StepActionType
      ( ..,
        StepActionType_AUTOMATED,
        StepActionType_MANUAL
      ),
  )
where

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

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

pattern StepActionType_AUTOMATED :: StepActionType
pattern $bStepActionType_AUTOMATED :: StepActionType
$mStepActionType_AUTOMATED :: forall {r}. StepActionType -> ((# #) -> r) -> ((# #) -> r) -> r
StepActionType_AUTOMATED = StepActionType' "AUTOMATED"

pattern StepActionType_MANUAL :: StepActionType
pattern $bStepActionType_MANUAL :: StepActionType
$mStepActionType_MANUAL :: forall {r}. StepActionType -> ((# #) -> r) -> ((# #) -> r) -> r
StepActionType_MANUAL = StepActionType' "MANUAL"

{-# COMPLETE
  StepActionType_AUTOMATED,
  StepActionType_MANUAL,
  StepActionType'
  #-}