{-# 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.ExperimentResultResponseType
-- 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.ExperimentResultResponseType
  ( ExperimentResultResponseType
      ( ..,
        ExperimentResultResponseType_ConfidenceIntervalLowerBound,
        ExperimentResultResponseType_ConfidenceIntervalUpperBound,
        ExperimentResultResponseType_Mean,
        ExperimentResultResponseType_PValue,
        ExperimentResultResponseType_TreatmentEffect
      ),
  )
where

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

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

pattern ExperimentResultResponseType_ConfidenceIntervalLowerBound :: ExperimentResultResponseType
pattern $bExperimentResultResponseType_ConfidenceIntervalLowerBound :: ExperimentResultResponseType
$mExperimentResultResponseType_ConfidenceIntervalLowerBound :: forall {r}.
ExperimentResultResponseType -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentResultResponseType_ConfidenceIntervalLowerBound = ExperimentResultResponseType' "ConfidenceIntervalLowerBound"

pattern ExperimentResultResponseType_ConfidenceIntervalUpperBound :: ExperimentResultResponseType
pattern $bExperimentResultResponseType_ConfidenceIntervalUpperBound :: ExperimentResultResponseType
$mExperimentResultResponseType_ConfidenceIntervalUpperBound :: forall {r}.
ExperimentResultResponseType -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentResultResponseType_ConfidenceIntervalUpperBound = ExperimentResultResponseType' "ConfidenceIntervalUpperBound"

pattern ExperimentResultResponseType_Mean :: ExperimentResultResponseType
pattern $bExperimentResultResponseType_Mean :: ExperimentResultResponseType
$mExperimentResultResponseType_Mean :: forall {r}.
ExperimentResultResponseType -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentResultResponseType_Mean = ExperimentResultResponseType' "Mean"

pattern ExperimentResultResponseType_PValue :: ExperimentResultResponseType
pattern $bExperimentResultResponseType_PValue :: ExperimentResultResponseType
$mExperimentResultResponseType_PValue :: forall {r}.
ExperimentResultResponseType -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentResultResponseType_PValue = ExperimentResultResponseType' "PValue"

pattern ExperimentResultResponseType_TreatmentEffect :: ExperimentResultResponseType
pattern $bExperimentResultResponseType_TreatmentEffect :: ExperimentResultResponseType
$mExperimentResultResponseType_TreatmentEffect :: forall {r}.
ExperimentResultResponseType -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentResultResponseType_TreatmentEffect = ExperimentResultResponseType' "TreatmentEffect"

{-# COMPLETE
  ExperimentResultResponseType_ConfidenceIntervalLowerBound,
  ExperimentResultResponseType_ConfidenceIntervalUpperBound,
  ExperimentResultResponseType_Mean,
  ExperimentResultResponseType_PValue,
  ExperimentResultResponseType_TreatmentEffect,
  ExperimentResultResponseType'
  #-}