{-# 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.LastLaunchType
-- 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.LastLaunchType
  ( LastLaunchType
      ( ..,
        LastLaunchType_DRILL,
        LastLaunchType_RECOVERY
      ),
  )
where

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

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

pattern LastLaunchType_DRILL :: LastLaunchType
pattern $bLastLaunchType_DRILL :: LastLaunchType
$mLastLaunchType_DRILL :: forall {r}. LastLaunchType -> ((# #) -> r) -> ((# #) -> r) -> r
LastLaunchType_DRILL = LastLaunchType' "DRILL"

pattern LastLaunchType_RECOVERY :: LastLaunchType
pattern $bLastLaunchType_RECOVERY :: LastLaunchType
$mLastLaunchType_RECOVERY :: forall {r}. LastLaunchType -> ((# #) -> r) -> ((# #) -> r) -> r
LastLaunchType_RECOVERY = LastLaunchType' "RECOVERY"

{-# COMPLETE
  LastLaunchType_DRILL,
  LastLaunchType_RECOVERY,
  LastLaunchType'
  #-}