{-# 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.LaunchProfileValidationState
-- 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.Nimble.Types.LaunchProfileValidationState
  ( LaunchProfileValidationState
      ( ..,
        LaunchProfileValidationState_VALIDATION_FAILED,
        LaunchProfileValidationState_VALIDATION_FAILED_INTERNAL_SERVER_ERROR,
        LaunchProfileValidationState_VALIDATION_IN_PROGRESS,
        LaunchProfileValidationState_VALIDATION_NOT_STARTED,
        LaunchProfileValidationState_VALIDATION_SUCCESS
      ),
  )
where

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

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

pattern LaunchProfileValidationState_VALIDATION_FAILED :: LaunchProfileValidationState
pattern $bLaunchProfileValidationState_VALIDATION_FAILED :: LaunchProfileValidationState
$mLaunchProfileValidationState_VALIDATION_FAILED :: forall {r}.
LaunchProfileValidationState -> ((# #) -> r) -> ((# #) -> r) -> r
LaunchProfileValidationState_VALIDATION_FAILED = LaunchProfileValidationState' "VALIDATION_FAILED"

pattern LaunchProfileValidationState_VALIDATION_FAILED_INTERNAL_SERVER_ERROR :: LaunchProfileValidationState
pattern $bLaunchProfileValidationState_VALIDATION_FAILED_INTERNAL_SERVER_ERROR :: LaunchProfileValidationState
$mLaunchProfileValidationState_VALIDATION_FAILED_INTERNAL_SERVER_ERROR :: forall {r}.
LaunchProfileValidationState -> ((# #) -> r) -> ((# #) -> r) -> r
LaunchProfileValidationState_VALIDATION_FAILED_INTERNAL_SERVER_ERROR = LaunchProfileValidationState' "VALIDATION_FAILED_INTERNAL_SERVER_ERROR"

pattern LaunchProfileValidationState_VALIDATION_IN_PROGRESS :: LaunchProfileValidationState
pattern $bLaunchProfileValidationState_VALIDATION_IN_PROGRESS :: LaunchProfileValidationState
$mLaunchProfileValidationState_VALIDATION_IN_PROGRESS :: forall {r}.
LaunchProfileValidationState -> ((# #) -> r) -> ((# #) -> r) -> r
LaunchProfileValidationState_VALIDATION_IN_PROGRESS = LaunchProfileValidationState' "VALIDATION_IN_PROGRESS"

pattern LaunchProfileValidationState_VALIDATION_NOT_STARTED :: LaunchProfileValidationState
pattern $bLaunchProfileValidationState_VALIDATION_NOT_STARTED :: LaunchProfileValidationState
$mLaunchProfileValidationState_VALIDATION_NOT_STARTED :: forall {r}.
LaunchProfileValidationState -> ((# #) -> r) -> ((# #) -> r) -> r
LaunchProfileValidationState_VALIDATION_NOT_STARTED = LaunchProfileValidationState' "VALIDATION_NOT_STARTED"

pattern LaunchProfileValidationState_VALIDATION_SUCCESS :: LaunchProfileValidationState
pattern $bLaunchProfileValidationState_VALIDATION_SUCCESS :: LaunchProfileValidationState
$mLaunchProfileValidationState_VALIDATION_SUCCESS :: forall {r}.
LaunchProfileValidationState -> ((# #) -> r) -> ((# #) -> r) -> r
LaunchProfileValidationState_VALIDATION_SUCCESS = LaunchProfileValidationState' "VALIDATION_SUCCESS"

{-# COMPLETE
  LaunchProfileValidationState_VALIDATION_FAILED,
  LaunchProfileValidationState_VALIDATION_FAILED_INTERNAL_SERVER_ERROR,
  LaunchProfileValidationState_VALIDATION_IN_PROGRESS,
  LaunchProfileValidationState_VALIDATION_NOT_STARTED,
  LaunchProfileValidationState_VALIDATION_SUCCESS,
  LaunchProfileValidationState'
  #-}