{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.RobOMaker.Types.RobotStatus
( RobotStatus
( ..,
RobotStatus_Available,
RobotStatus_Deploying,
RobotStatus_Failed,
RobotStatus_InSync,
RobotStatus_NoResponse,
RobotStatus_PendingNewDeployment,
RobotStatus_Registered
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype RobotStatus = RobotStatus'
{ RobotStatus -> Text
fromRobotStatus ::
Core.Text
}
deriving stock
( Int -> RobotStatus -> ShowS
[RobotStatus] -> ShowS
RobotStatus -> String
(Int -> RobotStatus -> ShowS)
-> (RobotStatus -> String)
-> ([RobotStatus] -> ShowS)
-> Show RobotStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RobotStatus] -> ShowS
$cshowList :: [RobotStatus] -> ShowS
show :: RobotStatus -> String
$cshow :: RobotStatus -> String
showsPrec :: Int -> RobotStatus -> ShowS
$cshowsPrec :: Int -> RobotStatus -> ShowS
Prelude.Show,
ReadPrec [RobotStatus]
ReadPrec RobotStatus
Int -> ReadS RobotStatus
ReadS [RobotStatus]
(Int -> ReadS RobotStatus)
-> ReadS [RobotStatus]
-> ReadPrec RobotStatus
-> ReadPrec [RobotStatus]
-> Read RobotStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RobotStatus]
$creadListPrec :: ReadPrec [RobotStatus]
readPrec :: ReadPrec RobotStatus
$creadPrec :: ReadPrec RobotStatus
readList :: ReadS [RobotStatus]
$creadList :: ReadS [RobotStatus]
readsPrec :: Int -> ReadS RobotStatus
$creadsPrec :: Int -> ReadS RobotStatus
Prelude.Read,
RobotStatus -> RobotStatus -> Bool
(RobotStatus -> RobotStatus -> Bool)
-> (RobotStatus -> RobotStatus -> Bool) -> Eq RobotStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RobotStatus -> RobotStatus -> Bool
$c/= :: RobotStatus -> RobotStatus -> Bool
== :: RobotStatus -> RobotStatus -> Bool
$c== :: RobotStatus -> RobotStatus -> Bool
Prelude.Eq,
Eq RobotStatus
Eq RobotStatus
-> (RobotStatus -> RobotStatus -> Ordering)
-> (RobotStatus -> RobotStatus -> Bool)
-> (RobotStatus -> RobotStatus -> Bool)
-> (RobotStatus -> RobotStatus -> Bool)
-> (RobotStatus -> RobotStatus -> Bool)
-> (RobotStatus -> RobotStatus -> RobotStatus)
-> (RobotStatus -> RobotStatus -> RobotStatus)
-> Ord RobotStatus
RobotStatus -> RobotStatus -> Bool
RobotStatus -> RobotStatus -> Ordering
RobotStatus -> RobotStatus -> RobotStatus
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 :: RobotStatus -> RobotStatus -> RobotStatus
$cmin :: RobotStatus -> RobotStatus -> RobotStatus
max :: RobotStatus -> RobotStatus -> RobotStatus
$cmax :: RobotStatus -> RobotStatus -> RobotStatus
>= :: RobotStatus -> RobotStatus -> Bool
$c>= :: RobotStatus -> RobotStatus -> Bool
> :: RobotStatus -> RobotStatus -> Bool
$c> :: RobotStatus -> RobotStatus -> Bool
<= :: RobotStatus -> RobotStatus -> Bool
$c<= :: RobotStatus -> RobotStatus -> Bool
< :: RobotStatus -> RobotStatus -> Bool
$c< :: RobotStatus -> RobotStatus -> Bool
compare :: RobotStatus -> RobotStatus -> Ordering
$ccompare :: RobotStatus -> RobotStatus -> Ordering
$cp1Ord :: Eq RobotStatus
Prelude.Ord,
(forall x. RobotStatus -> Rep RobotStatus x)
-> (forall x. Rep RobotStatus x -> RobotStatus)
-> Generic RobotStatus
forall x. Rep RobotStatus x -> RobotStatus
forall x. RobotStatus -> Rep RobotStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RobotStatus x -> RobotStatus
$cfrom :: forall x. RobotStatus -> Rep RobotStatus x
Prelude.Generic
)
deriving newtype
( Int -> RobotStatus -> Int
RobotStatus -> Int
(Int -> RobotStatus -> Int)
-> (RobotStatus -> Int) -> Hashable RobotStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: RobotStatus -> Int
$chash :: RobotStatus -> Int
hashWithSalt :: Int -> RobotStatus -> Int
$chashWithSalt :: Int -> RobotStatus -> Int
Prelude.Hashable,
RobotStatus -> ()
(RobotStatus -> ()) -> NFData RobotStatus
forall a. (a -> ()) -> NFData a
rnf :: RobotStatus -> ()
$crnf :: RobotStatus -> ()
Prelude.NFData,
Text -> Either String RobotStatus
(Text -> Either String RobotStatus) -> FromText RobotStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RobotStatus
$cfromText :: Text -> Either String RobotStatus
Core.FromText,
RobotStatus -> Text
(RobotStatus -> Text) -> ToText RobotStatus
forall a. (a -> Text) -> ToText a
toText :: RobotStatus -> Text
$ctoText :: RobotStatus -> Text
Core.ToText,
RobotStatus -> ByteString
(RobotStatus -> ByteString) -> ToByteString RobotStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: RobotStatus -> ByteString
$ctoBS :: RobotStatus -> ByteString
Core.ToByteString,
RobotStatus -> ByteStringBuilder
(RobotStatus -> ByteStringBuilder) -> ToLog RobotStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RobotStatus -> ByteStringBuilder
$cbuild :: RobotStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> RobotStatus -> [Header]
(HeaderName -> RobotStatus -> [Header]) -> ToHeader RobotStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RobotStatus -> [Header]
$ctoHeader :: HeaderName -> RobotStatus -> [Header]
Core.ToHeader,
RobotStatus -> QueryString
(RobotStatus -> QueryString) -> ToQuery RobotStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RobotStatus -> QueryString
$ctoQuery :: RobotStatus -> QueryString
Core.ToQuery,
Value -> Parser [RobotStatus]
Value -> Parser RobotStatus
(Value -> Parser RobotStatus)
-> (Value -> Parser [RobotStatus]) -> FromJSON RobotStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [RobotStatus]
$cparseJSONList :: Value -> Parser [RobotStatus]
parseJSON :: Value -> Parser RobotStatus
$cparseJSON :: Value -> Parser RobotStatus
Core.FromJSON,
FromJSONKeyFunction [RobotStatus]
FromJSONKeyFunction RobotStatus
FromJSONKeyFunction RobotStatus
-> FromJSONKeyFunction [RobotStatus] -> FromJSONKey RobotStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RobotStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [RobotStatus]
fromJSONKey :: FromJSONKeyFunction RobotStatus
$cfromJSONKey :: FromJSONKeyFunction RobotStatus
Core.FromJSONKey,
[RobotStatus] -> Encoding
[RobotStatus] -> Value
RobotStatus -> Encoding
RobotStatus -> Value
(RobotStatus -> Value)
-> (RobotStatus -> Encoding)
-> ([RobotStatus] -> Value)
-> ([RobotStatus] -> Encoding)
-> ToJSON RobotStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [RobotStatus] -> Encoding
$ctoEncodingList :: [RobotStatus] -> Encoding
toJSONList :: [RobotStatus] -> Value
$ctoJSONList :: [RobotStatus] -> Value
toEncoding :: RobotStatus -> Encoding
$ctoEncoding :: RobotStatus -> Encoding
toJSON :: RobotStatus -> Value
$ctoJSON :: RobotStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [RobotStatus]
ToJSONKeyFunction RobotStatus
ToJSONKeyFunction RobotStatus
-> ToJSONKeyFunction [RobotStatus] -> ToJSONKey RobotStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RobotStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [RobotStatus]
toJSONKey :: ToJSONKeyFunction RobotStatus
$ctoJSONKey :: ToJSONKeyFunction RobotStatus
Core.ToJSONKey,
[Node] -> Either String RobotStatus
([Node] -> Either String RobotStatus) -> FromXML RobotStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RobotStatus
$cparseXML :: [Node] -> Either String RobotStatus
Core.FromXML,
RobotStatus -> XML
(RobotStatus -> XML) -> ToXML RobotStatus
forall a. (a -> XML) -> ToXML a
toXML :: RobotStatus -> XML
$ctoXML :: RobotStatus -> XML
Core.ToXML
)
pattern RobotStatus_Available :: RobotStatus
pattern $bRobotStatus_Available :: RobotStatus
$mRobotStatus_Available :: forall r. RobotStatus -> (Void# -> r) -> (Void# -> r) -> r
RobotStatus_Available = RobotStatus' "Available"
pattern RobotStatus_Deploying :: RobotStatus
pattern $bRobotStatus_Deploying :: RobotStatus
$mRobotStatus_Deploying :: forall r. RobotStatus -> (Void# -> r) -> (Void# -> r) -> r
RobotStatus_Deploying = RobotStatus' "Deploying"
pattern RobotStatus_Failed :: RobotStatus
pattern $bRobotStatus_Failed :: RobotStatus
$mRobotStatus_Failed :: forall r. RobotStatus -> (Void# -> r) -> (Void# -> r) -> r
RobotStatus_Failed = RobotStatus' "Failed"
pattern RobotStatus_InSync :: RobotStatus
pattern $bRobotStatus_InSync :: RobotStatus
$mRobotStatus_InSync :: forall r. RobotStatus -> (Void# -> r) -> (Void# -> r) -> r
RobotStatus_InSync = RobotStatus' "InSync"
pattern RobotStatus_NoResponse :: RobotStatus
pattern $bRobotStatus_NoResponse :: RobotStatus
$mRobotStatus_NoResponse :: forall r. RobotStatus -> (Void# -> r) -> (Void# -> r) -> r
RobotStatus_NoResponse = RobotStatus' "NoResponse"
pattern RobotStatus_PendingNewDeployment :: RobotStatus
pattern $bRobotStatus_PendingNewDeployment :: RobotStatus
$mRobotStatus_PendingNewDeployment :: forall r. RobotStatus -> (Void# -> r) -> (Void# -> r) -> r
RobotStatus_PendingNewDeployment = RobotStatus' "PendingNewDeployment"
pattern RobotStatus_Registered :: RobotStatus
pattern $bRobotStatus_Registered :: RobotStatus
$mRobotStatus_Registered :: forall r. RobotStatus -> (Void# -> r) -> (Void# -> r) -> r
RobotStatus_Registered = RobotStatus' "Registered"
{-# COMPLETE
RobotStatus_Available,
RobotStatus_Deploying,
RobotStatus_Failed,
RobotStatus_InSync,
RobotStatus_NoResponse,
RobotStatus_PendingNewDeployment,
RobotStatus_Registered,
RobotStatus'
#-}