{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.OpenSearchServerless.Types.CollectionType
( CollectionType
( ..,
CollectionType_SEARCH,
CollectionType_TIMESERIES
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype CollectionType = CollectionType'
{ CollectionType -> Text
fromCollectionType ::
Data.Text
}
deriving stock
( Int -> CollectionType -> ShowS
[CollectionType] -> ShowS
CollectionType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CollectionType] -> ShowS
$cshowList :: [CollectionType] -> ShowS
show :: CollectionType -> String
$cshow :: CollectionType -> String
showsPrec :: Int -> CollectionType -> ShowS
$cshowsPrec :: Int -> CollectionType -> ShowS
Prelude.Show,
ReadPrec [CollectionType]
ReadPrec CollectionType
Int -> ReadS CollectionType
ReadS [CollectionType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CollectionType]
$creadListPrec :: ReadPrec [CollectionType]
readPrec :: ReadPrec CollectionType
$creadPrec :: ReadPrec CollectionType
readList :: ReadS [CollectionType]
$creadList :: ReadS [CollectionType]
readsPrec :: Int -> ReadS CollectionType
$creadsPrec :: Int -> ReadS CollectionType
Prelude.Read,
CollectionType -> CollectionType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CollectionType -> CollectionType -> Bool
$c/= :: CollectionType -> CollectionType -> Bool
== :: CollectionType -> CollectionType -> Bool
$c== :: CollectionType -> CollectionType -> Bool
Prelude.Eq,
Eq CollectionType
CollectionType -> CollectionType -> Bool
CollectionType -> CollectionType -> Ordering
CollectionType -> CollectionType -> CollectionType
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 :: CollectionType -> CollectionType -> CollectionType
$cmin :: CollectionType -> CollectionType -> CollectionType
max :: CollectionType -> CollectionType -> CollectionType
$cmax :: CollectionType -> CollectionType -> CollectionType
>= :: CollectionType -> CollectionType -> Bool
$c>= :: CollectionType -> CollectionType -> Bool
> :: CollectionType -> CollectionType -> Bool
$c> :: CollectionType -> CollectionType -> Bool
<= :: CollectionType -> CollectionType -> Bool
$c<= :: CollectionType -> CollectionType -> Bool
< :: CollectionType -> CollectionType -> Bool
$c< :: CollectionType -> CollectionType -> Bool
compare :: CollectionType -> CollectionType -> Ordering
$ccompare :: CollectionType -> CollectionType -> Ordering
Prelude.Ord,
forall x. Rep CollectionType x -> CollectionType
forall x. CollectionType -> Rep CollectionType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CollectionType x -> CollectionType
$cfrom :: forall x. CollectionType -> Rep CollectionType x
Prelude.Generic
)
deriving newtype
( Eq CollectionType
Int -> CollectionType -> Int
CollectionType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CollectionType -> Int
$chash :: CollectionType -> Int
hashWithSalt :: Int -> CollectionType -> Int
$chashWithSalt :: Int -> CollectionType -> Int
Prelude.Hashable,
CollectionType -> ()
forall a. (a -> ()) -> NFData a
rnf :: CollectionType -> ()
$crnf :: CollectionType -> ()
Prelude.NFData,
Text -> Either String CollectionType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CollectionType
$cfromText :: Text -> Either String CollectionType
Data.FromText,
CollectionType -> Text
forall a. (a -> Text) -> ToText a
toText :: CollectionType -> Text
$ctoText :: CollectionType -> Text
Data.ToText,
CollectionType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CollectionType -> ByteString
$ctoBS :: CollectionType -> ByteString
Data.ToByteString,
CollectionType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CollectionType -> ByteStringBuilder
$cbuild :: CollectionType -> ByteStringBuilder
Data.ToLog,
HeaderName -> CollectionType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CollectionType -> [Header]
$ctoHeader :: HeaderName -> CollectionType -> [Header]
Data.ToHeader,
CollectionType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CollectionType -> QueryString
$ctoQuery :: CollectionType -> QueryString
Data.ToQuery,
Value -> Parser [CollectionType]
Value -> Parser CollectionType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CollectionType]
$cparseJSONList :: Value -> Parser [CollectionType]
parseJSON :: Value -> Parser CollectionType
$cparseJSON :: Value -> Parser CollectionType
Data.FromJSON,
FromJSONKeyFunction [CollectionType]
FromJSONKeyFunction CollectionType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CollectionType]
$cfromJSONKeyList :: FromJSONKeyFunction [CollectionType]
fromJSONKey :: FromJSONKeyFunction CollectionType
$cfromJSONKey :: FromJSONKeyFunction CollectionType
Data.FromJSONKey,
[CollectionType] -> Encoding
[CollectionType] -> Value
CollectionType -> Encoding
CollectionType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CollectionType] -> Encoding
$ctoEncodingList :: [CollectionType] -> Encoding
toJSONList :: [CollectionType] -> Value
$ctoJSONList :: [CollectionType] -> Value
toEncoding :: CollectionType -> Encoding
$ctoEncoding :: CollectionType -> Encoding
toJSON :: CollectionType -> Value
$ctoJSON :: CollectionType -> Value
Data.ToJSON,
ToJSONKeyFunction [CollectionType]
ToJSONKeyFunction CollectionType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CollectionType]
$ctoJSONKeyList :: ToJSONKeyFunction [CollectionType]
toJSONKey :: ToJSONKeyFunction CollectionType
$ctoJSONKey :: ToJSONKeyFunction CollectionType
Data.ToJSONKey,
[Node] -> Either String CollectionType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CollectionType
$cparseXML :: [Node] -> Either String CollectionType
Data.FromXML,
CollectionType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CollectionType -> XML
$ctoXML :: CollectionType -> XML
Data.ToXML
)
pattern CollectionType_SEARCH :: CollectionType
pattern $bCollectionType_SEARCH :: CollectionType
$mCollectionType_SEARCH :: forall {r}. CollectionType -> ((# #) -> r) -> ((# #) -> r) -> r
CollectionType_SEARCH = CollectionType' "SEARCH"
pattern CollectionType_TIMESERIES :: CollectionType
pattern $bCollectionType_TIMESERIES :: CollectionType
$mCollectionType_TIMESERIES :: forall {r}. CollectionType -> ((# #) -> r) -> ((# #) -> r) -> r
CollectionType_TIMESERIES = CollectionType' "TIMESERIES"
{-# COMPLETE
CollectionType_SEARCH,
CollectionType_TIMESERIES,
CollectionType'
#-}