{-# 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.ExperimentType
-- 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.ExperimentType
  ( ExperimentType
      ( ..,
        ExperimentType_Aws_evidently_onlineab
      ),
  )
where

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

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

pattern ExperimentType_Aws_evidently_onlineab :: ExperimentType
pattern $bExperimentType_Aws_evidently_onlineab :: ExperimentType
$mExperimentType_Aws_evidently_onlineab :: forall {r}. ExperimentType -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentType_Aws_evidently_onlineab = ExperimentType' "aws.evidently.onlineab"

{-# COMPLETE
  ExperimentType_Aws_evidently_onlineab,
  ExperimentType'
  #-}