{-# 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.EMR.Types.ReconfigurationType
-- 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.EMR.Types.ReconfigurationType
  ( ReconfigurationType
      ( ..,
        ReconfigurationType_MERGE,
        ReconfigurationType_OVERWRITE
      ),
  )
where

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

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

pattern ReconfigurationType_MERGE :: ReconfigurationType
pattern $bReconfigurationType_MERGE :: ReconfigurationType
$mReconfigurationType_MERGE :: forall {r}.
ReconfigurationType -> ((# #) -> r) -> ((# #) -> r) -> r
ReconfigurationType_MERGE = ReconfigurationType' "MERGE"

pattern ReconfigurationType_OVERWRITE :: ReconfigurationType
pattern $bReconfigurationType_OVERWRITE :: ReconfigurationType
$mReconfigurationType_OVERWRITE :: forall {r}.
ReconfigurationType -> ((# #) -> r) -> ((# #) -> r) -> r
ReconfigurationType_OVERWRITE = ReconfigurationType' "OVERWRITE"

{-# COMPLETE
  ReconfigurationType_MERGE,
  ReconfigurationType_OVERWRITE,
  ReconfigurationType'
  #-}