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