{-# 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.DomainPackageStatus
( DomainPackageStatus
( ..,
DomainPackageStatus_ACTIVE,
DomainPackageStatus_ASSOCIATING,
DomainPackageStatus_ASSOCIATION_FAILED,
DomainPackageStatus_DISSOCIATING,
DomainPackageStatus_DISSOCIATION_FAILED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype DomainPackageStatus = DomainPackageStatus'
{ DomainPackageStatus -> Text
fromDomainPackageStatus ::
Core.Text
}
deriving stock
( Int -> DomainPackageStatus -> ShowS
[DomainPackageStatus] -> ShowS
DomainPackageStatus -> String
(Int -> DomainPackageStatus -> ShowS)
-> (DomainPackageStatus -> String)
-> ([DomainPackageStatus] -> ShowS)
-> Show DomainPackageStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DomainPackageStatus] -> ShowS
$cshowList :: [DomainPackageStatus] -> ShowS
show :: DomainPackageStatus -> String
$cshow :: DomainPackageStatus -> String
showsPrec :: Int -> DomainPackageStatus -> ShowS
$cshowsPrec :: Int -> DomainPackageStatus -> ShowS
Prelude.Show,
ReadPrec [DomainPackageStatus]
ReadPrec DomainPackageStatus
Int -> ReadS DomainPackageStatus
ReadS [DomainPackageStatus]
(Int -> ReadS DomainPackageStatus)
-> ReadS [DomainPackageStatus]
-> ReadPrec DomainPackageStatus
-> ReadPrec [DomainPackageStatus]
-> Read DomainPackageStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DomainPackageStatus]
$creadListPrec :: ReadPrec [DomainPackageStatus]
readPrec :: ReadPrec DomainPackageStatus
$creadPrec :: ReadPrec DomainPackageStatus
readList :: ReadS [DomainPackageStatus]
$creadList :: ReadS [DomainPackageStatus]
readsPrec :: Int -> ReadS DomainPackageStatus
$creadsPrec :: Int -> ReadS DomainPackageStatus
Prelude.Read,
DomainPackageStatus -> DomainPackageStatus -> Bool
(DomainPackageStatus -> DomainPackageStatus -> Bool)
-> (DomainPackageStatus -> DomainPackageStatus -> Bool)
-> Eq DomainPackageStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DomainPackageStatus -> DomainPackageStatus -> Bool
$c/= :: DomainPackageStatus -> DomainPackageStatus -> Bool
== :: DomainPackageStatus -> DomainPackageStatus -> Bool
$c== :: DomainPackageStatus -> DomainPackageStatus -> Bool
Prelude.Eq,
Eq DomainPackageStatus
Eq DomainPackageStatus
-> (DomainPackageStatus -> DomainPackageStatus -> Ordering)
-> (DomainPackageStatus -> DomainPackageStatus -> Bool)
-> (DomainPackageStatus -> DomainPackageStatus -> Bool)
-> (DomainPackageStatus -> DomainPackageStatus -> Bool)
-> (DomainPackageStatus -> DomainPackageStatus -> Bool)
-> (DomainPackageStatus
-> DomainPackageStatus -> DomainPackageStatus)
-> (DomainPackageStatus
-> DomainPackageStatus -> DomainPackageStatus)
-> Ord DomainPackageStatus
DomainPackageStatus -> DomainPackageStatus -> Bool
DomainPackageStatus -> DomainPackageStatus -> Ordering
DomainPackageStatus -> DomainPackageStatus -> DomainPackageStatus
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 :: DomainPackageStatus -> DomainPackageStatus -> DomainPackageStatus
$cmin :: DomainPackageStatus -> DomainPackageStatus -> DomainPackageStatus
max :: DomainPackageStatus -> DomainPackageStatus -> DomainPackageStatus
$cmax :: DomainPackageStatus -> DomainPackageStatus -> DomainPackageStatus
>= :: DomainPackageStatus -> DomainPackageStatus -> Bool
$c>= :: DomainPackageStatus -> DomainPackageStatus -> Bool
> :: DomainPackageStatus -> DomainPackageStatus -> Bool
$c> :: DomainPackageStatus -> DomainPackageStatus -> Bool
<= :: DomainPackageStatus -> DomainPackageStatus -> Bool
$c<= :: DomainPackageStatus -> DomainPackageStatus -> Bool
< :: DomainPackageStatus -> DomainPackageStatus -> Bool
$c< :: DomainPackageStatus -> DomainPackageStatus -> Bool
compare :: DomainPackageStatus -> DomainPackageStatus -> Ordering
$ccompare :: DomainPackageStatus -> DomainPackageStatus -> Ordering
$cp1Ord :: Eq DomainPackageStatus
Prelude.Ord,
(forall x. DomainPackageStatus -> Rep DomainPackageStatus x)
-> (forall x. Rep DomainPackageStatus x -> DomainPackageStatus)
-> Generic DomainPackageStatus
forall x. Rep DomainPackageStatus x -> DomainPackageStatus
forall x. DomainPackageStatus -> Rep DomainPackageStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DomainPackageStatus x -> DomainPackageStatus
$cfrom :: forall x. DomainPackageStatus -> Rep DomainPackageStatus x
Prelude.Generic
)
deriving newtype
( Int -> DomainPackageStatus -> Int
DomainPackageStatus -> Int
(Int -> DomainPackageStatus -> Int)
-> (DomainPackageStatus -> Int) -> Hashable DomainPackageStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DomainPackageStatus -> Int
$chash :: DomainPackageStatus -> Int
hashWithSalt :: Int -> DomainPackageStatus -> Int
$chashWithSalt :: Int -> DomainPackageStatus -> Int
Prelude.Hashable,
DomainPackageStatus -> ()
(DomainPackageStatus -> ()) -> NFData DomainPackageStatus
forall a. (a -> ()) -> NFData a
rnf :: DomainPackageStatus -> ()
$crnf :: DomainPackageStatus -> ()
Prelude.NFData,
Text -> Either String DomainPackageStatus
(Text -> Either String DomainPackageStatus)
-> FromText DomainPackageStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DomainPackageStatus
$cfromText :: Text -> Either String DomainPackageStatus
Core.FromText,
DomainPackageStatus -> Text
(DomainPackageStatus -> Text) -> ToText DomainPackageStatus
forall a. (a -> Text) -> ToText a
toText :: DomainPackageStatus -> Text
$ctoText :: DomainPackageStatus -> Text
Core.ToText,
DomainPackageStatus -> ByteString
(DomainPackageStatus -> ByteString)
-> ToByteString DomainPackageStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: DomainPackageStatus -> ByteString
$ctoBS :: DomainPackageStatus -> ByteString
Core.ToByteString,
DomainPackageStatus -> ByteStringBuilder
(DomainPackageStatus -> ByteStringBuilder)
-> ToLog DomainPackageStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DomainPackageStatus -> ByteStringBuilder
$cbuild :: DomainPackageStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> DomainPackageStatus -> [Header]
(HeaderName -> DomainPackageStatus -> [Header])
-> ToHeader DomainPackageStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DomainPackageStatus -> [Header]
$ctoHeader :: HeaderName -> DomainPackageStatus -> [Header]
Core.ToHeader,
DomainPackageStatus -> QueryString
(DomainPackageStatus -> QueryString) -> ToQuery DomainPackageStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DomainPackageStatus -> QueryString
$ctoQuery :: DomainPackageStatus -> QueryString
Core.ToQuery,
Value -> Parser [DomainPackageStatus]
Value -> Parser DomainPackageStatus
(Value -> Parser DomainPackageStatus)
-> (Value -> Parser [DomainPackageStatus])
-> FromJSON DomainPackageStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DomainPackageStatus]
$cparseJSONList :: Value -> Parser [DomainPackageStatus]
parseJSON :: Value -> Parser DomainPackageStatus
$cparseJSON :: Value -> Parser DomainPackageStatus
Core.FromJSON,
FromJSONKeyFunction [DomainPackageStatus]
FromJSONKeyFunction DomainPackageStatus
FromJSONKeyFunction DomainPackageStatus
-> FromJSONKeyFunction [DomainPackageStatus]
-> FromJSONKey DomainPackageStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DomainPackageStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [DomainPackageStatus]
fromJSONKey :: FromJSONKeyFunction DomainPackageStatus
$cfromJSONKey :: FromJSONKeyFunction DomainPackageStatus
Core.FromJSONKey,
[DomainPackageStatus] -> Encoding
[DomainPackageStatus] -> Value
DomainPackageStatus -> Encoding
DomainPackageStatus -> Value
(DomainPackageStatus -> Value)
-> (DomainPackageStatus -> Encoding)
-> ([DomainPackageStatus] -> Value)
-> ([DomainPackageStatus] -> Encoding)
-> ToJSON DomainPackageStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DomainPackageStatus] -> Encoding
$ctoEncodingList :: [DomainPackageStatus] -> Encoding
toJSONList :: [DomainPackageStatus] -> Value
$ctoJSONList :: [DomainPackageStatus] -> Value
toEncoding :: DomainPackageStatus -> Encoding
$ctoEncoding :: DomainPackageStatus -> Encoding
toJSON :: DomainPackageStatus -> Value
$ctoJSON :: DomainPackageStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [DomainPackageStatus]
ToJSONKeyFunction DomainPackageStatus
ToJSONKeyFunction DomainPackageStatus
-> ToJSONKeyFunction [DomainPackageStatus]
-> ToJSONKey DomainPackageStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DomainPackageStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [DomainPackageStatus]
toJSONKey :: ToJSONKeyFunction DomainPackageStatus
$ctoJSONKey :: ToJSONKeyFunction DomainPackageStatus
Core.ToJSONKey,
[Node] -> Either String DomainPackageStatus
([Node] -> Either String DomainPackageStatus)
-> FromXML DomainPackageStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DomainPackageStatus
$cparseXML :: [Node] -> Either String DomainPackageStatus
Core.FromXML,
DomainPackageStatus -> XML
(DomainPackageStatus -> XML) -> ToXML DomainPackageStatus
forall a. (a -> XML) -> ToXML a
toXML :: DomainPackageStatus -> XML
$ctoXML :: DomainPackageStatus -> XML
Core.ToXML
)
pattern DomainPackageStatus_ACTIVE :: DomainPackageStatus
pattern $bDomainPackageStatus_ACTIVE :: DomainPackageStatus
$mDomainPackageStatus_ACTIVE :: forall r. DomainPackageStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainPackageStatus_ACTIVE = DomainPackageStatus' "ACTIVE"
pattern DomainPackageStatus_ASSOCIATING :: DomainPackageStatus
pattern $bDomainPackageStatus_ASSOCIATING :: DomainPackageStatus
$mDomainPackageStatus_ASSOCIATING :: forall r. DomainPackageStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainPackageStatus_ASSOCIATING = DomainPackageStatus' "ASSOCIATING"
pattern DomainPackageStatus_ASSOCIATION_FAILED :: DomainPackageStatus
pattern $bDomainPackageStatus_ASSOCIATION_FAILED :: DomainPackageStatus
$mDomainPackageStatus_ASSOCIATION_FAILED :: forall r. DomainPackageStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainPackageStatus_ASSOCIATION_FAILED = DomainPackageStatus' "ASSOCIATION_FAILED"
pattern DomainPackageStatus_DISSOCIATING :: DomainPackageStatus
pattern $bDomainPackageStatus_DISSOCIATING :: DomainPackageStatus
$mDomainPackageStatus_DISSOCIATING :: forall r. DomainPackageStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainPackageStatus_DISSOCIATING = DomainPackageStatus' "DISSOCIATING"
pattern DomainPackageStatus_DISSOCIATION_FAILED :: DomainPackageStatus
pattern $bDomainPackageStatus_DISSOCIATION_FAILED :: DomainPackageStatus
$mDomainPackageStatus_DISSOCIATION_FAILED :: forall r. DomainPackageStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainPackageStatus_DISSOCIATION_FAILED = DomainPackageStatus' "DISSOCIATION_FAILED"
{-# COMPLETE
DomainPackageStatus_ACTIVE,
DomainPackageStatus_ASSOCIATING,
DomainPackageStatus_ASSOCIATION_FAILED,
DomainPackageStatus_DISSOCIATING,
DomainPackageStatus_DISSOCIATION_FAILED,
DomainPackageStatus'
#-}