{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype ExecutionResultCode = ExecutionResultCode'
  { ExecutionResultCode -> Text
fromExecutionResultCode ::
      Core.Text
  }
  deriving stock
    ( Int -> ExecutionResultCode -> ShowS
[ExecutionResultCode] -> ShowS
ExecutionResultCode -> String
(Int -> ExecutionResultCode -> ShowS)
-> (ExecutionResultCode -> String)
-> ([ExecutionResultCode] -> ShowS)
-> Show ExecutionResultCode
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]
(Int -> ReadS ExecutionResultCode)
-> ReadS [ExecutionResultCode]
-> ReadPrec ExecutionResultCode
-> ReadPrec [ExecutionResultCode]
-> Read 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
(ExecutionResultCode -> ExecutionResultCode -> Bool)
-> (ExecutionResultCode -> ExecutionResultCode -> Bool)
-> Eq ExecutionResultCode
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
Eq ExecutionResultCode
-> (ExecutionResultCode -> ExecutionResultCode -> Ordering)
-> (ExecutionResultCode -> ExecutionResultCode -> Bool)
-> (ExecutionResultCode -> ExecutionResultCode -> Bool)
-> (ExecutionResultCode -> ExecutionResultCode -> Bool)
-> (ExecutionResultCode -> ExecutionResultCode -> Bool)
-> (ExecutionResultCode
    -> ExecutionResultCode -> ExecutionResultCode)
-> (ExecutionResultCode
    -> ExecutionResultCode -> ExecutionResultCode)
-> Ord 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
$cp1Ord :: Eq ExecutionResultCode
Prelude.Ord,
      (forall x. ExecutionResultCode -> Rep ExecutionResultCode x)
-> (forall x. Rep ExecutionResultCode x -> ExecutionResultCode)
-> Generic ExecutionResultCode
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
    ( Int -> ExecutionResultCode -> Int
ExecutionResultCode -> Int
(Int -> ExecutionResultCode -> Int)
-> (ExecutionResultCode -> Int) -> Hashable ExecutionResultCode
forall 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 -> ()
(ExecutionResultCode -> ()) -> NFData ExecutionResultCode
forall a. (a -> ()) -> NFData a
rnf :: ExecutionResultCode -> ()
$crnf :: ExecutionResultCode -> ()
Prelude.NFData,
      Text -> Either String ExecutionResultCode
(Text -> Either String ExecutionResultCode)
-> FromText ExecutionResultCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ExecutionResultCode
$cfromText :: Text -> Either String ExecutionResultCode
Core.FromText,
      ExecutionResultCode -> Text
(ExecutionResultCode -> Text) -> ToText ExecutionResultCode
forall a. (a -> Text) -> ToText a
toText :: ExecutionResultCode -> Text
$ctoText :: ExecutionResultCode -> Text
Core.ToText,
      ExecutionResultCode -> ByteString
(ExecutionResultCode -> ByteString)
-> ToByteString ExecutionResultCode
forall a. (a -> ByteString) -> ToByteString a
toBS :: ExecutionResultCode -> ByteString
$ctoBS :: ExecutionResultCode -> ByteString
Core.ToByteString,
      ExecutionResultCode -> ByteStringBuilder
(ExecutionResultCode -> ByteStringBuilder)
-> ToLog ExecutionResultCode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ExecutionResultCode -> ByteStringBuilder
$cbuild :: ExecutionResultCode -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ExecutionResultCode -> [Header]
(HeaderName -> ExecutionResultCode -> [Header])
-> ToHeader ExecutionResultCode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ExecutionResultCode -> [Header]
$ctoHeader :: HeaderName -> ExecutionResultCode -> [Header]
Core.ToHeader,
      ExecutionResultCode -> QueryString
(ExecutionResultCode -> QueryString) -> ToQuery ExecutionResultCode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ExecutionResultCode -> QueryString
$ctoQuery :: ExecutionResultCode -> QueryString
Core.ToQuery,
      Value -> Parser [ExecutionResultCode]
Value -> Parser ExecutionResultCode
(Value -> Parser ExecutionResultCode)
-> (Value -> Parser [ExecutionResultCode])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ExecutionResultCode]
FromJSONKeyFunction ExecutionResultCode
FromJSONKeyFunction ExecutionResultCode
-> FromJSONKeyFunction [ExecutionResultCode]
-> FromJSONKey ExecutionResultCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ExecutionResultCode]
$cfromJSONKeyList :: FromJSONKeyFunction [ExecutionResultCode]
fromJSONKey :: FromJSONKeyFunction ExecutionResultCode
$cfromJSONKey :: FromJSONKeyFunction ExecutionResultCode
Core.FromJSONKey,
      [ExecutionResultCode] -> Encoding
[ExecutionResultCode] -> Value
ExecutionResultCode -> Encoding
ExecutionResultCode -> Value
(ExecutionResultCode -> Value)
-> (ExecutionResultCode -> Encoding)
-> ([ExecutionResultCode] -> Value)
-> ([ExecutionResultCode] -> Encoding)
-> ToJSON ExecutionResultCode
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
Core.ToJSON,
      ToJSONKeyFunction [ExecutionResultCode]
ToJSONKeyFunction ExecutionResultCode
ToJSONKeyFunction ExecutionResultCode
-> ToJSONKeyFunction [ExecutionResultCode]
-> ToJSONKey ExecutionResultCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ExecutionResultCode]
$ctoJSONKeyList :: ToJSONKeyFunction [ExecutionResultCode]
toJSONKey :: ToJSONKeyFunction ExecutionResultCode
$ctoJSONKey :: ToJSONKeyFunction ExecutionResultCode
Core.ToJSONKey,
      [Node] -> Either String ExecutionResultCode
([Node] -> Either String ExecutionResultCode)
-> FromXML ExecutionResultCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ExecutionResultCode
$cparseXML :: [Node] -> Either String ExecutionResultCode
Core.FromXML,
      ExecutionResultCode -> XML
(ExecutionResultCode -> XML) -> ToXML ExecutionResultCode
forall a. (a -> XML) -> ToXML a
toXML :: ExecutionResultCode -> XML
$ctoXML :: ExecutionResultCode -> XML
Core.ToXML
    )

pattern ExecutionResultCode_PARSING_FAILED :: ExecutionResultCode
pattern $bExecutionResultCode_PARSING_FAILED :: ExecutionResultCode
$mExecutionResultCode_PARSING_FAILED :: forall r. ExecutionResultCode -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
ExecutionResultCode_VPC_ENDPOINT_SETUP_FAILED = ExecutionResultCode' "VPC_ENDPOINT_SETUP_FAILED"

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