{-# 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.FailbackState
-- 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.FailbackState
  ( FailbackState
      ( ..,
        FailbackState_FAILBACK_COMPLETED,
        FailbackState_FAILBACK_ERROR,
        FailbackState_FAILBACK_IN_PROGRESS,
        FailbackState_FAILBACK_LAUNCH_STATE_NOT_AVAILABLE,
        FailbackState_FAILBACK_NOT_READY_FOR_LAUNCH,
        FailbackState_FAILBACK_NOT_STARTED,
        FailbackState_FAILBACK_READY_FOR_LAUNCH
      ),
  )
where

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

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

pattern FailbackState_FAILBACK_COMPLETED :: FailbackState
pattern $bFailbackState_FAILBACK_COMPLETED :: FailbackState
$mFailbackState_FAILBACK_COMPLETED :: forall {r}. FailbackState -> ((# #) -> r) -> ((# #) -> r) -> r
FailbackState_FAILBACK_COMPLETED = FailbackState' "FAILBACK_COMPLETED"

pattern FailbackState_FAILBACK_ERROR :: FailbackState
pattern $bFailbackState_FAILBACK_ERROR :: FailbackState
$mFailbackState_FAILBACK_ERROR :: forall {r}. FailbackState -> ((# #) -> r) -> ((# #) -> r) -> r
FailbackState_FAILBACK_ERROR = FailbackState' "FAILBACK_ERROR"

pattern FailbackState_FAILBACK_IN_PROGRESS :: FailbackState
pattern $bFailbackState_FAILBACK_IN_PROGRESS :: FailbackState
$mFailbackState_FAILBACK_IN_PROGRESS :: forall {r}. FailbackState -> ((# #) -> r) -> ((# #) -> r) -> r
FailbackState_FAILBACK_IN_PROGRESS = FailbackState' "FAILBACK_IN_PROGRESS"

pattern FailbackState_FAILBACK_LAUNCH_STATE_NOT_AVAILABLE :: FailbackState
pattern $bFailbackState_FAILBACK_LAUNCH_STATE_NOT_AVAILABLE :: FailbackState
$mFailbackState_FAILBACK_LAUNCH_STATE_NOT_AVAILABLE :: forall {r}. FailbackState -> ((# #) -> r) -> ((# #) -> r) -> r
FailbackState_FAILBACK_LAUNCH_STATE_NOT_AVAILABLE = FailbackState' "FAILBACK_LAUNCH_STATE_NOT_AVAILABLE"

pattern FailbackState_FAILBACK_NOT_READY_FOR_LAUNCH :: FailbackState
pattern $bFailbackState_FAILBACK_NOT_READY_FOR_LAUNCH :: FailbackState
$mFailbackState_FAILBACK_NOT_READY_FOR_LAUNCH :: forall {r}. FailbackState -> ((# #) -> r) -> ((# #) -> r) -> r
FailbackState_FAILBACK_NOT_READY_FOR_LAUNCH = FailbackState' "FAILBACK_NOT_READY_FOR_LAUNCH"

pattern FailbackState_FAILBACK_NOT_STARTED :: FailbackState
pattern $bFailbackState_FAILBACK_NOT_STARTED :: FailbackState
$mFailbackState_FAILBACK_NOT_STARTED :: forall {r}. FailbackState -> ((# #) -> r) -> ((# #) -> r) -> r
FailbackState_FAILBACK_NOT_STARTED = FailbackState' "FAILBACK_NOT_STARTED"

pattern FailbackState_FAILBACK_READY_FOR_LAUNCH :: FailbackState
pattern $bFailbackState_FAILBACK_READY_FOR_LAUNCH :: FailbackState
$mFailbackState_FAILBACK_READY_FOR_LAUNCH :: forall {r}. FailbackState -> ((# #) -> r) -> ((# #) -> r) -> r
FailbackState_FAILBACK_READY_FOR_LAUNCH = FailbackState' "FAILBACK_READY_FOR_LAUNCH"

{-# COMPLETE
  FailbackState_FAILBACK_COMPLETED,
  FailbackState_FAILBACK_ERROR,
  FailbackState_FAILBACK_IN_PROGRESS,
  FailbackState_FAILBACK_LAUNCH_STATE_NOT_AVAILABLE,
  FailbackState_FAILBACK_NOT_READY_FOR_LAUNCH,
  FailbackState_FAILBACK_NOT_STARTED,
  FailbackState_FAILBACK_READY_FOR_LAUNCH,
  FailbackState'
  #-}