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

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

newtype FirstBoot = FirstBoot'
  { FirstBoot -> Text
fromFirstBoot ::
      Core.Text
  }
  deriving stock
    ( Int -> FirstBoot -> ShowS
[FirstBoot] -> ShowS
FirstBoot -> String
(Int -> FirstBoot -> ShowS)
-> (FirstBoot -> String)
-> ([FirstBoot] -> ShowS)
-> Show FirstBoot
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]
(Int -> ReadS FirstBoot)
-> ReadS [FirstBoot]
-> ReadPrec FirstBoot
-> ReadPrec [FirstBoot]
-> Read 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
(FirstBoot -> FirstBoot -> Bool)
-> (FirstBoot -> FirstBoot -> Bool) -> Eq FirstBoot
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
Eq FirstBoot
-> (FirstBoot -> FirstBoot -> Ordering)
-> (FirstBoot -> FirstBoot -> Bool)
-> (FirstBoot -> FirstBoot -> Bool)
-> (FirstBoot -> FirstBoot -> Bool)
-> (FirstBoot -> FirstBoot -> Bool)
-> (FirstBoot -> FirstBoot -> FirstBoot)
-> (FirstBoot -> FirstBoot -> FirstBoot)
-> Ord 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
$cp1Ord :: Eq FirstBoot
Prelude.Ord,
      (forall x. FirstBoot -> Rep FirstBoot x)
-> (forall x. Rep FirstBoot x -> FirstBoot) -> Generic FirstBoot
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
    ( Int -> FirstBoot -> Int
FirstBoot -> Int
(Int -> FirstBoot -> Int)
-> (FirstBoot -> Int) -> Hashable FirstBoot
forall 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 -> ()
(FirstBoot -> ()) -> NFData FirstBoot
forall a. (a -> ()) -> NFData a
rnf :: FirstBoot -> ()
$crnf :: FirstBoot -> ()
Prelude.NFData,
      Text -> Either String FirstBoot
(Text -> Either String FirstBoot) -> FromText FirstBoot
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FirstBoot
$cfromText :: Text -> Either String FirstBoot
Core.FromText,
      FirstBoot -> Text
(FirstBoot -> Text) -> ToText FirstBoot
forall a. (a -> Text) -> ToText a
toText :: FirstBoot -> Text
$ctoText :: FirstBoot -> Text
Core.ToText,
      FirstBoot -> ByteString
(FirstBoot -> ByteString) -> ToByteString FirstBoot
forall a. (a -> ByteString) -> ToByteString a
toBS :: FirstBoot -> ByteString
$ctoBS :: FirstBoot -> ByteString
Core.ToByteString,
      FirstBoot -> ByteStringBuilder
(FirstBoot -> ByteStringBuilder) -> ToLog FirstBoot
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FirstBoot -> ByteStringBuilder
$cbuild :: FirstBoot -> ByteStringBuilder
Core.ToLog,
      HeaderName -> FirstBoot -> [Header]
(HeaderName -> FirstBoot -> [Header]) -> ToHeader FirstBoot
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FirstBoot -> [Header]
$ctoHeader :: HeaderName -> FirstBoot -> [Header]
Core.ToHeader,
      FirstBoot -> QueryString
(FirstBoot -> QueryString) -> ToQuery FirstBoot
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FirstBoot -> QueryString
$ctoQuery :: FirstBoot -> QueryString
Core.ToQuery,
      Value -> Parser [FirstBoot]
Value -> Parser FirstBoot
(Value -> Parser FirstBoot)
-> (Value -> Parser [FirstBoot]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [FirstBoot]
FromJSONKeyFunction FirstBoot
FromJSONKeyFunction FirstBoot
-> FromJSONKeyFunction [FirstBoot] -> FromJSONKey FirstBoot
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FirstBoot]
$cfromJSONKeyList :: FromJSONKeyFunction [FirstBoot]
fromJSONKey :: FromJSONKeyFunction FirstBoot
$cfromJSONKey :: FromJSONKeyFunction FirstBoot
Core.FromJSONKey,
      [FirstBoot] -> Encoding
[FirstBoot] -> Value
FirstBoot -> Encoding
FirstBoot -> Value
(FirstBoot -> Value)
-> (FirstBoot -> Encoding)
-> ([FirstBoot] -> Value)
-> ([FirstBoot] -> Encoding)
-> ToJSON FirstBoot
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
Core.ToJSON,
      ToJSONKeyFunction [FirstBoot]
ToJSONKeyFunction FirstBoot
ToJSONKeyFunction FirstBoot
-> ToJSONKeyFunction [FirstBoot] -> ToJSONKey FirstBoot
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FirstBoot]
$ctoJSONKeyList :: ToJSONKeyFunction [FirstBoot]
toJSONKey :: ToJSONKeyFunction FirstBoot
$ctoJSONKey :: ToJSONKeyFunction FirstBoot
Core.ToJSONKey,
      [Node] -> Either String FirstBoot
([Node] -> Either String FirstBoot) -> FromXML FirstBoot
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FirstBoot
$cparseXML :: [Node] -> Either String FirstBoot
Core.FromXML,
      FirstBoot -> XML
(FirstBoot -> XML) -> ToXML FirstBoot
forall a. (a -> XML) -> ToXML a
toXML :: FirstBoot -> XML
$ctoXML :: FirstBoot -> XML
Core.ToXML
    )

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

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

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

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

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