{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype PingStatus = PingStatus'
  { PingStatus -> Text
fromPingStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> PingStatus -> ShowS
[PingStatus] -> ShowS
PingStatus -> String
(Int -> PingStatus -> ShowS)
-> (PingStatus -> String)
-> ([PingStatus] -> ShowS)
-> Show PingStatus
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]
(Int -> ReadS PingStatus)
-> ReadS [PingStatus]
-> ReadPrec PingStatus
-> ReadPrec [PingStatus]
-> Read 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
(PingStatus -> PingStatus -> Bool)
-> (PingStatus -> PingStatus -> Bool) -> Eq PingStatus
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
Eq PingStatus
-> (PingStatus -> PingStatus -> Ordering)
-> (PingStatus -> PingStatus -> Bool)
-> (PingStatus -> PingStatus -> Bool)
-> (PingStatus -> PingStatus -> Bool)
-> (PingStatus -> PingStatus -> Bool)
-> (PingStatus -> PingStatus -> PingStatus)
-> (PingStatus -> PingStatus -> PingStatus)
-> Ord 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
$cp1Ord :: Eq PingStatus
Prelude.Ord,
      (forall x. PingStatus -> Rep PingStatus x)
-> (forall x. Rep PingStatus x -> PingStatus) -> Generic PingStatus
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
    ( Int -> PingStatus -> Int
PingStatus -> Int
(Int -> PingStatus -> Int)
-> (PingStatus -> Int) -> Hashable PingStatus
forall 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 -> ()
(PingStatus -> ()) -> NFData PingStatus
forall a. (a -> ()) -> NFData a
rnf :: PingStatus -> ()
$crnf :: PingStatus -> ()
Prelude.NFData,
      Text -> Either String PingStatus
(Text -> Either String PingStatus) -> FromText PingStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PingStatus
$cfromText :: Text -> Either String PingStatus
Core.FromText,
      PingStatus -> Text
(PingStatus -> Text) -> ToText PingStatus
forall a. (a -> Text) -> ToText a
toText :: PingStatus -> Text
$ctoText :: PingStatus -> Text
Core.ToText,
      PingStatus -> ByteString
(PingStatus -> ByteString) -> ToByteString PingStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: PingStatus -> ByteString
$ctoBS :: PingStatus -> ByteString
Core.ToByteString,
      PingStatus -> ByteStringBuilder
(PingStatus -> ByteStringBuilder) -> ToLog PingStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PingStatus -> ByteStringBuilder
$cbuild :: PingStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> PingStatus -> [Header]
(HeaderName -> PingStatus -> [Header]) -> ToHeader PingStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PingStatus -> [Header]
$ctoHeader :: HeaderName -> PingStatus -> [Header]
Core.ToHeader,
      PingStatus -> QueryString
(PingStatus -> QueryString) -> ToQuery PingStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PingStatus -> QueryString
$ctoQuery :: PingStatus -> QueryString
Core.ToQuery,
      Value -> Parser [PingStatus]
Value -> Parser PingStatus
(Value -> Parser PingStatus)
-> (Value -> Parser [PingStatus]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [PingStatus]
FromJSONKeyFunction PingStatus
FromJSONKeyFunction PingStatus
-> FromJSONKeyFunction [PingStatus] -> FromJSONKey PingStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PingStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [PingStatus]
fromJSONKey :: FromJSONKeyFunction PingStatus
$cfromJSONKey :: FromJSONKeyFunction PingStatus
Core.FromJSONKey,
      [PingStatus] -> Encoding
[PingStatus] -> Value
PingStatus -> Encoding
PingStatus -> Value
(PingStatus -> Value)
-> (PingStatus -> Encoding)
-> ([PingStatus] -> Value)
-> ([PingStatus] -> Encoding)
-> ToJSON PingStatus
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
Core.ToJSON,
      ToJSONKeyFunction [PingStatus]
ToJSONKeyFunction PingStatus
ToJSONKeyFunction PingStatus
-> ToJSONKeyFunction [PingStatus] -> ToJSONKey PingStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PingStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [PingStatus]
toJSONKey :: ToJSONKeyFunction PingStatus
$ctoJSONKey :: ToJSONKeyFunction PingStatus
Core.ToJSONKey,
      [Node] -> Either String PingStatus
([Node] -> Either String PingStatus) -> FromXML PingStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PingStatus
$cparseXML :: [Node] -> Either String PingStatus
Core.FromXML,
      PingStatus -> XML
(PingStatus -> XML) -> ToXML PingStatus
forall a. (a -> XML) -> ToXML a
toXML :: PingStatus -> XML
$ctoXML :: PingStatus -> XML
Core.ToXML
    )

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

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

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

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