{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Panorama.Types.DeviceReportedStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Panorama.Types.DeviceReportedStatus
  ( DeviceReportedStatus
      ( ..,
        DeviceReportedStatus_INSTALL_ERROR,
        DeviceReportedStatus_INSTALL_IN_PROGRESS,
        DeviceReportedStatus_LAUNCHED,
        DeviceReportedStatus_LAUNCH_ERROR,
        DeviceReportedStatus_REMOVAL_FAILED,
        DeviceReportedStatus_REMOVAL_IN_PROGRESS,
        DeviceReportedStatus_RUNNING,
        DeviceReportedStatus_STARTING,
        DeviceReportedStatus_STOPPED,
        DeviceReportedStatus_STOPPING,
        DeviceReportedStatus_STOP_ERROR
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern DeviceReportedStatus_INSTALL_ERROR :: DeviceReportedStatus
pattern $bDeviceReportedStatus_INSTALL_ERROR :: DeviceReportedStatus
$mDeviceReportedStatus_INSTALL_ERROR :: forall {r}.
DeviceReportedStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceReportedStatus_INSTALL_ERROR = DeviceReportedStatus' "INSTALL_ERROR"

pattern DeviceReportedStatus_INSTALL_IN_PROGRESS :: DeviceReportedStatus
pattern $bDeviceReportedStatus_INSTALL_IN_PROGRESS :: DeviceReportedStatus
$mDeviceReportedStatus_INSTALL_IN_PROGRESS :: forall {r}.
DeviceReportedStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceReportedStatus_INSTALL_IN_PROGRESS = DeviceReportedStatus' "INSTALL_IN_PROGRESS"

pattern DeviceReportedStatus_LAUNCHED :: DeviceReportedStatus
pattern $bDeviceReportedStatus_LAUNCHED :: DeviceReportedStatus
$mDeviceReportedStatus_LAUNCHED :: forall {r}.
DeviceReportedStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceReportedStatus_LAUNCHED = DeviceReportedStatus' "LAUNCHED"

pattern DeviceReportedStatus_LAUNCH_ERROR :: DeviceReportedStatus
pattern $bDeviceReportedStatus_LAUNCH_ERROR :: DeviceReportedStatus
$mDeviceReportedStatus_LAUNCH_ERROR :: forall {r}.
DeviceReportedStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceReportedStatus_LAUNCH_ERROR = DeviceReportedStatus' "LAUNCH_ERROR"

pattern DeviceReportedStatus_REMOVAL_FAILED :: DeviceReportedStatus
pattern $bDeviceReportedStatus_REMOVAL_FAILED :: DeviceReportedStatus
$mDeviceReportedStatus_REMOVAL_FAILED :: forall {r}.
DeviceReportedStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceReportedStatus_REMOVAL_FAILED = DeviceReportedStatus' "REMOVAL_FAILED"

pattern DeviceReportedStatus_REMOVAL_IN_PROGRESS :: DeviceReportedStatus
pattern $bDeviceReportedStatus_REMOVAL_IN_PROGRESS :: DeviceReportedStatus
$mDeviceReportedStatus_REMOVAL_IN_PROGRESS :: forall {r}.
DeviceReportedStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceReportedStatus_REMOVAL_IN_PROGRESS = DeviceReportedStatus' "REMOVAL_IN_PROGRESS"

pattern DeviceReportedStatus_RUNNING :: DeviceReportedStatus
pattern $bDeviceReportedStatus_RUNNING :: DeviceReportedStatus
$mDeviceReportedStatus_RUNNING :: forall {r}.
DeviceReportedStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceReportedStatus_RUNNING = DeviceReportedStatus' "RUNNING"

pattern DeviceReportedStatus_STARTING :: DeviceReportedStatus
pattern $bDeviceReportedStatus_STARTING :: DeviceReportedStatus
$mDeviceReportedStatus_STARTING :: forall {r}.
DeviceReportedStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceReportedStatus_STARTING = DeviceReportedStatus' "STARTING"

pattern DeviceReportedStatus_STOPPED :: DeviceReportedStatus
pattern $bDeviceReportedStatus_STOPPED :: DeviceReportedStatus
$mDeviceReportedStatus_STOPPED :: forall {r}.
DeviceReportedStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceReportedStatus_STOPPED = DeviceReportedStatus' "STOPPED"

pattern DeviceReportedStatus_STOPPING :: DeviceReportedStatus
pattern $bDeviceReportedStatus_STOPPING :: DeviceReportedStatus
$mDeviceReportedStatus_STOPPING :: forall {r}.
DeviceReportedStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceReportedStatus_STOPPING = DeviceReportedStatus' "STOPPING"

pattern DeviceReportedStatus_STOP_ERROR :: DeviceReportedStatus
pattern $bDeviceReportedStatus_STOP_ERROR :: DeviceReportedStatus
$mDeviceReportedStatus_STOP_ERROR :: forall {r}.
DeviceReportedStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceReportedStatus_STOP_ERROR = DeviceReportedStatus' "STOP_ERROR"

{-# COMPLETE
  DeviceReportedStatus_INSTALL_ERROR,
  DeviceReportedStatus_INSTALL_IN_PROGRESS,
  DeviceReportedStatus_LAUNCHED,
  DeviceReportedStatus_LAUNCH_ERROR,
  DeviceReportedStatus_REMOVAL_FAILED,
  DeviceReportedStatus_REMOVAL_IN_PROGRESS,
  DeviceReportedStatus_RUNNING,
  DeviceReportedStatus_STARTING,
  DeviceReportedStatus_STOPPED,
  DeviceReportedStatus_STOPPING,
  DeviceReportedStatus_STOP_ERROR,
  DeviceReportedStatus'
  #-}