{-# 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.Redshift.Types.ReservedNodeExchangeStatusType
-- 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.Redshift.Types.ReservedNodeExchangeStatusType
  ( ReservedNodeExchangeStatusType
      ( ..,
        ReservedNodeExchangeStatusType_FAILED,
        ReservedNodeExchangeStatusType_IN_PROGRESS,
        ReservedNodeExchangeStatusType_PENDING,
        ReservedNodeExchangeStatusType_REQUESTED,
        ReservedNodeExchangeStatusType_RETRYING,
        ReservedNodeExchangeStatusType_SUCCEEDED
      ),
  )
where

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

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

pattern ReservedNodeExchangeStatusType_FAILED :: ReservedNodeExchangeStatusType
pattern $bReservedNodeExchangeStatusType_FAILED :: ReservedNodeExchangeStatusType
$mReservedNodeExchangeStatusType_FAILED :: forall {r}.
ReservedNodeExchangeStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ReservedNodeExchangeStatusType_FAILED = ReservedNodeExchangeStatusType' "FAILED"

pattern ReservedNodeExchangeStatusType_IN_PROGRESS :: ReservedNodeExchangeStatusType
pattern $bReservedNodeExchangeStatusType_IN_PROGRESS :: ReservedNodeExchangeStatusType
$mReservedNodeExchangeStatusType_IN_PROGRESS :: forall {r}.
ReservedNodeExchangeStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ReservedNodeExchangeStatusType_IN_PROGRESS = ReservedNodeExchangeStatusType' "IN_PROGRESS"

pattern ReservedNodeExchangeStatusType_PENDING :: ReservedNodeExchangeStatusType
pattern $bReservedNodeExchangeStatusType_PENDING :: ReservedNodeExchangeStatusType
$mReservedNodeExchangeStatusType_PENDING :: forall {r}.
ReservedNodeExchangeStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ReservedNodeExchangeStatusType_PENDING = ReservedNodeExchangeStatusType' "PENDING"

pattern ReservedNodeExchangeStatusType_REQUESTED :: ReservedNodeExchangeStatusType
pattern $bReservedNodeExchangeStatusType_REQUESTED :: ReservedNodeExchangeStatusType
$mReservedNodeExchangeStatusType_REQUESTED :: forall {r}.
ReservedNodeExchangeStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ReservedNodeExchangeStatusType_REQUESTED = ReservedNodeExchangeStatusType' "REQUESTED"

pattern ReservedNodeExchangeStatusType_RETRYING :: ReservedNodeExchangeStatusType
pattern $bReservedNodeExchangeStatusType_RETRYING :: ReservedNodeExchangeStatusType
$mReservedNodeExchangeStatusType_RETRYING :: forall {r}.
ReservedNodeExchangeStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ReservedNodeExchangeStatusType_RETRYING = ReservedNodeExchangeStatusType' "RETRYING"

pattern ReservedNodeExchangeStatusType_SUCCEEDED :: ReservedNodeExchangeStatusType
pattern $bReservedNodeExchangeStatusType_SUCCEEDED :: ReservedNodeExchangeStatusType
$mReservedNodeExchangeStatusType_SUCCEEDED :: forall {r}.
ReservedNodeExchangeStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ReservedNodeExchangeStatusType_SUCCEEDED = ReservedNodeExchangeStatusType' "SUCCEEDED"

{-# COMPLETE
  ReservedNodeExchangeStatusType_FAILED,
  ReservedNodeExchangeStatusType_IN_PROGRESS,
  ReservedNodeExchangeStatusType_PENDING,
  ReservedNodeExchangeStatusType_REQUESTED,
  ReservedNodeExchangeStatusType_RETRYING,
  ReservedNodeExchangeStatusType_SUCCEEDED,
  ReservedNodeExchangeStatusType'
  #-}