{-# 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.RobOMaker.Types.RobotDeploymentStep
-- 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.RobOMaker.Types.RobotDeploymentStep
  ( RobotDeploymentStep
      ( ..,
        RobotDeploymentStep_DownloadingExtracting,
        RobotDeploymentStep_ExecutingDownloadCondition,
        RobotDeploymentStep_ExecutingPostLaunch,
        RobotDeploymentStep_ExecutingPreLaunch,
        RobotDeploymentStep_Finished,
        RobotDeploymentStep_Launching,
        RobotDeploymentStep_Validating
      ),
  )
where

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

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

pattern RobotDeploymentStep_DownloadingExtracting :: RobotDeploymentStep
pattern $bRobotDeploymentStep_DownloadingExtracting :: RobotDeploymentStep
$mRobotDeploymentStep_DownloadingExtracting :: forall r. RobotDeploymentStep -> (Void# -> r) -> (Void# -> r) -> r
RobotDeploymentStep_DownloadingExtracting = RobotDeploymentStep' "DownloadingExtracting"

pattern RobotDeploymentStep_ExecutingDownloadCondition :: RobotDeploymentStep
pattern $bRobotDeploymentStep_ExecutingDownloadCondition :: RobotDeploymentStep
$mRobotDeploymentStep_ExecutingDownloadCondition :: forall r. RobotDeploymentStep -> (Void# -> r) -> (Void# -> r) -> r
RobotDeploymentStep_ExecutingDownloadCondition = RobotDeploymentStep' "ExecutingDownloadCondition"

pattern RobotDeploymentStep_ExecutingPostLaunch :: RobotDeploymentStep
pattern $bRobotDeploymentStep_ExecutingPostLaunch :: RobotDeploymentStep
$mRobotDeploymentStep_ExecutingPostLaunch :: forall r. RobotDeploymentStep -> (Void# -> r) -> (Void# -> r) -> r
RobotDeploymentStep_ExecutingPostLaunch = RobotDeploymentStep' "ExecutingPostLaunch"

pattern RobotDeploymentStep_ExecutingPreLaunch :: RobotDeploymentStep
pattern $bRobotDeploymentStep_ExecutingPreLaunch :: RobotDeploymentStep
$mRobotDeploymentStep_ExecutingPreLaunch :: forall r. RobotDeploymentStep -> (Void# -> r) -> (Void# -> r) -> r
RobotDeploymentStep_ExecutingPreLaunch = RobotDeploymentStep' "ExecutingPreLaunch"

pattern RobotDeploymentStep_Finished :: RobotDeploymentStep
pattern $bRobotDeploymentStep_Finished :: RobotDeploymentStep
$mRobotDeploymentStep_Finished :: forall r. RobotDeploymentStep -> (Void# -> r) -> (Void# -> r) -> r
RobotDeploymentStep_Finished = RobotDeploymentStep' "Finished"

pattern RobotDeploymentStep_Launching :: RobotDeploymentStep
pattern $bRobotDeploymentStep_Launching :: RobotDeploymentStep
$mRobotDeploymentStep_Launching :: forall r. RobotDeploymentStep -> (Void# -> r) -> (Void# -> r) -> r
RobotDeploymentStep_Launching = RobotDeploymentStep' "Launching"

pattern RobotDeploymentStep_Validating :: RobotDeploymentStep
pattern $bRobotDeploymentStep_Validating :: RobotDeploymentStep
$mRobotDeploymentStep_Validating :: forall r. RobotDeploymentStep -> (Void# -> r) -> (Void# -> r) -> r
RobotDeploymentStep_Validating = RobotDeploymentStep' "Validating"

{-# COMPLETE
  RobotDeploymentStep_DownloadingExtracting,
  RobotDeploymentStep_ExecutingDownloadCondition,
  RobotDeploymentStep_ExecutingPostLaunch,
  RobotDeploymentStep_ExecutingPreLaunch,
  RobotDeploymentStep_Finished,
  RobotDeploymentStep_Launching,
  RobotDeploymentStep_Validating,
  RobotDeploymentStep'
  #-}