{-# 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.LookoutMetrics.Types.Confidence
-- 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.LookoutMetrics.Types.Confidence
  ( Confidence
      ( ..,
        Confidence_HIGH,
        Confidence_LOW,
        Confidence_NONE
      ),
  )
where

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

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

pattern Confidence_HIGH :: Confidence
pattern $bConfidence_HIGH :: Confidence
$mConfidence_HIGH :: forall {r}. Confidence -> ((# #) -> r) -> ((# #) -> r) -> r
Confidence_HIGH = Confidence' "HIGH"

pattern Confidence_LOW :: Confidence
pattern $bConfidence_LOW :: Confidence
$mConfidence_LOW :: forall {r}. Confidence -> ((# #) -> r) -> ((# #) -> r) -> r
Confidence_LOW = Confidence' "LOW"

pattern Confidence_NONE :: Confidence
pattern $bConfidence_NONE :: Confidence
$mConfidence_NONE :: forall {r}. Confidence -> ((# #) -> r) -> ((# #) -> r) -> r
Confidence_NONE = Confidence' "NONE"

{-# COMPLETE
  Confidence_HIGH,
  Confidence_LOW,
  Confidence_NONE,
  Confidence'
  #-}