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