{-# 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.SSM.Types.PingStatus
-- 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.SSM.Types.PingStatus
  ( PingStatus
      ( ..,
        PingStatus_ConnectionLost,
        PingStatus_Inactive,
        PingStatus_Online
      ),
  )
where

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

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

pattern PingStatus_ConnectionLost :: PingStatus
pattern $bPingStatus_ConnectionLost :: PingStatus
$mPingStatus_ConnectionLost :: forall {r}. PingStatus -> ((# #) -> r) -> ((# #) -> r) -> r
PingStatus_ConnectionLost = PingStatus' "ConnectionLost"

pattern PingStatus_Inactive :: PingStatus
pattern $bPingStatus_Inactive :: PingStatus
$mPingStatus_Inactive :: forall {r}. PingStatus -> ((# #) -> r) -> ((# #) -> r) -> r
PingStatus_Inactive = PingStatus' "Inactive"

pattern PingStatus_Online :: PingStatus
pattern $bPingStatus_Online :: PingStatus
$mPingStatus_Online :: forall {r}. PingStatus -> ((# #) -> r) -> ((# #) -> r) -> r
PingStatus_Online = PingStatus' "Online"

{-# COMPLETE
  PingStatus_ConnectionLost,
  PingStatus_Inactive,
  PingStatus_Online,
  PingStatus'
  #-}