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