{-# 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.ReservedNodeExchangeActionType
-- 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.ReservedNodeExchangeActionType
  ( ReservedNodeExchangeActionType
      ( ..,
        ReservedNodeExchangeActionType_Resize_cluster,
        ReservedNodeExchangeActionType_Restore_cluster
      ),
  )
where

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

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

pattern ReservedNodeExchangeActionType_Resize_cluster :: ReservedNodeExchangeActionType
pattern $bReservedNodeExchangeActionType_Resize_cluster :: ReservedNodeExchangeActionType
$mReservedNodeExchangeActionType_Resize_cluster :: forall {r}.
ReservedNodeExchangeActionType -> ((# #) -> r) -> ((# #) -> r) -> r
ReservedNodeExchangeActionType_Resize_cluster = ReservedNodeExchangeActionType' "resize-cluster"

pattern ReservedNodeExchangeActionType_Restore_cluster :: ReservedNodeExchangeActionType
pattern $bReservedNodeExchangeActionType_Restore_cluster :: ReservedNodeExchangeActionType
$mReservedNodeExchangeActionType_Restore_cluster :: forall {r}.
ReservedNodeExchangeActionType -> ((# #) -> r) -> ((# #) -> r) -> r
ReservedNodeExchangeActionType_Restore_cluster = ReservedNodeExchangeActionType' "restore-cluster"

{-# COMPLETE
  ReservedNodeExchangeActionType_Resize_cluster,
  ReservedNodeExchangeActionType_Restore_cluster,
  ReservedNodeExchangeActionType'
  #-}