{-# 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.OpenSearch.Types.EngineType
-- 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.OpenSearch.Types.EngineType
  ( EngineType
      ( ..,
        EngineType_Elasticsearch,
        EngineType_OpenSearch
      ),
  )
where

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

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

pattern EngineType_Elasticsearch :: EngineType
pattern $bEngineType_Elasticsearch :: EngineType
$mEngineType_Elasticsearch :: forall r. EngineType -> (Void# -> r) -> (Void# -> r) -> r
EngineType_Elasticsearch = EngineType' "Elasticsearch"

pattern EngineType_OpenSearch :: EngineType
pattern $bEngineType_OpenSearch :: EngineType
$mEngineType_OpenSearch :: forall r. EngineType -> (Void# -> r) -> (Void# -> r) -> r
EngineType_OpenSearch = EngineType' "OpenSearch"

{-# COMPLETE
  EngineType_Elasticsearch,
  EngineType_OpenSearch,
  EngineType'
  #-}