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