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