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