{-# 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.Nimble.Types.LaunchProfileState
-- 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.Nimble.Types.LaunchProfileState
  ( LaunchProfileState
      ( ..,
        LaunchProfileState_CREATE_FAILED,
        LaunchProfileState_CREATE_IN_PROGRESS,
        LaunchProfileState_DELETED,
        LaunchProfileState_DELETE_FAILED,
        LaunchProfileState_DELETE_IN_PROGRESS,
        LaunchProfileState_READY,
        LaunchProfileState_UPDATE_FAILED,
        LaunchProfileState_UPDATE_IN_PROGRESS
      ),
  )
where

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

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

pattern LaunchProfileState_CREATE_FAILED :: LaunchProfileState
pattern $bLaunchProfileState_CREATE_FAILED :: LaunchProfileState
$mLaunchProfileState_CREATE_FAILED :: forall r. LaunchProfileState -> (Void# -> r) -> (Void# -> r) -> r
LaunchProfileState_CREATE_FAILED = LaunchProfileState' "CREATE_FAILED"

pattern LaunchProfileState_CREATE_IN_PROGRESS :: LaunchProfileState
pattern $bLaunchProfileState_CREATE_IN_PROGRESS :: LaunchProfileState
$mLaunchProfileState_CREATE_IN_PROGRESS :: forall r. LaunchProfileState -> (Void# -> r) -> (Void# -> r) -> r
LaunchProfileState_CREATE_IN_PROGRESS = LaunchProfileState' "CREATE_IN_PROGRESS"

pattern LaunchProfileState_DELETED :: LaunchProfileState
pattern $bLaunchProfileState_DELETED :: LaunchProfileState
$mLaunchProfileState_DELETED :: forall r. LaunchProfileState -> (Void# -> r) -> (Void# -> r) -> r
LaunchProfileState_DELETED = LaunchProfileState' "DELETED"

pattern LaunchProfileState_DELETE_FAILED :: LaunchProfileState
pattern $bLaunchProfileState_DELETE_FAILED :: LaunchProfileState
$mLaunchProfileState_DELETE_FAILED :: forall r. LaunchProfileState -> (Void# -> r) -> (Void# -> r) -> r
LaunchProfileState_DELETE_FAILED = LaunchProfileState' "DELETE_FAILED"

pattern LaunchProfileState_DELETE_IN_PROGRESS :: LaunchProfileState
pattern $bLaunchProfileState_DELETE_IN_PROGRESS :: LaunchProfileState
$mLaunchProfileState_DELETE_IN_PROGRESS :: forall r. LaunchProfileState -> (Void# -> r) -> (Void# -> r) -> r
LaunchProfileState_DELETE_IN_PROGRESS = LaunchProfileState' "DELETE_IN_PROGRESS"

pattern LaunchProfileState_READY :: LaunchProfileState
pattern $bLaunchProfileState_READY :: LaunchProfileState
$mLaunchProfileState_READY :: forall r. LaunchProfileState -> (Void# -> r) -> (Void# -> r) -> r
LaunchProfileState_READY = LaunchProfileState' "READY"

pattern LaunchProfileState_UPDATE_FAILED :: LaunchProfileState
pattern $bLaunchProfileState_UPDATE_FAILED :: LaunchProfileState
$mLaunchProfileState_UPDATE_FAILED :: forall r. LaunchProfileState -> (Void# -> r) -> (Void# -> r) -> r
LaunchProfileState_UPDATE_FAILED = LaunchProfileState' "UPDATE_FAILED"

pattern LaunchProfileState_UPDATE_IN_PROGRESS :: LaunchProfileState
pattern $bLaunchProfileState_UPDATE_IN_PROGRESS :: LaunchProfileState
$mLaunchProfileState_UPDATE_IN_PROGRESS :: forall r. LaunchProfileState -> (Void# -> r) -> (Void# -> r) -> r
LaunchProfileState_UPDATE_IN_PROGRESS = LaunchProfileState' "UPDATE_IN_PROGRESS"

{-# COMPLETE
  LaunchProfileState_CREATE_FAILED,
  LaunchProfileState_CREATE_IN_PROGRESS,
  LaunchProfileState_DELETED,
  LaunchProfileState_DELETE_FAILED,
  LaunchProfileState_DELETE_IN_PROGRESS,
  LaunchProfileState_READY,
  LaunchProfileState_UPDATE_FAILED,
  LaunchProfileState_UPDATE_IN_PROGRESS,
  LaunchProfileState'
  #-}