{-# 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.DeviceFarm.Types.ExecutionResultCode
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DeviceFarm.Types.ExecutionResultCode
  ( ExecutionResultCode
      ( ..,
        ExecutionResultCode_PARSING_FAILED,
        ExecutionResultCode_VPC_ENDPOINT_SETUP_FAILED
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype ExecutionResultCode = ExecutionResultCode'
  { ExecutionResultCode -> Text
fromExecutionResultCode ::
      Data.Text
  }
  deriving stock
    ( Int -> ExecutionResultCode -> ShowS
[ExecutionResultCode] -> ShowS
ExecutionResultCode -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExecutionResultCode] -> ShowS
$cshowList :: [ExecutionResultCode] -> ShowS
show :: ExecutionResultCode -> String
$cshow :: ExecutionResultCode -> String
showsPrec :: Int -> ExecutionResultCode -> ShowS
$cshowsPrec :: Int -> ExecutionResultCode -> ShowS
Prelude.Show,
      ReadPrec [ExecutionResultCode]
ReadPrec ExecutionResultCode
Int -> ReadS ExecutionResultCode
ReadS [ExecutionResultCode]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExecutionResultCode]
$creadListPrec :: ReadPrec [ExecutionResultCode]
readPrec :: ReadPrec ExecutionResultCode
$creadPrec :: ReadPrec ExecutionResultCode
readList :: ReadS [ExecutionResultCode]
$creadList :: ReadS [ExecutionResultCode]
readsPrec :: Int -> ReadS ExecutionResultCode
$creadsPrec :: Int -> ReadS ExecutionResultCode
Prelude.Read,
      ExecutionResultCode -> ExecutionResultCode -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExecutionResultCode -> ExecutionResultCode -> Bool
$c/= :: ExecutionResultCode -> ExecutionResultCode -> Bool
== :: ExecutionResultCode -> ExecutionResultCode -> Bool
$c== :: ExecutionResultCode -> ExecutionResultCode -> Bool
Prelude.Eq,
      Eq ExecutionResultCode
ExecutionResultCode -> ExecutionResultCode -> Bool
ExecutionResultCode -> ExecutionResultCode -> Ordering
ExecutionResultCode -> ExecutionResultCode -> ExecutionResultCode
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 :: ExecutionResultCode -> ExecutionResultCode -> ExecutionResultCode
$cmin :: ExecutionResultCode -> ExecutionResultCode -> ExecutionResultCode
max :: ExecutionResultCode -> ExecutionResultCode -> ExecutionResultCode
$cmax :: ExecutionResultCode -> ExecutionResultCode -> ExecutionResultCode
>= :: ExecutionResultCode -> ExecutionResultCode -> Bool
$c>= :: ExecutionResultCode -> ExecutionResultCode -> Bool
> :: ExecutionResultCode -> ExecutionResultCode -> Bool
$c> :: ExecutionResultCode -> ExecutionResultCode -> Bool
<= :: ExecutionResultCode -> ExecutionResultCode -> Bool
$c<= :: ExecutionResultCode -> ExecutionResultCode -> Bool
< :: ExecutionResultCode -> ExecutionResultCode -> Bool
$c< :: ExecutionResultCode -> ExecutionResultCode -> Bool
compare :: ExecutionResultCode -> ExecutionResultCode -> Ordering
$ccompare :: ExecutionResultCode -> ExecutionResultCode -> Ordering
Prelude.Ord,
      forall x. Rep ExecutionResultCode x -> ExecutionResultCode
forall x. ExecutionResultCode -> Rep ExecutionResultCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ExecutionResultCode x -> ExecutionResultCode
$cfrom :: forall x. ExecutionResultCode -> Rep ExecutionResultCode x
Prelude.Generic
    )
  deriving newtype
    ( Eq ExecutionResultCode
Int -> ExecutionResultCode -> Int
ExecutionResultCode -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ExecutionResultCode -> Int
$chash :: ExecutionResultCode -> Int
hashWithSalt :: Int -> ExecutionResultCode -> Int
$chashWithSalt :: Int -> ExecutionResultCode -> Int
Prelude.Hashable,
      ExecutionResultCode -> ()
forall a. (a -> ()) -> NFData a
rnf :: ExecutionResultCode -> ()
$crnf :: ExecutionResultCode -> ()
Prelude.NFData,
      Text -> Either String ExecutionResultCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ExecutionResultCode
$cfromText :: Text -> Either String ExecutionResultCode
Data.FromText,
      ExecutionResultCode -> Text
forall a. (a -> Text) -> ToText a
toText :: ExecutionResultCode -> Text
$ctoText :: ExecutionResultCode -> Text
Data.ToText,
      ExecutionResultCode -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ExecutionResultCode -> ByteString
$ctoBS :: ExecutionResultCode -> ByteString
Data.ToByteString,
      ExecutionResultCode -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ExecutionResultCode -> ByteStringBuilder
$cbuild :: ExecutionResultCode -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ExecutionResultCode -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ExecutionResultCode -> [Header]
$ctoHeader :: HeaderName -> ExecutionResultCode -> [Header]
Data.ToHeader,
      ExecutionResultCode -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ExecutionResultCode -> QueryString
$ctoQuery :: ExecutionResultCode -> QueryString
Data.ToQuery,
      Value -> Parser [ExecutionResultCode]
Value -> Parser ExecutionResultCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ExecutionResultCode]
$cparseJSONList :: Value -> Parser [ExecutionResultCode]
parseJSON :: Value -> Parser ExecutionResultCode
$cparseJSON :: Value -> Parser ExecutionResultCode
Data.FromJSON,
      FromJSONKeyFunction [ExecutionResultCode]
FromJSONKeyFunction ExecutionResultCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ExecutionResultCode]
$cfromJSONKeyList :: FromJSONKeyFunction [ExecutionResultCode]
fromJSONKey :: FromJSONKeyFunction ExecutionResultCode
$cfromJSONKey :: FromJSONKeyFunction ExecutionResultCode
Data.FromJSONKey,
      [ExecutionResultCode] -> Encoding
[ExecutionResultCode] -> Value
ExecutionResultCode -> Encoding
ExecutionResultCode -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ExecutionResultCode] -> Encoding
$ctoEncodingList :: [ExecutionResultCode] -> Encoding
toJSONList :: [ExecutionResultCode] -> Value
$ctoJSONList :: [ExecutionResultCode] -> Value
toEncoding :: ExecutionResultCode -> Encoding
$ctoEncoding :: ExecutionResultCode -> Encoding
toJSON :: ExecutionResultCode -> Value
$ctoJSON :: ExecutionResultCode -> Value
Data.ToJSON,
      ToJSONKeyFunction [ExecutionResultCode]
ToJSONKeyFunction ExecutionResultCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ExecutionResultCode]
$ctoJSONKeyList :: ToJSONKeyFunction [ExecutionResultCode]
toJSONKey :: ToJSONKeyFunction ExecutionResultCode
$ctoJSONKey :: ToJSONKeyFunction ExecutionResultCode
Data.ToJSONKey,
      [Node] -> Either String ExecutionResultCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ExecutionResultCode
$cparseXML :: [Node] -> Either String ExecutionResultCode
Data.FromXML,
      ExecutionResultCode -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ExecutionResultCode -> XML
$ctoXML :: ExecutionResultCode -> XML
Data.ToXML
    )

pattern ExecutionResultCode_PARSING_FAILED :: ExecutionResultCode
pattern $bExecutionResultCode_PARSING_FAILED :: ExecutionResultCode
$mExecutionResultCode_PARSING_FAILED :: forall {r}.
ExecutionResultCode -> ((# #) -> r) -> ((# #) -> r) -> r
ExecutionResultCode_PARSING_FAILED = ExecutionResultCode' "PARSING_FAILED"

pattern ExecutionResultCode_VPC_ENDPOINT_SETUP_FAILED :: ExecutionResultCode
pattern $bExecutionResultCode_VPC_ENDPOINT_SETUP_FAILED :: ExecutionResultCode
$mExecutionResultCode_VPC_ENDPOINT_SETUP_FAILED :: forall {r}.
ExecutionResultCode -> ((# #) -> r) -> ((# #) -> r) -> r
ExecutionResultCode_VPC_ENDPOINT_SETUP_FAILED = ExecutionResultCode' "VPC_ENDPOINT_SETUP_FAILED"

{-# COMPLETE
  ExecutionResultCode_PARSING_FAILED,
  ExecutionResultCode_VPC_ENDPOINT_SETUP_FAILED,
  ExecutionResultCode'
  #-}