{-# 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.DrS.Types.LastLaunchResult
-- 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.DrS.Types.LastLaunchResult
  ( LastLaunchResult
      ( ..,
        LastLaunchResult_FAILED,
        LastLaunchResult_NOT_STARTED,
        LastLaunchResult_PENDING,
        LastLaunchResult_SUCCEEDED
      ),
  )
where

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

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

pattern LastLaunchResult_FAILED :: LastLaunchResult
pattern $bLastLaunchResult_FAILED :: LastLaunchResult
$mLastLaunchResult_FAILED :: forall {r}. LastLaunchResult -> ((# #) -> r) -> ((# #) -> r) -> r
LastLaunchResult_FAILED = LastLaunchResult' "FAILED"

pattern LastLaunchResult_NOT_STARTED :: LastLaunchResult
pattern $bLastLaunchResult_NOT_STARTED :: LastLaunchResult
$mLastLaunchResult_NOT_STARTED :: forall {r}. LastLaunchResult -> ((# #) -> r) -> ((# #) -> r) -> r
LastLaunchResult_NOT_STARTED = LastLaunchResult' "NOT_STARTED"

pattern LastLaunchResult_PENDING :: LastLaunchResult
pattern $bLastLaunchResult_PENDING :: LastLaunchResult
$mLastLaunchResult_PENDING :: forall {r}. LastLaunchResult -> ((# #) -> r) -> ((# #) -> r) -> r
LastLaunchResult_PENDING = LastLaunchResult' "PENDING"

pattern LastLaunchResult_SUCCEEDED :: LastLaunchResult
pattern $bLastLaunchResult_SUCCEEDED :: LastLaunchResult
$mLastLaunchResult_SUCCEEDED :: forall {r}. LastLaunchResult -> ((# #) -> r) -> ((# #) -> r) -> r
LastLaunchResult_SUCCEEDED = LastLaunchResult' "SUCCEEDED"

{-# COMPLETE
  LastLaunchResult_FAILED,
  LastLaunchResult_NOT_STARTED,
  LastLaunchResult_PENDING,
  LastLaunchResult_SUCCEEDED,
  LastLaunchResult'
  #-}