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