{-# 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.IoTDeviceAdvisor.Types.SuiteRunStatus
-- 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.IoTDeviceAdvisor.Types.SuiteRunStatus
  ( SuiteRunStatus
      ( ..,
        SuiteRunStatus_CANCELED,
        SuiteRunStatus_ERROR,
        SuiteRunStatus_FAIL,
        SuiteRunStatus_PASS,
        SuiteRunStatus_PASS_WITH_WARNINGS,
        SuiteRunStatus_PENDING,
        SuiteRunStatus_RUNNING,
        SuiteRunStatus_STOPPED,
        SuiteRunStatus_STOPPING
      ),
  )
where

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

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

pattern SuiteRunStatus_CANCELED :: SuiteRunStatus
pattern $bSuiteRunStatus_CANCELED :: SuiteRunStatus
$mSuiteRunStatus_CANCELED :: forall r. SuiteRunStatus -> (Void# -> r) -> (Void# -> r) -> r
SuiteRunStatus_CANCELED = SuiteRunStatus' "CANCELED"

pattern SuiteRunStatus_ERROR :: SuiteRunStatus
pattern $bSuiteRunStatus_ERROR :: SuiteRunStatus
$mSuiteRunStatus_ERROR :: forall r. SuiteRunStatus -> (Void# -> r) -> (Void# -> r) -> r
SuiteRunStatus_ERROR = SuiteRunStatus' "ERROR"

pattern SuiteRunStatus_FAIL :: SuiteRunStatus
pattern $bSuiteRunStatus_FAIL :: SuiteRunStatus
$mSuiteRunStatus_FAIL :: forall r. SuiteRunStatus -> (Void# -> r) -> (Void# -> r) -> r
SuiteRunStatus_FAIL = SuiteRunStatus' "FAIL"

pattern SuiteRunStatus_PASS :: SuiteRunStatus
pattern $bSuiteRunStatus_PASS :: SuiteRunStatus
$mSuiteRunStatus_PASS :: forall r. SuiteRunStatus -> (Void# -> r) -> (Void# -> r) -> r
SuiteRunStatus_PASS = SuiteRunStatus' "PASS"

pattern SuiteRunStatus_PASS_WITH_WARNINGS :: SuiteRunStatus
pattern $bSuiteRunStatus_PASS_WITH_WARNINGS :: SuiteRunStatus
$mSuiteRunStatus_PASS_WITH_WARNINGS :: forall r. SuiteRunStatus -> (Void# -> r) -> (Void# -> r) -> r
SuiteRunStatus_PASS_WITH_WARNINGS = SuiteRunStatus' "PASS_WITH_WARNINGS"

pattern SuiteRunStatus_PENDING :: SuiteRunStatus
pattern $bSuiteRunStatus_PENDING :: SuiteRunStatus
$mSuiteRunStatus_PENDING :: forall r. SuiteRunStatus -> (Void# -> r) -> (Void# -> r) -> r
SuiteRunStatus_PENDING = SuiteRunStatus' "PENDING"

pattern SuiteRunStatus_RUNNING :: SuiteRunStatus
pattern $bSuiteRunStatus_RUNNING :: SuiteRunStatus
$mSuiteRunStatus_RUNNING :: forall r. SuiteRunStatus -> (Void# -> r) -> (Void# -> r) -> r
SuiteRunStatus_RUNNING = SuiteRunStatus' "RUNNING"

pattern SuiteRunStatus_STOPPED :: SuiteRunStatus
pattern $bSuiteRunStatus_STOPPED :: SuiteRunStatus
$mSuiteRunStatus_STOPPED :: forall r. SuiteRunStatus -> (Void# -> r) -> (Void# -> r) -> r
SuiteRunStatus_STOPPED = SuiteRunStatus' "STOPPED"

pattern SuiteRunStatus_STOPPING :: SuiteRunStatus
pattern $bSuiteRunStatus_STOPPING :: SuiteRunStatus
$mSuiteRunStatus_STOPPING :: forall r. SuiteRunStatus -> (Void# -> r) -> (Void# -> r) -> r
SuiteRunStatus_STOPPING = SuiteRunStatus' "STOPPING"

{-# COMPLETE
  SuiteRunStatus_CANCELED,
  SuiteRunStatus_ERROR,
  SuiteRunStatus_FAIL,
  SuiteRunStatus_PASS,
  SuiteRunStatus_PASS_WITH_WARNINGS,
  SuiteRunStatus_PENDING,
  SuiteRunStatus_RUNNING,
  SuiteRunStatus_STOPPED,
  SuiteRunStatus_STOPPING,
  SuiteRunStatus'
  #-}