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