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