{-# 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.TestGridSessionStatus
-- 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.TestGridSessionStatus
  ( TestGridSessionStatus
      ( ..,
        TestGridSessionStatus_ACTIVE,
        TestGridSessionStatus_CLOSED,
        TestGridSessionStatus_ERRORED
      ),
  )
where

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

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

pattern TestGridSessionStatus_ACTIVE :: TestGridSessionStatus
pattern $bTestGridSessionStatus_ACTIVE :: TestGridSessionStatus
$mTestGridSessionStatus_ACTIVE :: forall r.
TestGridSessionStatus -> (Void# -> r) -> (Void# -> r) -> r
TestGridSessionStatus_ACTIVE = TestGridSessionStatus' "ACTIVE"

pattern TestGridSessionStatus_CLOSED :: TestGridSessionStatus
pattern $bTestGridSessionStatus_CLOSED :: TestGridSessionStatus
$mTestGridSessionStatus_CLOSED :: forall r.
TestGridSessionStatus -> (Void# -> r) -> (Void# -> r) -> r
TestGridSessionStatus_CLOSED = TestGridSessionStatus' "CLOSED"

pattern TestGridSessionStatus_ERRORED :: TestGridSessionStatus
pattern $bTestGridSessionStatus_ERRORED :: TestGridSessionStatus
$mTestGridSessionStatus_ERRORED :: forall r.
TestGridSessionStatus -> (Void# -> r) -> (Void# -> r) -> r
TestGridSessionStatus_ERRORED = TestGridSessionStatus' "ERRORED"

{-# COMPLETE
  TestGridSessionStatus_ACTIVE,
  TestGridSessionStatus_CLOSED,
  TestGridSessionStatus_ERRORED,
  TestGridSessionStatus'
  #-}