{-# 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.Evidently.Types.ExperimentStatus
-- 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.Evidently.Types.ExperimentStatus
  ( ExperimentStatus
      ( ..,
        ExperimentStatus_CANCELLED,
        ExperimentStatus_COMPLETED,
        ExperimentStatus_CREATED,
        ExperimentStatus_RUNNING,
        ExperimentStatus_UPDATING
      ),
  )
where

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

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

pattern ExperimentStatus_CANCELLED :: ExperimentStatus
pattern $bExperimentStatus_CANCELLED :: ExperimentStatus
$mExperimentStatus_CANCELLED :: forall {r}. ExperimentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentStatus_CANCELLED = ExperimentStatus' "CANCELLED"

pattern ExperimentStatus_COMPLETED :: ExperimentStatus
pattern $bExperimentStatus_COMPLETED :: ExperimentStatus
$mExperimentStatus_COMPLETED :: forall {r}. ExperimentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentStatus_COMPLETED = ExperimentStatus' "COMPLETED"

pattern ExperimentStatus_CREATED :: ExperimentStatus
pattern $bExperimentStatus_CREATED :: ExperimentStatus
$mExperimentStatus_CREATED :: forall {r}. ExperimentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentStatus_CREATED = ExperimentStatus' "CREATED"

pattern ExperimentStatus_RUNNING :: ExperimentStatus
pattern $bExperimentStatus_RUNNING :: ExperimentStatus
$mExperimentStatus_RUNNING :: forall {r}. ExperimentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentStatus_RUNNING = ExperimentStatus' "RUNNING"

pattern ExperimentStatus_UPDATING :: ExperimentStatus
pattern $bExperimentStatus_UPDATING :: ExperimentStatus
$mExperimentStatus_UPDATING :: forall {r}. ExperimentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentStatus_UPDATING = ExperimentStatus' "UPDATING"

{-# COMPLETE
  ExperimentStatus_CANCELLED,
  ExperimentStatus_COMPLETED,
  ExperimentStatus_CREATED,
  ExperimentStatus_RUNNING,
  ExperimentStatus_UPDATING,
  ExperimentStatus'
  #-}