{-# 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.Transfer.Types.CustomStepStatus
-- 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.Transfer.Types.CustomStepStatus
  ( CustomStepStatus
      ( ..,
        CustomStepStatus_FAILURE,
        CustomStepStatus_SUCCESS
      ),
  )
where

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

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

pattern CustomStepStatus_FAILURE :: CustomStepStatus
pattern $bCustomStepStatus_FAILURE :: CustomStepStatus
$mCustomStepStatus_FAILURE :: forall r. CustomStepStatus -> (Void# -> r) -> (Void# -> r) -> r
CustomStepStatus_FAILURE = CustomStepStatus' "FAILURE"

pattern CustomStepStatus_SUCCESS :: CustomStepStatus
pattern $bCustomStepStatus_SUCCESS :: CustomStepStatus
$mCustomStepStatus_SUCCESS :: forall r. CustomStepStatus -> (Void# -> r) -> (Void# -> r) -> r
CustomStepStatus_SUCCESS = CustomStepStatus' "SUCCESS"

{-# COMPLETE
  CustomStepStatus_FAILURE,
  CustomStepStatus_SUCCESS,
  CustomStepStatus'
  #-}