{-# 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.MGN.Types.FirstBoot
-- 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.MGN.Types.FirstBoot
  ( FirstBoot
      ( ..,
        FirstBoot_STOPPED,
        FirstBoot_SUCCEEDED,
        FirstBoot_UNKNOWN,
        FirstBoot_WAITING
      ),
  )
where

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

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

pattern FirstBoot_STOPPED :: FirstBoot
pattern $bFirstBoot_STOPPED :: FirstBoot
$mFirstBoot_STOPPED :: forall {r}. FirstBoot -> ((# #) -> r) -> ((# #) -> r) -> r
FirstBoot_STOPPED = FirstBoot' "STOPPED"

pattern FirstBoot_SUCCEEDED :: FirstBoot
pattern $bFirstBoot_SUCCEEDED :: FirstBoot
$mFirstBoot_SUCCEEDED :: forall {r}. FirstBoot -> ((# #) -> r) -> ((# #) -> r) -> r
FirstBoot_SUCCEEDED = FirstBoot' "SUCCEEDED"

pattern FirstBoot_UNKNOWN :: FirstBoot
pattern $bFirstBoot_UNKNOWN :: FirstBoot
$mFirstBoot_UNKNOWN :: forall {r}. FirstBoot -> ((# #) -> r) -> ((# #) -> r) -> r
FirstBoot_UNKNOWN = FirstBoot' "UNKNOWN"

pattern FirstBoot_WAITING :: FirstBoot
pattern $bFirstBoot_WAITING :: FirstBoot
$mFirstBoot_WAITING :: forall {r}. FirstBoot -> ((# #) -> r) -> ((# #) -> r) -> r
FirstBoot_WAITING = FirstBoot' "WAITING"

{-# COMPLETE
  FirstBoot_STOPPED,
  FirstBoot_SUCCEEDED,
  FirstBoot_UNKNOWN,
  FirstBoot_WAITING,
  FirstBoot'
  #-}