{-# 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.EC2.Types.PrefixListState
-- 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.EC2.Types.PrefixListState
  ( PrefixListState
      ( ..,
        PrefixListState_Create_complete,
        PrefixListState_Create_failed,
        PrefixListState_Create_in_progress,
        PrefixListState_Delete_complete,
        PrefixListState_Delete_failed,
        PrefixListState_Delete_in_progress,
        PrefixListState_Modify_complete,
        PrefixListState_Modify_failed,
        PrefixListState_Modify_in_progress,
        PrefixListState_Restore_complete,
        PrefixListState_Restore_failed,
        PrefixListState_Restore_in_progress
      ),
  )
where

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

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

pattern PrefixListState_Create_complete :: PrefixListState
pattern $bPrefixListState_Create_complete :: PrefixListState
$mPrefixListState_Create_complete :: forall {r}. PrefixListState -> ((# #) -> r) -> ((# #) -> r) -> r
PrefixListState_Create_complete = PrefixListState' "create-complete"

pattern PrefixListState_Create_failed :: PrefixListState
pattern $bPrefixListState_Create_failed :: PrefixListState
$mPrefixListState_Create_failed :: forall {r}. PrefixListState -> ((# #) -> r) -> ((# #) -> r) -> r
PrefixListState_Create_failed = PrefixListState' "create-failed"

pattern PrefixListState_Create_in_progress :: PrefixListState
pattern $bPrefixListState_Create_in_progress :: PrefixListState
$mPrefixListState_Create_in_progress :: forall {r}. PrefixListState -> ((# #) -> r) -> ((# #) -> r) -> r
PrefixListState_Create_in_progress = PrefixListState' "create-in-progress"

pattern PrefixListState_Delete_complete :: PrefixListState
pattern $bPrefixListState_Delete_complete :: PrefixListState
$mPrefixListState_Delete_complete :: forall {r}. PrefixListState -> ((# #) -> r) -> ((# #) -> r) -> r
PrefixListState_Delete_complete = PrefixListState' "delete-complete"

pattern PrefixListState_Delete_failed :: PrefixListState
pattern $bPrefixListState_Delete_failed :: PrefixListState
$mPrefixListState_Delete_failed :: forall {r}. PrefixListState -> ((# #) -> r) -> ((# #) -> r) -> r
PrefixListState_Delete_failed = PrefixListState' "delete-failed"

pattern PrefixListState_Delete_in_progress :: PrefixListState
pattern $bPrefixListState_Delete_in_progress :: PrefixListState
$mPrefixListState_Delete_in_progress :: forall {r}. PrefixListState -> ((# #) -> r) -> ((# #) -> r) -> r
PrefixListState_Delete_in_progress = PrefixListState' "delete-in-progress"

pattern PrefixListState_Modify_complete :: PrefixListState
pattern $bPrefixListState_Modify_complete :: PrefixListState
$mPrefixListState_Modify_complete :: forall {r}. PrefixListState -> ((# #) -> r) -> ((# #) -> r) -> r
PrefixListState_Modify_complete = PrefixListState' "modify-complete"

pattern PrefixListState_Modify_failed :: PrefixListState
pattern $bPrefixListState_Modify_failed :: PrefixListState
$mPrefixListState_Modify_failed :: forall {r}. PrefixListState -> ((# #) -> r) -> ((# #) -> r) -> r
PrefixListState_Modify_failed = PrefixListState' "modify-failed"

pattern PrefixListState_Modify_in_progress :: PrefixListState
pattern $bPrefixListState_Modify_in_progress :: PrefixListState
$mPrefixListState_Modify_in_progress :: forall {r}. PrefixListState -> ((# #) -> r) -> ((# #) -> r) -> r
PrefixListState_Modify_in_progress = PrefixListState' "modify-in-progress"

pattern PrefixListState_Restore_complete :: PrefixListState
pattern $bPrefixListState_Restore_complete :: PrefixListState
$mPrefixListState_Restore_complete :: forall {r}. PrefixListState -> ((# #) -> r) -> ((# #) -> r) -> r
PrefixListState_Restore_complete = PrefixListState' "restore-complete"

pattern PrefixListState_Restore_failed :: PrefixListState
pattern $bPrefixListState_Restore_failed :: PrefixListState
$mPrefixListState_Restore_failed :: forall {r}. PrefixListState -> ((# #) -> r) -> ((# #) -> r) -> r
PrefixListState_Restore_failed = PrefixListState' "restore-failed"

pattern PrefixListState_Restore_in_progress :: PrefixListState
pattern $bPrefixListState_Restore_in_progress :: PrefixListState
$mPrefixListState_Restore_in_progress :: forall {r}. PrefixListState -> ((# #) -> r) -> ((# #) -> r) -> r
PrefixListState_Restore_in_progress = PrefixListState' "restore-in-progress"

{-# COMPLETE
  PrefixListState_Create_complete,
  PrefixListState_Create_failed,
  PrefixListState_Create_in_progress,
  PrefixListState_Delete_complete,
  PrefixListState_Delete_failed,
  PrefixListState_Delete_in_progress,
  PrefixListState_Modify_complete,
  PrefixListState_Modify_failed,
  PrefixListState_Modify_in_progress,
  PrefixListState_Restore_complete,
  PrefixListState_Restore_failed,
  PrefixListState_Restore_in_progress,
  PrefixListState'
  #-}