{-# 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.InstanceCollectionType
-- 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.InstanceCollectionType
  ( InstanceCollectionType
      ( ..,
        InstanceCollectionType_INSTANCE_FLEET,
        InstanceCollectionType_INSTANCE_GROUP
      ),
  )
where

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

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

pattern InstanceCollectionType_INSTANCE_FLEET :: InstanceCollectionType
pattern $bInstanceCollectionType_INSTANCE_FLEET :: InstanceCollectionType
$mInstanceCollectionType_INSTANCE_FLEET :: forall {r}.
InstanceCollectionType -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceCollectionType_INSTANCE_FLEET = InstanceCollectionType' "INSTANCE_FLEET"

pattern InstanceCollectionType_INSTANCE_GROUP :: InstanceCollectionType
pattern $bInstanceCollectionType_INSTANCE_GROUP :: InstanceCollectionType
$mInstanceCollectionType_INSTANCE_GROUP :: forall {r}.
InstanceCollectionType -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceCollectionType_INSTANCE_GROUP = InstanceCollectionType' "INSTANCE_GROUP"

{-# COMPLETE
  InstanceCollectionType_INSTANCE_FLEET,
  InstanceCollectionType_INSTANCE_GROUP,
  InstanceCollectionType'
  #-}