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