{-# 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.InstanceFleetType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.EMR.Types.InstanceFleetType
  ( InstanceFleetType
      ( ..,
        InstanceFleetType_CORE,
        InstanceFleetType_MASTER,
        InstanceFleetType_TASK
      ),
  )
where

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

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

pattern InstanceFleetType_CORE :: InstanceFleetType
pattern $bInstanceFleetType_CORE :: InstanceFleetType
$mInstanceFleetType_CORE :: forall r. InstanceFleetType -> (Void# -> r) -> (Void# -> r) -> r
InstanceFleetType_CORE = InstanceFleetType' "CORE"

pattern InstanceFleetType_MASTER :: InstanceFleetType
pattern $bInstanceFleetType_MASTER :: InstanceFleetType
$mInstanceFleetType_MASTER :: forall r. InstanceFleetType -> (Void# -> r) -> (Void# -> r) -> r
InstanceFleetType_MASTER = InstanceFleetType' "MASTER"

pattern InstanceFleetType_TASK :: InstanceFleetType
pattern $bInstanceFleetType_TASK :: InstanceFleetType
$mInstanceFleetType_TASK :: forall r. InstanceFleetType -> (Void# -> r) -> (Void# -> r) -> r
InstanceFleetType_TASK = InstanceFleetType' "TASK"

{-# COMPLETE
  InstanceFleetType_CORE,
  InstanceFleetType_MASTER,
  InstanceFleetType_TASK,
  InstanceFleetType'
  #-}