{-# 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.ExperimentResultRequestType
-- 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.ExperimentResultRequestType
  ( ExperimentResultRequestType
      ( ..,
        ExperimentResultRequestType_BaseStat,
        ExperimentResultRequestType_ConfidenceInterval,
        ExperimentResultRequestType_PValue,
        ExperimentResultRequestType_TreatmentEffect
      ),
  )
where

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

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

pattern ExperimentResultRequestType_BaseStat :: ExperimentResultRequestType
pattern $bExperimentResultRequestType_BaseStat :: ExperimentResultRequestType
$mExperimentResultRequestType_BaseStat :: forall {r}.
ExperimentResultRequestType -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentResultRequestType_BaseStat = ExperimentResultRequestType' "BaseStat"

pattern ExperimentResultRequestType_ConfidenceInterval :: ExperimentResultRequestType
pattern $bExperimentResultRequestType_ConfidenceInterval :: ExperimentResultRequestType
$mExperimentResultRequestType_ConfidenceInterval :: forall {r}.
ExperimentResultRequestType -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentResultRequestType_ConfidenceInterval = ExperimentResultRequestType' "ConfidenceInterval"

pattern ExperimentResultRequestType_PValue :: ExperimentResultRequestType
pattern $bExperimentResultRequestType_PValue :: ExperimentResultRequestType
$mExperimentResultRequestType_PValue :: forall {r}.
ExperimentResultRequestType -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentResultRequestType_PValue = ExperimentResultRequestType' "PValue"

pattern ExperimentResultRequestType_TreatmentEffect :: ExperimentResultRequestType
pattern $bExperimentResultRequestType_TreatmentEffect :: ExperimentResultRequestType
$mExperimentResultRequestType_TreatmentEffect :: forall {r}.
ExperimentResultRequestType -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentResultRequestType_TreatmentEffect = ExperimentResultRequestType' "TreatmentEffect"

{-# COMPLETE
  ExperimentResultRequestType_BaseStat,
  ExperimentResultRequestType_ConfidenceInterval,
  ExperimentResultRequestType_PValue,
  ExperimentResultRequestType_TreatmentEffect,
  ExperimentResultRequestType'
  #-}