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

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

newtype InstanceCollectionType = InstanceCollectionType'
  { InstanceCollectionType -> Text
fromInstanceCollectionType ::
      Core.Text
  }
  deriving stock
    ( Int -> InstanceCollectionType -> ShowS
[InstanceCollectionType] -> ShowS
InstanceCollectionType -> String
(Int -> InstanceCollectionType -> ShowS)
-> (InstanceCollectionType -> String)
-> ([InstanceCollectionType] -> ShowS)
-> Show InstanceCollectionType
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]
(Int -> ReadS InstanceCollectionType)
-> ReadS [InstanceCollectionType]
-> ReadPrec InstanceCollectionType
-> ReadPrec [InstanceCollectionType]
-> Read 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
(InstanceCollectionType -> InstanceCollectionType -> Bool)
-> (InstanceCollectionType -> InstanceCollectionType -> Bool)
-> Eq InstanceCollectionType
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
Eq InstanceCollectionType
-> (InstanceCollectionType -> InstanceCollectionType -> Ordering)
-> (InstanceCollectionType -> InstanceCollectionType -> Bool)
-> (InstanceCollectionType -> InstanceCollectionType -> Bool)
-> (InstanceCollectionType -> InstanceCollectionType -> Bool)
-> (InstanceCollectionType -> InstanceCollectionType -> Bool)
-> (InstanceCollectionType
    -> InstanceCollectionType -> InstanceCollectionType)
-> (InstanceCollectionType
    -> InstanceCollectionType -> InstanceCollectionType)
-> Ord 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
$cp1Ord :: Eq InstanceCollectionType
Prelude.Ord,
      (forall x. InstanceCollectionType -> Rep InstanceCollectionType x)
-> (forall x.
    Rep InstanceCollectionType x -> InstanceCollectionType)
-> Generic InstanceCollectionType
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
    ( Int -> InstanceCollectionType -> Int
InstanceCollectionType -> Int
(Int -> InstanceCollectionType -> Int)
-> (InstanceCollectionType -> Int)
-> Hashable InstanceCollectionType
forall 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 -> ()
(InstanceCollectionType -> ()) -> NFData InstanceCollectionType
forall a. (a -> ()) -> NFData a
rnf :: InstanceCollectionType -> ()
$crnf :: InstanceCollectionType -> ()
Prelude.NFData,
      Text -> Either String InstanceCollectionType
(Text -> Either String InstanceCollectionType)
-> FromText InstanceCollectionType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InstanceCollectionType
$cfromText :: Text -> Either String InstanceCollectionType
Core.FromText,
      InstanceCollectionType -> Text
(InstanceCollectionType -> Text) -> ToText InstanceCollectionType
forall a. (a -> Text) -> ToText a
toText :: InstanceCollectionType -> Text
$ctoText :: InstanceCollectionType -> Text
Core.ToText,
      InstanceCollectionType -> ByteString
(InstanceCollectionType -> ByteString)
-> ToByteString InstanceCollectionType
forall a. (a -> ByteString) -> ToByteString a
toBS :: InstanceCollectionType -> ByteString
$ctoBS :: InstanceCollectionType -> ByteString
Core.ToByteString,
      InstanceCollectionType -> ByteStringBuilder
(InstanceCollectionType -> ByteStringBuilder)
-> ToLog InstanceCollectionType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InstanceCollectionType -> ByteStringBuilder
$cbuild :: InstanceCollectionType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> InstanceCollectionType -> [Header]
(HeaderName -> InstanceCollectionType -> [Header])
-> ToHeader InstanceCollectionType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InstanceCollectionType -> [Header]
$ctoHeader :: HeaderName -> InstanceCollectionType -> [Header]
Core.ToHeader,
      InstanceCollectionType -> QueryString
(InstanceCollectionType -> QueryString)
-> ToQuery InstanceCollectionType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InstanceCollectionType -> QueryString
$ctoQuery :: InstanceCollectionType -> QueryString
Core.ToQuery,
      Value -> Parser [InstanceCollectionType]
Value -> Parser InstanceCollectionType
(Value -> Parser InstanceCollectionType)
-> (Value -> Parser [InstanceCollectionType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [InstanceCollectionType]
FromJSONKeyFunction InstanceCollectionType
FromJSONKeyFunction InstanceCollectionType
-> FromJSONKeyFunction [InstanceCollectionType]
-> FromJSONKey InstanceCollectionType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InstanceCollectionType]
$cfromJSONKeyList :: FromJSONKeyFunction [InstanceCollectionType]
fromJSONKey :: FromJSONKeyFunction InstanceCollectionType
$cfromJSONKey :: FromJSONKeyFunction InstanceCollectionType
Core.FromJSONKey,
      [InstanceCollectionType] -> Encoding
[InstanceCollectionType] -> Value
InstanceCollectionType -> Encoding
InstanceCollectionType -> Value
(InstanceCollectionType -> Value)
-> (InstanceCollectionType -> Encoding)
-> ([InstanceCollectionType] -> Value)
-> ([InstanceCollectionType] -> Encoding)
-> ToJSON InstanceCollectionType
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
Core.ToJSON,
      ToJSONKeyFunction [InstanceCollectionType]
ToJSONKeyFunction InstanceCollectionType
ToJSONKeyFunction InstanceCollectionType
-> ToJSONKeyFunction [InstanceCollectionType]
-> ToJSONKey InstanceCollectionType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InstanceCollectionType]
$ctoJSONKeyList :: ToJSONKeyFunction [InstanceCollectionType]
toJSONKey :: ToJSONKeyFunction InstanceCollectionType
$ctoJSONKey :: ToJSONKeyFunction InstanceCollectionType
Core.ToJSONKey,
      [Node] -> Either String InstanceCollectionType
([Node] -> Either String InstanceCollectionType)
-> FromXML InstanceCollectionType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InstanceCollectionType
$cparseXML :: [Node] -> Either String InstanceCollectionType
Core.FromXML,
      InstanceCollectionType -> XML
(InstanceCollectionType -> XML) -> ToXML InstanceCollectionType
forall a. (a -> XML) -> ToXML a
toXML :: InstanceCollectionType -> XML
$ctoXML :: InstanceCollectionType -> XML
Core.ToXML
    )

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

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

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