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