{-# 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.FIS.Types.ExperimentStatus
-- 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.FIS.Types.ExperimentStatus
  ( ExperimentStatus
      ( ..,
        ExperimentStatus_Completed,
        ExperimentStatus_Failed,
        ExperimentStatus_Initiating,
        ExperimentStatus_Pending,
        ExperimentStatus_Running,
        ExperimentStatus_Stopped,
        ExperimentStatus_Stopping
      ),
  )
where

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

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

pattern ExperimentStatus_Completed :: ExperimentStatus
pattern $bExperimentStatus_Completed :: ExperimentStatus
$mExperimentStatus_Completed :: forall r. ExperimentStatus -> (Void# -> r) -> (Void# -> r) -> r
ExperimentStatus_Completed = ExperimentStatus' "completed"

pattern ExperimentStatus_Failed :: ExperimentStatus
pattern $bExperimentStatus_Failed :: ExperimentStatus
$mExperimentStatus_Failed :: forall r. ExperimentStatus -> (Void# -> r) -> (Void# -> r) -> r
ExperimentStatus_Failed = ExperimentStatus' "failed"

pattern ExperimentStatus_Initiating :: ExperimentStatus
pattern $bExperimentStatus_Initiating :: ExperimentStatus
$mExperimentStatus_Initiating :: forall r. ExperimentStatus -> (Void# -> r) -> (Void# -> r) -> r
ExperimentStatus_Initiating = ExperimentStatus' "initiating"

pattern ExperimentStatus_Pending :: ExperimentStatus
pattern $bExperimentStatus_Pending :: ExperimentStatus
$mExperimentStatus_Pending :: forall r. ExperimentStatus -> (Void# -> r) -> (Void# -> r) -> r
ExperimentStatus_Pending = ExperimentStatus' "pending"

pattern ExperimentStatus_Running :: ExperimentStatus
pattern $bExperimentStatus_Running :: ExperimentStatus
$mExperimentStatus_Running :: forall r. ExperimentStatus -> (Void# -> r) -> (Void# -> r) -> r
ExperimentStatus_Running = ExperimentStatus' "running"

pattern ExperimentStatus_Stopped :: ExperimentStatus
pattern $bExperimentStatus_Stopped :: ExperimentStatus
$mExperimentStatus_Stopped :: forall r. ExperimentStatus -> (Void# -> r) -> (Void# -> r) -> r
ExperimentStatus_Stopped = ExperimentStatus' "stopped"

pattern ExperimentStatus_Stopping :: ExperimentStatus
pattern $bExperimentStatus_Stopping :: ExperimentStatus
$mExperimentStatus_Stopping :: forall r. ExperimentStatus -> (Void# -> r) -> (Void# -> r) -> r
ExperimentStatus_Stopping = ExperimentStatus' "stopping"

{-# COMPLETE
  ExperimentStatus_Completed,
  ExperimentStatus_Failed,
  ExperimentStatus_Initiating,
  ExperimentStatus_Pending,
  ExperimentStatus_Running,
  ExperimentStatus_Stopped,
  ExperimentStatus_Stopping,
  ExperimentStatus'
  #-}