{-# 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.ExperimentBaseStat
-- 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.ExperimentBaseStat
  ( ExperimentBaseStat
      ( ..,
        ExperimentBaseStat_Mean
      ),
  )
where

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

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

pattern ExperimentBaseStat_Mean :: ExperimentBaseStat
pattern $bExperimentBaseStat_Mean :: ExperimentBaseStat
$mExperimentBaseStat_Mean :: forall {r}. ExperimentBaseStat -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentBaseStat_Mean = ExperimentBaseStat' "Mean"

{-# COMPLETE
  ExperimentBaseStat_Mean,
  ExperimentBaseStat'
  #-}